Skip to content

Commit

Permalink
Adds centralized version store
Browse files Browse the repository at this point in the history
  • Loading branch information
iMerica committed May 9, 2020
1 parent a3955bc commit bffec48
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
8 changes: 8 additions & 0 deletions dj_rest_auth/__version__.py
Original file line number Diff line number Diff line change
@@ -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'
8 changes: 6 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -51,9 +55,9 @@
# 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.
Expand Down
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@
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',
Expand Down

0 comments on commit bffec48

Please sign in to comment.