From: Oleg Broytman Date: Sun, 9 Jul 2017 13:16:14 +0000 (+0300) Subject: Version 0.5.0 X-Git-Tag: 0.5.0^0 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=5ad520060ae750a665b89afe0b42d79e8d126d5e;p=ppu.git Version 0.5.0 --- diff --git a/docs/news.rst b/docs/news.rst index 0685da8..2503340 100644 --- a/docs/news.rst +++ b/docs/news.rst @@ -1,7 +1,7 @@ News ==== -Version 0.5.0 (2017-07-??) +Version 0.5.0 (2017-07-09) -------------------------- * Add option -r for rm.py. diff --git a/ppu/__version__.py b/ppu/__version__.py index abeeedb..2b8877c 100644 --- a/ppu/__version__.py +++ b/ppu/__version__.py @@ -1 +1 @@ -__version__ = '0.4.0' +__version__ = '0.5.0' diff --git a/setup.py b/setup.py index fba415a..f5a434e 100755 --- 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',