|
14 | 14 | INSTALL_REQUIRES = ['makefun', 'six', 'future;python_version<"3.3"', 'funcsigs;python_version<"3.3"', 'decopatch', |
15 | 15 | 'functools32;python_version<"3.2"'] # 'typing_inspect' is now copied internally so as to be compliant with very old versions of typing module |
16 | 16 | DEPENDENCY_LINKS = [] |
17 | | -SETUP_REQUIRES = ['pytest-runner', 'setuptools_scm', 'pypandoc', 'pandoc', 'enum34;python_version<"3.4"', 'six'] |
18 | | -TESTS_REQUIRE = ['pytest>=4.3.0', 'pytest-logging', 'pytest-cov', 'enforce', 'mini_lambda', 'attrs', 'numpy', |
| 17 | +SETUP_REQUIRES = ['pytest-runner', 'setuptools_scm', 'enum34;python_version<"3.4"', 'six'] |
| 18 | +TESTS_REQUIRE = ['pytest>=4.3.0', 'pytest-logging', 'enforce', 'mini_lambda', 'attrs', 'numpy', |
19 | 19 | 'autoclass', 'checktypes', 'pytest-cases'] |
20 | 20 | EXTRAS_REQUIRE = {} |
21 | 21 |
|
|
42 | 42 |
|
43 | 43 | KEYWORDS = 'decorate decorator input arg args argument function contract value check checker valid validate validator' \ |
44 | 44 | ' validation' |
45 | | -# --Get the long description from the README file |
46 | | -# with open(path.join(here, 'README.md'), encoding='utf-8') as f: |
47 | | -# LONG_DESCRIPTION = f.read() |
48 | | -try: |
49 | | - import pypandoc |
50 | | - LONG_DESCRIPTION = pypandoc.convert(path.join(here, 'docs', 'long_description.md'), 'rst').replace('\r', '') |
51 | | -except(ImportError): |
52 | | - from warnings import warn |
53 | | - warn('WARNING pypandoc could not be imported - we recommend that you install it in order to package the ' |
54 | | - 'documentation correctly') |
55 | | - LONG_DESCRIPTION = open('README.md').read() |
| 45 | + |
| 46 | +with open(path.join(here, 'docs', 'long_description.md')) as f: |
| 47 | + LONG_DESCRIPTION = f.read() |
56 | 48 |
|
57 | 49 | # ************* VERSION ************** |
58 | 50 | # --Get the Version number from VERSION file, see https://packaging.python.org/single_source_version/ option 4. |
|
65 | 57 | name=DISTNAME, |
66 | 58 | description=DESCRIPTION, |
67 | 59 | long_description=LONG_DESCRIPTION, |
| 60 | + long_description_content_type='text/markdown', |
68 | 61 |
|
69 | 62 | # Versions should comply with PEP440. For a discussion on single-sourcing |
70 | 63 | # the version across setup.py and the project code, see |
|
162 | 155 | # 'sample=sample:main', |
163 | 156 | # ], |
164 | 157 | # }, |
165 | | - |
166 | 158 | ) |
0 commit comments