Skip to content

Commit

Permalink
Fix pushing for pypi builds
Browse files Browse the repository at this point in the history
  • Loading branch information
saville committed Aug 21, 2023
1 parent 673e3d1 commit c118f87
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions buildrunner/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,11 +651,11 @@ def run(self): # pylint: disable=too-many-statements,too-many-branches,too-many
else:
self.log.write(str(msg) + '\n')

# Push to pypi repositories
# Placing the import here avoids the dependency when pypi is not needed
import twine.commands.upload # pylint: disable=import-outside-toplevel
for _, _items in self.pypi_packages.items():
twine.commands.upload.upload(_items['upload_settings'], _items['packages'])
# Push to pypi repositories
# Placing the import here avoids the dependency when pypi is not needed
import twine.commands.upload # pylint: disable=import-outside-toplevel
for _, _items in self.pypi_packages.items():
twine.commands.upload.upload(_items['upload_settings'], _items['packages'])
else:
self.log.write(
'\nPush not requested\n'
Expand Down

0 comments on commit c118f87

Please sign in to comment.