Compare commits
6 Commits
revert-57-
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1ff577e9a5 | ||
|
|
7cca62f7e9 | ||
|
|
3e54227206 | ||
|
|
a0e82fa640 | ||
|
|
c98aca0c67 | ||
|
|
38212d4b91 |
@ -33,6 +33,7 @@ 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,7 +48,8 @@ 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:
|
||||||
with open(os.path.join(here, NAME, '__version__.py')) as f:
|
project_slug = NAME.lower().replace("-", "_").replace(" ", "_")
|
||||||
|
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