new package release processs


Branch: refs/heads/trunk
Commit: 4b3d0b1e32ec7313b968afd957afc2bd227c68eb
Parents: 4e044d8
Author: Anthony Shaw <>
Authored: Fri Sep 23 13:10:42 2016 +1000
Committer: Anthony Shaw <>
Committed: Fri Sep 23 13:10:42 2016 +1000

 dist/           | 27 +++++++++++++++++++++++++++
 docs/committer_guide.rst | 18 +++++-------------
 2 files changed, 32 insertions(+), 13 deletions(-)
diff --git a/dist/ b/dist/
new file mode 100755
index 0000000..b5eebb4
--- /dev/null
+++ b/dist/
@@ -0,0 +1,27 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# See the License for the specific language governing permissions and
+# limitations under the License.
+cd ..
+VERSION=`python --version`
+cd dist
+echo "Uploading packages"
+ls *$VERSION*.tar.bz2 *$VERSION*.tar.gz *$VERSION*.zip *$VERSION*.whl 
+twine upload *$VERSION*.tar.bz2 *$VERSION*.tar.gz *$VERSION*.zip 
*$VERSION*.whl *$VERSION*.asc
\ No newline at end of file
diff --git a/docs/committer_guide.rst b/docs/committer_guide.rst
index 69333b7..0ee16a2 100644
--- a/docs/committer_guide.rst
+++ b/docs/committer_guide.rst
@@ -182,21 +182,13 @@ key.
 7. Publishing package to PyPi
-**For consistency and security reasons packages are always uploaded to PyPi
-manually using the web interface and not using the upload
+We have a script that runs uploads the signed Python source files to PyPi. It 
uses twine, so ensure
+you have twine available in your path `which twine` before running. Twine can 
be downloaded from
-* Run ``python register`` command. This will register a new
-  version on PyPi, but it won't upload the actual release artifacts.
-* Go to the `PyPi release management page`_, find a new release and click on
-  "files" link.
+.. sourcecode:: bash
-* Once you are there, upload all the release artifacts (.tar.bz2, .tar.gz,
-  .zip, and .whl). For ``File Type`` select ``Source`` (except for ``.whl``
-  file where you should select ``Python Wheel``) and for ``Python Version``
-  select ``Any (ie. pure Python)``. Make sure to also select and upload a PGP
-  signature for each file (``PGP signature (.asc)`` field).
+    cd dist
+    ./
 Once all the files have been uploaded, the page should look similar to the
 screenshot below.

Reply via email to