Permalink
Browse files

Fixes to --publish option in pg-release script

  • Loading branch information...
1 parent 4cdc3ac commit 09725dcb556dfeaf1ae6500ffc02f26351939ce5 @campagnola campagnola committed Nov 8, 2016
Showing with 10 additions and 6 deletions.
  1. +10 −6 tools/pg-release.py
View
@@ -77,7 +77,7 @@ def build(args):
mkdir -p {build_dir}
cd {build_dir}
rm -rf pyqtgraph
- git clone --depth 1 -b master {source_repo} pyqtgraph
+ git clone --depth 1 --branch master --single-branch {source_repo} pyqtgraph
cd pyqtgraph
git checkout -b release-{version}
git pull {source_repo} release-{version}
@@ -202,15 +202,19 @@ def publish(args):
### Upload everything to server
shell("""
- # Uploading documentation..
cd {build_dir}/pyqtgraph
- rsync -rv doc/build/* pyqtgraph.org:/www/code/pyqtgraph/pyqtgraph/documentation/build/
+
+ # Uploading documentation.. (disabled; now hosted by readthedocs.io)
+ #rsync -rv doc/build/* pyqtgraph.org:/www/code/pyqtgraph/pyqtgraph/documentation/build/
# Uploading release packages to website
- rsync -v {pkg_dir}/{version} pyqtgraph.org:/www/code/pyqtgraph/downloads/
+ rsync -v {pkg_dir} pyqtgraph.org:/www/code/pyqtgraph/downloads/
- # Push to github
- git push --tags https://github.com/pyqtgraph/pyqtgraph master:master
+ # Push master to github
+ git push https://github.com/pyqtgraph/pyqtgraph master:master
+
+ # Push tag to github
+ git push https://github.com/pyqtgraph/pyqtgraph pyqtgraph-{version}
# Upload to pypi..
python setup.py sdist upload

0 comments on commit 09725dc

Please sign in to comment.