|
1 | | -# from importlib import import_module |
2 | | -from os import path |
3 | | -import re |
4 | | -from setuptools import find_packages, setup |
| 1 | +# This file is needed for editable installs (`pip install -e .`). |
| 2 | +# Can be removed once the following is resolved |
| 3 | +# https://github.com/pypa/packaging-problems/issues/256 |
| 4 | +from setuptools import setup |
5 | 5 |
|
6 | | - |
7 | | -def get_version(): |
8 | | - text = open(path.join(path.dirname(__file__), "markdown_it", "__init__.py")).read() |
9 | | - match = re.compile(r"^__version__\s*\=\s*[\"\']([^\s\'\"]+)", re.M).search(text) |
10 | | - return match.group(1) |
11 | | - |
12 | | - |
13 | | -setup( |
14 | | - name="markdown-it-py", |
15 | | - version=get_version(), |
16 | | - description="Python port of markdown-it. Markdown parsing, done right!", |
17 | | - long_description=open("README.md").read(), |
18 | | - long_description_content_type="text/markdown", |
19 | | - url="https://github.com/executablebooks/markdown-it-py", |
20 | | - project_urls={"Documentation": "https://markdown-it-py.readthedocs.io"}, |
21 | | - author="Chris Sewell", |
22 | | - author_email="chrisj_sewell@hotmail.com", |
23 | | - license="MIT", |
24 | | - packages=find_packages(exclude=["test*", "benchmarking"]), |
25 | | - include_package_data=True, |
26 | | - entry_points={"console_scripts": ["markdown-it = markdown_it.cli.parse:main"]}, |
27 | | - classifiers=[ |
28 | | - "Development Status :: 3 - Alpha", |
29 | | - "Intended Audience :: Developers", |
30 | | - "License :: OSI Approved :: MIT License", |
31 | | - "Programming Language :: Python :: 3", |
32 | | - "Programming Language :: Python :: 3.6", |
33 | | - "Programming Language :: Python :: 3.7", |
34 | | - "Programming Language :: Python :: 3.8", |
35 | | - "Programming Language :: Python :: 3.9", |
36 | | - "Programming Language :: Python :: Implementation :: CPython", |
37 | | - "Programming Language :: Python :: Implementation :: PyPy", |
38 | | - "Topic :: Software Development :: Libraries :: Python Modules", |
39 | | - "Topic :: Text Processing :: Markup", |
40 | | - ], |
41 | | - keywords="markdown lexer parser development", |
42 | | - python_requires="~=3.6", |
43 | | - install_requires=["attrs>=19,<21", "mdit-py-plugins~=0.2.6"], |
44 | | - extras_require={ |
45 | | - "code_style": ["pre-commit==2.6"], |
46 | | - "testing": [ |
47 | | - "coverage", |
48 | | - "pytest>=3.6,<4", |
49 | | - "pytest-cov", |
50 | | - "pytest-regressions", |
51 | | - "pytest-benchmark~=3.2", |
52 | | - "psutil", |
53 | | - ], |
54 | | - "rtd": [ |
55 | | - "myst-nb~=0.11.1", |
56 | | - "sphinx_book_theme", |
57 | | - "sphinx-panels~=0.4.0", |
58 | | - "sphinx-copybutton", |
59 | | - "sphinx>=2,<4", |
60 | | - "pyyaml", |
61 | | - ], |
62 | | - "compare": [ |
63 | | - "commonmark~=0.9.1", |
64 | | - "markdown~=3.2.2", |
65 | | - "mistune~=0.8.4", |
66 | | - # "mistletoe~=0.7.2", |
67 | | - "mistletoe-ebp~=0.10.0", |
68 | | - "panflute~=1.12", |
69 | | - ], |
70 | | - "linkify": ["linkify-it-py~=1.0"], |
71 | | - }, |
72 | | - zip_safe=False, |
73 | | -) |
| 6 | +setup() |
0 commit comments