Merge pull request #295 from kitab15/version-available-in-code

Make version available in code (#282)
This commit is contained in:
Juan Ignacio Fiorentino 2018-10-15 18:11:46 -03:00 committed by GitHub
commit c096d34377
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

1
oidc_provider/version.py Normal file
View file

@ -0,0 +1 @@
__version__ = '0.6.2'

View file

@ -4,13 +4,16 @@ from setuptools import (
setup,
)
version = {}
with open("./oidc_provider/version.py") as fp:
exec(fp.read(), version)
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-oidc-provider',
version='0.6.2',
version=version['__version__'],
packages=find_packages(),
include_package_data=True,
license='MIT License',