Browse Source

Update release script.

tags/v0.4
Ben Kurtovic 9 years ago
parent
commit
38e423b140
2 changed files with 13 additions and 3 deletions
  1. +12
    -2
      scripts/release.sh
  2. +1
    -1
      scripts/win_build.py

+ 12
- 2
scripts/release.sh View File

@@ -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



+ 1
- 1
scripts/win_build.py View File

@@ -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()

Loading…
Cancel
Save