|
14 | 14 | INSTALL_REQUIRES = ['stdlib_list', 'setuptools_scm', 'functools32;python_version<"3.2"', |
15 | 15 | 'scandir;python_version<"3.2"', 'pathlib2;python_version<"3.2"'] |
16 | 16 | DEPENDENCY_LINKS = [] |
17 | | -SETUP_REQUIRES = ['pytest-runner', 'setuptools_scm', 'pypandoc', 'pandoc'] |
18 | | -TESTS_REQUIRE = ['pytest', 'pytest-logging', 'pytest-cov', 'pytest-cases>=1.10.1', |
| 17 | +SETUP_REQUIRES = ['pytest-runner', 'setuptools_scm'] |
| 18 | +TESTS_REQUIRE = ['pytest', 'pytest-logging', 'pytest-cases>=1.10.1', |
19 | 19 | 'makefun==1.6.8' # we use that precise version because it does not have the __version__ attribute. |
20 | 20 | ] |
21 | 21 | EXTRAS_REQUIRE = {} |
|
40 | 40 |
|
41 | 41 | KEYWORDS = 'module version source binary package library PEP345 PEP396 PEP427 pkg_resources setuptools wheel egg ' \ |
42 | 42 | 'egg-info scm git svn' |
43 | | -# --Get the long description from the README file |
44 | | -# with open(path.join(here, 'README.md'), encoding='utf-8') as f: |
45 | | -# LONG_DESCRIPTION = f.read() |
46 | | -try: |
47 | | - import pypandoc |
48 | | - LONG_DESCRIPTION = pypandoc.convert(path.join(here, 'docs', 'long_description.md'), 'rst').replace('\r', '') |
49 | | -except(ImportError): |
50 | | - from warnings import warn |
51 | | - warn('WARNING pypandoc could not be imported - we recommend that you install it in order to package the ' |
52 | | - 'documentation correctly') |
53 | | - LONG_DESCRIPTION = open('README.md').read() |
54 | | - |
55 | | -# ************* VERSION A ************** |
| 43 | + |
| 44 | +with open(path.join(here, 'docs', 'long_description.md')) as f: |
| 45 | + LONG_DESCRIPTION = f.read() |
| 46 | + |
| 47 | +# ************* VERSION ************** |
56 | 48 | # --Get the Version number from VERSION file, see https://packaging.python.org/single_source_version/ option 4. |
57 | 49 | # THIS IS DEPRECATED AS WE NOW USE GIT TO MANAGE VERSION |
58 | 50 | # with open(path.join(here, 'VERSION')) as version_file: |
|
63 | 55 | name=DISTNAME, |
64 | 56 | description=DESCRIPTION, |
65 | 57 | long_description=LONG_DESCRIPTION, |
| 58 | + long_description_content_type='text/markdown', |
66 | 59 |
|
67 | 60 | # Versions should comply with PEP440. For a discussion on single-sourcing |
68 | 61 | # the version across setup.py and the project code, see |
|
0 commit comments