|
6 | 6 | """
|
7 | 7 |
|
8 | 8 | # To use a consistent encoding
|
9 |
| -from os import path |
10 |
| -import codecs |
11 | 9 |
|
12 | 10 | # Always prefer setuptools over distutils
|
13 | 11 | from setuptools import setup
|
14 | 12 |
|
15 | 13 | # Get the long description from the README file
|
16 |
| -README = path.join(path.abspath(path.dirname(__file__)), "README.md") |
17 |
| -try: |
18 |
| - import pypandoc |
19 |
| - |
20 |
| - LONG_DESCRIPTION = pypandoc.convert(README, "rst") |
21 |
| -except (IOError, ImportError): |
22 |
| - with codecs.open(README, encoding="utf-8") as f: |
23 |
| - LONG_DESCRIPTION = f.read() |
| 14 | +with open("README.md", encoding="utf-8") as stream: |
| 15 | + LONG_DESCRIPTION = stream.read() |
24 | 16 |
|
25 | 17 | setup(
|
26 | 18 | name="pandoc-codeblock-include",
|
27 | 19 | # Versions should comply with PEP440. For a discussion on single-sourcing
|
28 | 20 | # the version across setup.py and the project code, see
|
29 | 21 | # https://packaging.python.org/en/latest/single_source_version.html
|
30 |
| - version="0.1.0", |
31 | 22 | # The project's description
|
32 | 23 | description="A pandoc filter for including file in block code",
|
33 | 24 | long_description=LONG_DESCRIPTION,
|
| 25 | + long_description_content_type="text/markdown", |
34 | 26 | # The project's main homepage.
|
35 | 27 | url="https://github.com/chdemko/pandoc-codeblock-include",
|
36 | 28 | # The project's download page
|
37 |
| - download_url="https://github.com/chdemko/pandoc-codeblock-include/archive/master.zip", |
| 29 | + download_url="https://github.com/chdemko/pandoc-codeblock-include/archive/develop.zip", |
38 | 30 | # Author details
|
39 | 31 | author="Christophe Demko",
|
40 | 32 | author_email="chdemko@gmail.com",
|
|
59 | 51 | "Topic :: Software Development :: Build Tools",
|
60 | 52 | # Specify the Python versions you support here. In particular, ensure
|
61 | 53 | # that you indicate whether you support Python 2.7, Python 3 or both.
|
62 |
| - "Programming Language :: Python :: 2.7", |
63 |
| - "Programming Language :: Python :: 3", |
| 54 | + "Programming Language :: Python :: 3.6", |
| 55 | + "Programming Language :: Python :: 3.7", |
| 56 | + "Programming Language :: Python :: 3.8", |
| 57 | + "Programming Language :: Python :: 3.9", |
64 | 58 | ],
|
65 | 59 | # What does your project relate to?
|
66 | 60 | keywords="pandoc filters codeblock include",
|
|
77 | 71 | # your project is installed. For an analysis of "install_requires" vs pip's
|
78 | 72 | # requirements files see:
|
79 | 73 | # https://packaging.python.org/en/latest/requirements.html
|
80 |
| - install_requires=["panflute>=1.10", "pypandoc>=1.4"], |
| 74 | + install_requires=["panflute>=2.0"], |
81 | 75 | # List additional groups of dependencies here (e.g. development
|
82 | 76 | # dependencies). You can install these using the following syntax,
|
83 | 77 | # for example:
|
84 | 78 | # $ pip install -e .[dev,test]
|
85 |
| - extras_require={"dev": ["check-manifest"], "test": ["tox"]}, |
| 79 | + extras_require={ |
| 80 | + "dev": ["check-manifest"], |
| 81 | + "test": [ |
| 82 | + "tox", |
| 83 | + "pytest-runner", |
| 84 | + "pytest-cov", |
| 85 | + "black", |
| 86 | + "doc8", |
| 87 | + "pylint>=2.6", |
| 88 | + "panflute>=2.0", |
| 89 | + ], |
| 90 | + }, |
86 | 91 | # packages=find_packages(),
|
87 | 92 | # include_package_data = True,
|
88 |
| - setup_requires=["pypandoc", "pytest-runner"], |
89 |
| - tests_require=["pytest"], |
90 | 93 | )
|
0 commit comments