Fix version query
Taken from
+import os
from setuptools import find_packages, setup
-from promgen.version import __version__
+# Read version information
+# Taken from https://github.com/kennethreitz/pipenv/blob/master/setup.py
+about = {}
+here = os.path.abspath(os.path.dirname(__file__))
+with open(os.path.join(here, "promgen", "version.py")) as f:
+ exec(f.read(), about)
setup(
name='Promgen',
author='Paul Traylor',
packages=find_packages(exclude=['test']),
- version=__version__,
+ version=about['__version__'],
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
