|
31 | 31 | # *************** Dependencies ********* |
32 | 32 | INSTALL_REQUIRES = [] |
33 | 33 | DEPENDENCY_LINKS = [] |
34 | | -SETUP_REQUIRES = ['pytest-runner', 'setuptools_scm', 'pypandoc', 'pandoc', 'ordered-set', 'mako'] |
| 34 | +SETUP_REQUIRES = ['pytest-runner', 'setuptools_scm', 'pypandoc', 'pandoc', 'ordered-set', 'mako', 'six'] |
35 | 35 | TESTS_REQUIRE = ['pytest', 'pytest-logging', 'pytest-cov', 'numpy', 'pandas'] |
36 | 36 | EXTRAS_REQUIRE = {} |
37 | 37 |
|
|
54 | 54 | DOWNLOAD_URL = URL + '/tarball/' + version_for_download_url |
55 | 55 |
|
56 | 56 | KEYWORDS = 'mini minimal lambda expr expression simple print string func function symbol symbolic' |
57 | | -# --Get the long description from the README file |
58 | | -# with open(path.join(here, 'README.md'), encoding='utf-8') as f: |
59 | | -# LONG_DESCRIPTION = f.read() |
60 | | -try: |
61 | | - import pypandoc |
62 | | - LONG_DESCRIPTION = pypandoc.convert(path.join(here, 'docs', 'long_description.md'), 'rst').replace('\r', '') |
63 | | -except(ImportError): |
64 | | - from warnings import warn |
65 | | - warn('WARNING pypandoc could not be imported - we recommend that you install it in order to package the ' |
66 | | - 'documentation correctly') |
67 | | - LONG_DESCRIPTION = open('README.md').read() |
| 57 | + |
| 58 | +with open(path.join(here, 'docs', 'long_description.md')) as f: |
| 59 | + LONG_DESCRIPTION = f.read() |
68 | 60 |
|
69 | 61 | # ************* VERSION ************** |
70 | 62 | # --Get the Version number from VERSION file, see https://packaging.python.org/single_source_version/ option 4. |
|
77 | 69 | name=DISTNAME, |
78 | 70 | description=DESCRIPTION, |
79 | 71 | long_description=LONG_DESCRIPTION, |
| 72 | + long_description_content_type='text/markdown', |
80 | 73 |
|
81 | 74 | # Versions should comply with PEP440. For a discussion on single-sourcing |
82 | 75 | # the version across setup.py and the project code, see |
|
174 | 167 | # 'sample=sample:main', |
175 | 168 | # ], |
176 | 169 | # }, |
| 170 | + |
| 171 | + # explicitly setting the flag to avoid `ply` being downloaded |
| 172 | + # see https://github.com/smarie/python-getversion/pull/5 |
| 173 | + # and to make mypy happy |
| 174 | + # see https://mypy.readthedocs.io/en/latest/installed_packages.html |
| 175 | + zip_safe=False, |
177 | 176 | ) |
0 commit comments