forked from CrossNox/m2r2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
67 lines (59 loc) · 2 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from os import path
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
readme_file = path.join(path.dirname(path.abspath(__file__)), "README.md")
try:
from m2r2 import parse_from_file
readme = parse_from_file(readme_file)
except ImportError:
with open(readme_file) as f:
readme = f.read()
__version__ = "0.3.1"
install_requires = ["mistune", "docutils"]
test_requirements = ["pygments"]
if sys.version_info < (3, 3):
test_requirements.append("mock")
setup(
name="m2r2",
version=__version__,
description="Markdown and reStructuredText in a single file.",
long_description=readme,
long_description_content_type="text/markdown",
author="Hiroyuki Takagi",
author_email="[email protected]",
maintainer="CrossNox",
maintainer_email="[email protected]",
url="https://github.com/crossnox/m2r2",
py_modules=["m2r2"],
entry_points={"console_scripts": "m2r2 = m2r2:main"},
include_package_data=True,
license="MIT",
zip_safe=False,
keywords="Markdown reStructuredText sphinx-extension",
classifiers=[
"Development Status :: 4 - Beta",
"Framework :: Sphinx :: Extension",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Text Processing",
],
install_requires=install_requires,
test_suite="tests",
tests_require=test_requirements,
)