mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-12-02 13:53:43 +03:00
Adds centralized version store
This commit is contained in:
parent
a3955bca18
commit
bffec48e01
8
dj_rest_auth/__version__.py
Normal file
8
dj_rest_auth/__version__.py
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
__title__ = 'dj-rest-auth'
|
||||||
|
__description__ = 'Authentication and Registration in Django Rest Framework.'
|
||||||
|
__url__ = 'http://github.com/jazzband/dj-rest-auth'
|
||||||
|
__version__ = '1.0.5'
|
||||||
|
__author__ = '@iMerica https://github.com/iMerica'
|
||||||
|
__author_email__ = 'imichael@pm.me'
|
||||||
|
__license__ = 'MIT'
|
||||||
|
__copyright__ = 'Copyright 2020 @iMerica https://github.com/iMerica'
|
|
@ -15,6 +15,10 @@
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
about = {}
|
||||||
|
with open('../dj_rest_auth/__version__.py', 'r', encoding="utf8") as f:
|
||||||
|
exec(f.read(), about)
|
||||||
|
|
||||||
# If extensions (or modules to document with autodoc) are in another directory,
|
# If extensions (or modules to document with autodoc) are in another directory,
|
||||||
# add these directories to sys.path here. If the directory is relative to the
|
# add these directories to sys.path here. If the directory is relative to the
|
||||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
|
@ -51,9 +55,9 @@ copyright = u'2020, @iMerica'
|
||||||
# built documents.
|
# built documents.
|
||||||
#
|
#
|
||||||
# The short X.Y version.
|
# The short X.Y version.
|
||||||
version = '0.9.5'
|
version = about['__version__']
|
||||||
# The full version, including alpha/beta/rc tags.
|
# The full version, including alpha/beta/rc tags.
|
||||||
release = '0.9.5'
|
release = about['__version__']
|
||||||
|
|
||||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||||
# for a list of supported languages.
|
# for a list of supported languages.
|
||||||
|
|
6
setup.py
6
setup.py
|
@ -10,9 +10,13 @@ long_description = f.read().strip()
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
|
|
||||||
|
about = {}
|
||||||
|
with open('dj_rest_auth/__version__.py', 'r', encoding="utf8") as f:
|
||||||
|
exec(f.read(), about)
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='dj-rest-auth',
|
name='dj-rest-auth',
|
||||||
version='1.0.4',
|
version=about['__version__'],
|
||||||
author='iMerica',
|
author='iMerica',
|
||||||
author_email='imichael@pm.me',
|
author_email='imichael@pm.me',
|
||||||
url='http://github.com/jazzband/dj-rest-auth',
|
url='http://github.com/jazzband/dj-rest-auth',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user