|
14 | 14 | INSTALL_REQUIRES = ['wrapt', 'decopatch', 'makefun', 'functools32;python_version<"3.2"', |
15 | 15 | 'funcsigs;python_version<"3.3"', 'enum34;python_version<"3.4"', 'six'] |
16 | 16 | DEPENDENCY_LINKS = [] |
17 | | -SETUP_REQUIRES = ['pytest-runner', 'setuptools_scm', 'pypandoc', 'pandoc', 'six'] |
| 17 | +SETUP_REQUIRES = ['pytest-runner', 'setuptools_scm', 'six'] |
18 | 18 | TESTS_REQUIRE = ['pytest', 'pytest-logging', 'pytest-steps', 'pytest-harvest'] |
19 | 19 | EXTRAS_REQUIRE = {} |
20 | 20 |
|
|
37 | 37 | DOWNLOAD_URL = URL + '/tarball/' + version_for_download_url |
38 | 38 |
|
39 | 39 | KEYWORDS = 'pytest test case testcase test-case decorator parametrize parameter data dataset file separate concerns' |
40 | | -# --Get the long description from the README file |
41 | | -# with open(path.join(here, 'README.md'), encoding='utf-8') as f: |
42 | | -# LONG_DESCRIPTION = f.read() |
43 | | -try: |
44 | | - import pypandoc |
45 | | - LONG_DESCRIPTION = pypandoc.convert(path.join(here, 'docs', 'long_description.md'), 'rst').replace('\r', '') |
46 | | -except(ImportError): |
47 | | - from warnings import warn |
48 | | - warn('WARNING pypandoc could not be imported - we recommend that you install it in order to package the ' |
49 | | - 'documentation correctly') |
50 | | - LONG_DESCRIPTION = open('README.md').read() |
51 | | - |
52 | | -# ************* VERSION A ************** |
| 40 | + |
| 41 | +with open(path.join(here, 'docs', 'long_description.md')) as f: |
| 42 | + LONG_DESCRIPTION = f.read() |
| 43 | + |
| 44 | +# ************* VERSION ************** |
53 | 45 | # --Get the Version number from VERSION file, see https://packaging.python.org/single_source_version/ option 4. |
54 | 46 | # THIS IS DEPRECATED AS WE NOW USE GIT TO MANAGE VERSION |
55 | 47 | # with open(path.join(here, 'VERSION')) as version_file: |
|
60 | 52 | name=DISTNAME, |
61 | 53 | description=DESCRIPTION, |
62 | 54 | long_description=LONG_DESCRIPTION, |
| 55 | + long_description_content_type='text/markdown', |
63 | 56 |
|
64 | 57 | # Versions should comply with PEP440. For a discussion on single-sourcing |
65 | 58 | # the version across setup.py and the project code, see |
|
122 | 115 | dependency_links=DEPENDENCY_LINKS, |
123 | 116 |
|
124 | 117 | # we're using git |
125 | | - use_scm_version=True, # this provides the version + adds the date if local non-commited changes. |
| 118 | + use_scm_version={'write_to': '%s/_version.py' % DISTNAME}, # this provides the version + adds the date if local non-commited changes. |
126 | 119 | # use_scm_version={'local_scheme':'dirty-tag'}, # this provides the version + adds '+dirty' if local non-commited changes. |
127 | 120 | setup_requires=SETUP_REQUIRES, |
128 | 121 |
|
|
0 commit comments