From 5ad520060ae750a665b89afe0b42d79e8d126d5e Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 9 Jul 2017 16:16:14 +0300 Subject: [PATCH] Version 0.5.0 --- docs/news.rst | 2 +- ppu/__version__.py | 2 +- setup.py | 9 ++++++++- 3 files changed, 10 insertions(+), 3 deletions(-) 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', -- 2.39.5