Explorar el Código

Update release script.

tags/v0.4
Ben Kurtovic hace 10 años
padre
commit
38e423b140
Se han modificado 2 ficheros con 13 adiciones y 3 borrados
  1. +12
    -2
      scripts/release.sh
  2. +1
    -1
      scripts/win_build.py

+ 12
- 2
scripts/release.sh Ver fichero

@@ -66,13 +66,21 @@ do_git_stuff() {
echo " done." 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 register sdist upload -s
python setup.py upload_docs python setup.py upload_docs
echo " done." 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() { post_release() {
echo echo
echo "*** Release completed." echo "*** Release completed."
@@ -148,6 +156,8 @@ update_version
update_changelog update_changelog
update_docs_changelog update_docs_changelog
do_git_stuff do_git_stuff
upload_to_pypi
windows_build
post_release post_release
test_release test_release




+ 1
- 1
scripts/win_build.py Ver fichero

@@ -30,7 +30,7 @@ def main():
pass pass


if run(pyver, ["test"]) == 0: if run(pyver, ["test"]) == 0:
run(pyver, ["bdist_wheel", "upload"])
run(pyver, ["bdist_wheel", "upload"]) # TODO: add "-s" to GPG sign


if __name__ == "__main__": if __name__ == "__main__":
main() main()

Cargando…
Cancelar
Guardar