X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=setup.py;h=f5a434e28e2c492c23ae969361ad06b47e555d18;hb=f898f38452ed6beac2f7f5cd401d375f7098a094;hp=8b5aab78c70b0e9a5871de292f81417c55c1c496;hpb=55ecf45f8a0eb1acf32ce9009f773facbd937343;p=ppu.git diff --git a/setup.py b/setup.py index 8b5aab7..f5a434e 100755 --- a/setup.py +++ b/setup.py @@ -1,14 +1,19 @@ #!/usr/bin/env python -import sys +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.3.2', + version=__version__, description='Broytman Portable Python Utilities', long_description=open('README.rst', 'rU').read(), author='Oleg Broytman', @@ -35,5 +40,6 @@ setup(name='ppu', packages=['ppu'], scripts=[ 'scripts/cmp.py', 'scripts/remove-old-files.py', 'scripts/rm.py', + 'scripts/which.py', ], )