Merge pull request #295 from kitab15/version-available-in-code
Make version available in code (#282)
This commit is contained in:
commit
c096d34377
2 changed files with 5 additions and 1 deletions
1
oidc_provider/version.py
Normal file
1
oidc_provider/version.py
Normal file
|
@ -0,0 +1 @@
|
|||
__version__ = '0.6.2'
|
5
setup.py
5
setup.py
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue