]> git.phdru.name Git - ppu.git/commitdiff
Release at PyPI
authorOleg Broytman <phd@phdru.name>
Sun, 30 Apr 2017 18:32:27 +0000 (21:32 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 30 Apr 2017 18:32:27 +0000 (21:32 +0300)
TODO
devscripts/prerelease-tag [new file with mode: 0755]
devscripts/release [new file with mode: 0755]
docs/news.rst
setup.py

diff --git a/TODO b/TODO
index 4f8a62080814157b7040d9d1a92b2110ff6ab1bc..b40bc8d843c4fd2bdaad2905a74beb0f5b5709cf 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,6 +1,3 @@
-PyPI.
-
-
 Add which.py.
 
 
diff --git a/devscripts/prerelease-tag b/devscripts/prerelease-tag
new file mode 100755 (executable)
index 0000000..19531f2
--- /dev/null
@@ -0,0 +1,4 @@
+#! /bin/sh
+
+tag="`python setup.py --version`" &&
+exec git tag --message="Release $tag" --sign $tag
diff --git a/devscripts/release b/devscripts/release
new file mode 100755 (executable)
index 0000000..eb89faa
--- /dev/null
@@ -0,0 +1,28 @@
+#! /bin/sh
+
+cd "`dirname \"$0\"`"/.. &&
+umask 022 &&
+chmod -R a+rX . &&
+set-commit-date.py &&
+
+python setup.py build_py &&
+python setup.py build &&
+python setup.py sdist &&
+
+for py in 2.6 2.7 3.4 3.5 3.6; do
+   find build -name '*.py[co]' -delete &&
+   python$py setup.py build_py &&
+   python$py setup.py build &&
+   python$py    -m compileall build &&
+   python$py -O -m compileall build &&
+   python$py setup.py bdist_egg || exit 1
+done
+
+find build -name '*.py[co]' -delete &&
+python setup.py bdist_wheel --universal &&
+
+version=`python setup.py --version`
+twine register dist/ppu-"$version".tar.gz &&
+twine upload --sign dist/* &&
+
+exec rm -rf build dist ppu.egg-info
index 242f36e778e92ff2d41138c902c55f70c8674c96..6055cc5a794ec0a42d7850563ba75c7add62e5f6 100644 (file)
@@ -1,11 +1,13 @@
 News
 ====
 
-Version 0.3.0 (2017-05-??)
+Version 0.3.0 (2017-04-30)
 --------------------------
 
 * Move cmp.py, remove-old-files.py and rm.py to scripts directory.
 
+* Release at PyPI.
+
 Version 0.2.0 (2017-04-30)
 --------------------------
 
index 8b323a0cfe8b995b717fb9bf77706ecf10de5e65..afc051f813ea381ea84a8fab4aac9b5cca96e028 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ except ImportError:
     from distutils.core import setup
 
 setup(name='ppu',
-      version='0.2.0',
+      version='0.3.0',
       description='Broytman Portable Python Utilities',
       long_description=open('README.txt', 'rU').read(),
       author='Oleg Broytman',