diff options
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 20 |
1 files changed, 3 insertions, 17 deletions
@@ -4,7 +4,6 @@ # Note: To use the 'upload' functionality of this file, you must: # $ pip install twine -import io import os import sys from shutil import rmtree @@ -16,24 +15,10 @@ NAME = 'asciidoc' DESCRIPTION = 'AsciiDoc is a text document format for writing things.' URL = 'https://github.com/asciidoc/asciidoc-py3' AUTHOR = 'asciidoc team' -REQUIRES_PYTHON = '>=3.4.0' - -# The rest you shouldn't have to touch too much :) -# ------------------------------------------------ -# Except, perhaps the License and Trove Classifiers! -# If you do change the License, remember to change the Trove Classifier -# for that! +REQUIRES_PYTHON = '>=3.5.0' here = os.path.abspath(os.path.dirname(__file__)) -# 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! -try: - with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f: - long_description = '\n' + f.read() -except FileNotFoundError: - long_description = DESCRIPTION - # Load the package's __metadata__.py module as a dictionary. about = {} with open(os.path.join(here, NAME, '__metadata__.py')) as f: @@ -84,7 +69,8 @@ setup( name=NAME, version=about['__version__'], description=DESCRIPTION, - long_description=long_description, + long_description=open(os.path.join(here, 'README')), + long_description_content_type='text/markdown', # This is important! author=AUTHOR, python_requires=REQUIRES_PYTHON, url=URL, |