diff --git a/release.sh b/release.sh index 49ecd59be2ba720791035ffe1a57e7c21fd23b71..dd469f3a44633113154419b15da1cfb97f30a38a 100644 --- a/release.sh +++ b/release.sh @@ -1,3 +1,3 @@ #!/bin/bash -python setup.py bdist_wheel -python -m twine upload dist/* +python setup.py sdist bdist_wheel +python -m twine upload -s dist/* diff --git a/setup.py b/setup.py index b461efca3b870c3564dcdbb03d518e3b6cadd8da..7ab1f2c62de98ad2a62572bffe96ac73913ebf88 100755 --- a/setup.py +++ b/setup.py @@ -48,8 +48,9 @@ from setuptools import find_packages, setup MAJOR = 0 MINOR = 2 MICRO = 4 -ISRELEASED = False -VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO) +PRE = "rc0" +ISRELEASED = True +VERSION = "{}.{}.{}{}".format(MAJOR, MINOR, MICRO, PRE) # Return the git revision as a string