浏览代码

Update release script.

tags/v0.4
Ben Kurtovic 10 年前
父节点
当前提交
38e423b140
共有 2 个文件被更改,包括 13 次插入3 次删除
  1. +12
    -2
      scripts/release.sh
  2. +1
    -1
      scripts/win_build.py

+ 12
- 2
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



+ 1
- 1
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()

正在加载...
取消
保存