Merge pull request #64 from kennethreitz/revert-57-version-module-attribute
Revert "Follow PEP 396: expose __version__ string as a module-level attribute"
This commit is contained in:
commit
a0e82fa640
@ -1,5 +1 @@
|
||||
|
||||
from ._version import VERSION
|
||||
__version__ = '.'.join(map(str, VERSION))
|
||||
|
||||
from .core import *
|
||||
|
||||
@ -4,3 +4,5 @@
|
||||
# 88 YY 88 dP 88 dP""""Yb YboodP 88 Yb dP""""Yb YboodP 888888
|
||||
|
||||
VERSION = (5, 2, 0)
|
||||
|
||||
__version__ = '.'.join(map(str, VERSION))
|
||||
5
setup.py
5
setup.py
@ -45,12 +45,11 @@ try:
|
||||
except FileNotFoundError:
|
||||
long_description = DESCRIPTION
|
||||
|
||||
# Load the package's _version.py module as a dictionary.
|
||||
# Load the package's __version__.py module as a dictionary.
|
||||
about = {}
|
||||
if not VERSION:
|
||||
with open(os.path.join(here, NAME, '_version.py')) as f:
|
||||
with open(os.path.join(here, NAME, '__version__.py')) as f:
|
||||
exec(f.read(), about)
|
||||
about['__version__'] = '.'.join(map(str, about['VERSION']))
|
||||
else:
|
||||
about['__version__'] = VERSION
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user