-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
95 lines (88 loc) · 2.48 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
import os
import sys
import re
from setuptools import find_namespace_packages
from setuptools import find_packages
from setuptools import setup
with open('html2txt/__init__.py', 'r') as fh:
setup_info = fh.read()
__version__ ,= re.findall("__version__ = '(.*)'", setup_info)
__author__ ,= re.findall("__author__ = '(.*)'", setup_info)
__email__ ,= re.findall("__email__ = '(.*)'", setup_info)
setup_info = None
with open("README.md", "r") as fh:
long_description = fh.read()
install_requires = [
"html5lib>=1.0.1",
"mistune==0.8.4",
"six>=1.14.0",
"webencodings>=0.5.1",
]
tests_require = [
"appdirs>=1.4.4",
"attrs>=19.3.0",
"colorama>=0.4.3",
"distlib>=0.3.0",
"docopt>=0.6.2",
"filelock>=3.0.12",
"importlib-metadata>=1.6.0",
"more-itertools>=8.2.0",
"packaging>=20.3",
"pathtools>=0.1.2",
"pluggy>=0.13.1",
"py>=1.8.1",
"pyparsing>=2.4.7",
"pytest>=5.4.1",
"pytest-mock>=3.1.0",
"pytest-watch>=4.2.0",
"six>=1.14.0",
"toml>=0.10.0",
"tox>=3.15.0",
"virtualenv>=20.0.20",
"watchdog>=0.10.2",
"wcwidth>=0.1.9",
"zipp>=3.1.0",
]
classifiers = """\
Development Status :: 3 - Alpha
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Programming Language :: Python
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Operating System :: OS Independent
Topic :: Software Development :: Libraries :: Python Modules
Topic :: Software Development :: Documentation
Topic :: Text Processing :: Filters
Topic :: Text Processing :: Markup :: HTML
"""
setup(
name="html2txt",
version=__version__,
maintainer=__author__,
maintainer_email=__email__,
author=__author__,
author_email=__email__,
license="MIT",
keywords = "markdown HTML converter ast",
platforms=["any"],
namespace_packages=['html2txt'],
packages=find_packages(),
requires = [],
install_requires=install_requires,
tests_require=tests_require,
package_data = {'': ['*.md']},
description="Convert HTML to markdown",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/renesugar/html2txt",
project_urls={
"Bug Tracker": "https://github.com/renesugar/html2txt/issues",
"Documentation": "https://github.com/renesugar/html2txt/wiki",
"Source Code": "https://github.com/renesugar/html2txt",
},
download_url = "https://github.com/renesugar/html2txt/tarball/master",
classifiers=filter(None, classifiers.split("\n")),
python_requires='>=3.6',
zip_safe=False,
)