Skip to content

Commit

Permalink
Release versions using twine (#863)
Browse files Browse the repository at this point in the history
* Release versions using twine

* comment fixes
  • Loading branch information
cadaxapy authored Feb 15, 2024
1 parent 4b90a38 commit 8b8272a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions release.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,12 @@ def pypi_release(tag_str, fake=False):
os.chdir('orchestra')

# Release to pypi
print('Releasing Orchestra to PyPI.')
pypi_cmd = ['python3', 'setup.py', 'sdist', 'upload', '-r', 'pypi']
print('Building the distribution.')
pypi_cmd = ['python3', 'setup.py', 'sdist']
wrap_command(pypi_cmd, fake)

print('Uploading to PyPI.')
pypi_cmd = ['twine', 'upload', '--repository', 'orchestra', 'dist/*']
wrap_command(pypi_cmd, fake)

# Clean up
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ isort==4.2.15
beanstalk-dispatch==0.0.5
jsl==0.2.4
jsonschema==3.2.0
twine==4.0.2

# Journalism Workflow requirements
Pillow==7.0.0

0 comments on commit 8b8272a

Please sign in to comment.