From 38e423b1407c97aec3b1495902a6ab9ef517e17b Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Fri, 27 Jun 2014 20:40:36 -0400 Subject: [PATCH] Update release script. --- scripts/release.sh | 14 ++++++++++++-- scripts/win_build.py | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/scripts/release.sh b/scripts/release.sh index c10871d..4becf1a 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -66,13 +66,21 @@ do_git_stuff() { echo " done." } -build_sdist() { - echo -n "Uploading to PyPI..." +upload_to_pypi() { + # TODO: check whether these commands give output + echo -n "PyPI: uploading source tarball and docs..." python setup.py register sdist upload -s python setup.py upload_docs echo " done." } +windows_build() { + echo "PyPI: building/uploading Windows binaries..." + echo "*** Run in Windows: ./scripts/win_build.py" + echo "*** Press enter when done." + read +} + post_release() { echo echo "*** Release completed." @@ -148,6 +156,8 @@ update_version update_changelog update_docs_changelog do_git_stuff +upload_to_pypi +windows_build post_release test_release diff --git a/scripts/win_build.py b/scripts/win_build.py index c70dedc..143f060 100644 --- a/scripts/win_build.py +++ b/scripts/win_build.py @@ -30,7 +30,7 @@ def main(): pass if run(pyver, ["test"]) == 0: - run(pyver, ["bdist_wheel", "upload"]) + run(pyver, ["bdist_wheel", "upload"]) # TODO: add "-s" to GPG sign if __name__ == "__main__": main()