allow no readme.md and comma
This commit is contained in:
parent
71dc482c94
commit
81a9a65949
9
setup.py
9
setup.py
@ -34,8 +34,11 @@ here = os.path.abspath(os.path.dirname(__file__))
|
|||||||
|
|
||||||
# Import the README and use it as the long-description.
|
# Import the README and use it as the long-description.
|
||||||
# Note: this will only work if 'README.md' is present in your MANIFEST.in file!
|
# Note: this will only work if 'README.md' is present in your MANIFEST.in file!
|
||||||
with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
|
try:
|
||||||
long_description = '\n' + f.read()
|
with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
|
||||||
|
long_description = '\n' + f.read()
|
||||||
|
except FileNotFoundError:
|
||||||
|
long_description = ''
|
||||||
|
|
||||||
# Load the package's __version__.py module as a dictionary.
|
# Load the package's __version__.py module as a dictionary.
|
||||||
about = {}
|
about = {}
|
||||||
@ -89,7 +92,7 @@ setup(
|
|||||||
version=about['__version__'],
|
version=about['__version__'],
|
||||||
description=DESCRIPTION,
|
description=DESCRIPTION,
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type='text/markdown'
|
long_description_content_type='text/markdown',
|
||||||
author=AUTHOR,
|
author=AUTHOR,
|
||||||
author_email=EMAIL,
|
author_email=EMAIL,
|
||||||
python_requires=REQUIRES_PYTHON,
|
python_requires=REQUIRES_PYTHON,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user