From e2492fb8662ae2e21162d4c087b41fea93cc2b17 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 30 Apr 2017 21:32:27 +0300 Subject: [PATCH] Release at PyPI --- TODO | 3 --- devscripts/prerelease-tag | 4 ++++ devscripts/release | 28 ++++++++++++++++++++++++++++ docs/news.rst | 4 +++- setup.py | 2 +- 5 files changed, 36 insertions(+), 5 deletions(-) create mode 100755 devscripts/prerelease-tag create mode 100755 devscripts/release diff --git a/TODO b/TODO index 4f8a620..b40bc8d 100644 --- 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 index 0000000..19531f2 --- /dev/null +++ b/devscripts/prerelease-tag @@ -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 index 0000000..eb89faa --- /dev/null +++ b/devscripts/release @@ -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 diff --git a/docs/news.rst b/docs/news.rst index 242f36e..6055cc5 100644 --- a/docs/news.rst +++ b/docs/news.rst @@ -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) -------------------------- diff --git a/setup.py b/setup.py index 8b323a0..afc051f 100755 --- 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', -- 2.39.2