Skip to content

Commit

Permalink
Move publish to twine
Browse files Browse the repository at this point in the history
  • Loading branch information
dyve committed Oct 27, 2017
1 parent ef1b453 commit fb6a958
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@

if sys.argv[-1] == 'publish':
os.system('cd docs && make html')
os.system('python setup.py sdist upload')
print("You probably want to also tag the version now:")
print(" git tag -a %s -m 'version %s'" % (version, version))
print(" git push --tags")
os.system('python setup.py sdist')
os.system('twine upload dist/django-bootstrap4-{}.tar.gz'.format(VERSION))

message = '\nreleased [{version}](https://pypi.python.org/pypi/django-bootstrap4/{version})'
print(message.format(version=VERSION))
sys.exit()


if sys.argv[-1] == 'test':
print("Running tests only on current environment.")
print("Use `tox` for testing multiple environments.")
Expand Down

0 comments on commit fb6a958

Please sign in to comment.