Compare commits

..

No commits in common. "master" and "revert-57-version-module-attribute" have entirely different histories.

2 changed files with 1 additions and 3 deletions

View File

@ -33,7 +33,6 @@ More Resources
--------------
- [What is setup.py?] on Stack Overflow
- [Official Python Packaging User Guide](https://packaging.python.org)
- [The Hitchhiker's Guide to Packaging]
- [Cookiecutter template for a Python package]

View File

@ -48,8 +48,7 @@ except FileNotFoundError:
# Load the package's __version__.py module as a dictionary.
about = {}
if not VERSION:
project_slug = NAME.lower().replace("-", "_").replace(" ", "_")
with open(os.path.join(here, project_slug, '__version__.py')) as f:
with open(os.path.join(here, NAME, '__version__.py')) as f:
exec(f.read(), about)
else:
about['__version__'] = VERSION