]> git.phdru.name Git - ppu.git/commitdiff
Version 0.5.0 0.5.0
authorOleg Broytman <phd@phdru.name>
Sun, 9 Jul 2017 13:16:14 +0000 (16:16 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 9 Jul 2017 13:22:35 +0000 (16:22 +0300)
docs/news.rst
ppu/__version__.py
setup.py

index 0685da8232763c4737fd2fe781d968240fe295e2..2503340815e56cedaeaeb01a44b99c505becf0b9 100644 (file)
@@ -1,7 +1,7 @@
 News
 ====
 
-Version 0.5.0 (2017-07-??)
+Version 0.5.0 (2017-07-09)
 --------------------------
 
 * Add option -r for rm.py.
index abeeedbf5b31f38290f2d3efa67b715259d4a4f6..2b8877c505752cd3aaa805b09b88791d3ca0c9bb 100644 (file)
@@ -1 +1 @@
-__version__ = '0.4.0'
+__version__ = '0.5.0'
index fba415a2ee3fc5327bb7a60ff07d39e1ce2b3a5f..f5a434e28e2c492c23ae969361ad06b47e555d18 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -1,12 +1,19 @@
 #!/usr/bin/env python
 
+from imp import load_source
+from os.path import abspath, dirname, join
+
 try:
     from setuptools import setup
 except ImportError:
     from distutils.core import setup
 
+versionpath = join(abspath(dirname(__file__)), "ppu", "__version__.py")
+load_source("ppu_version", versionpath)
+from ppu_version import __version__  # noqa: ignore flake8 E402
+
 setup(name='ppu',
-      version='0.4.0',
+      version=__version__,
       description='Broytman Portable Python Utilities',
       long_description=open('README.rst', 'rU').read(),
       author='Oleg Broytman',