Compare commits
No commits in common. "master" and "revert-57-version-module-attribute" have entirely different histories.
master
...
revert-57-
@ -33,7 +33,6 @@ More Resources
|
|||||||
--------------
|
--------------
|
||||||
|
|
||||||
- [What is setup.py?] on Stack Overflow
|
- [What is setup.py?] on Stack Overflow
|
||||||
- [Official Python Packaging User Guide](https://packaging.python.org)
|
|
||||||
- [The Hitchhiker's Guide to Packaging]
|
- [The Hitchhiker's Guide to Packaging]
|
||||||
- [Cookiecutter template for a Python package]
|
- [Cookiecutter template for a Python package]
|
||||||
|
|
||||||
|
|||||||
3
setup.py
3
setup.py
@ -48,8 +48,7 @@ except FileNotFoundError:
|
|||||||
# Load the package's __version__.py module as a dictionary.
|
# Load the package's __version__.py module as a dictionary.
|
||||||
about = {}
|
about = {}
|
||||||
if not VERSION:
|
if not VERSION:
|
||||||
project_slug = NAME.lower().replace("-", "_").replace(" ", "_")
|
with open(os.path.join(here, NAME, '__version__.py')) as f:
|
||||||
with open(os.path.join(here, project_slug, '__version__.py')) as f:
|
|
||||||
exec(f.read(), about)
|
exec(f.read(), about)
|
||||||
else:
|
else:
|
||||||
about['__version__'] = VERSION
|
about['__version__'] = VERSION
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user