Adds centralized version store

This commit is contained in:
Michael 2020-05-09 17:32:05 -05:00
parent a3955bca18
commit bffec48e01
3 changed files with 19 additions and 3 deletions

View 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'

View File

@ -15,6 +15,10 @@
import os
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,
# 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.
@ -51,9 +55,9 @@ copyright = u'2020, @iMerica'
# built documents.
#
# The short X.Y version.
version = '0.9.5'
version = about['__version__']
# 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
# for a list of supported languages.

View File

@ -10,9 +10,13 @@ long_description = f.read().strip()
f.close()
about = {}
with open('dj_rest_auth/__version__.py', 'r', encoding="utf8") as f:
exec(f.read(), about)
setup(
name='dj-rest-auth',
version='1.0.4',
version=about['__version__'],
author='iMerica',
author_email='imichael@pm.me',
url='http://github.com/jazzband/dj-rest-auth',