Update setup.py

This commit is contained in:
Dev Aggarwal 2018-12-15 19:08:16 +05:30 committed by GitHub
parent 38212d4b91
commit c98aca0c67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,9 +46,9 @@ except FileNotFoundError:
long_description = DESCRIPTION long_description = DESCRIPTION
# Load the package's __version__.py module as a dictionary. # Load the package's __version__.py module as a dictionary.
project_slug = NAME.lower().replace("-", "_").replace(" ", "_")
about = {} about = {}
if not VERSION: 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, project_slug, '__version__.py')) as f:
exec(f.read(), about) exec(f.read(), about)
else: else: