diff options
author | JensDiemer <git@jensdiemer.de> | 2015-06-02 18:14:55 +0200 |
---|---|---|
committer | JensDiemer <git@jensdiemer.de> | 2015-06-02 18:14:55 +0200 |
commit | 05656188f91e61622bcf93eba8a8bc0d7636ef41 (patch) | |
tree | e62d1592d3c5984961b1b2b078d7322371305afd | |
parent | c13d884c6711c5b3ad5bc6d386a8f0f1d48f5fb6 (diff) | |
download | creole-05656188f91e61622bcf93eba8a8bc0d7636ef41.tar.gz |
add "publish"v1.3.0
-rwxr-xr-x | setup.py | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -21,6 +21,27 @@ from creole.setup_utils import get_long_description PACKAGE_ROOT = os.path.dirname(os.path.abspath(__file__)) +if "publish" in sys.argv: + try: + import wheel + except ImportError as err: + print("\nError: %s" % err) + print("\nMaybe https://pypi.python.org/pypi/wheel is not installed or virtualenv not activated?!?") + print("e.g.:") + print(" ~/your/env/$ source bin/activate") + print(" ~/your/env/$ pip install wheel") + sys.exit(-1) + + import subprocess + args = [sys.executable or "python", "setup.py", "sdist", "bdist_wheel", "upload"] + print("\nCall: %r\n" % " ".join(args)) + subprocess.call(args) + + print("\nDon't forget to tag this version, e.g.:") + print("\tgit tag v%s" % VERSION_STRING) + print("\tgit push --tags") + sys.exit() + def get_authors(): try: |