forked from Alir3z4/html2text
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
72 lines (63 loc) · 2.07 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
# coding: utf-8
import sys
from setuptools import setup, Command, find_packages
requires_list = []
try:
import unittest2 as unittest
except ImportError:
import unittest
else:
if sys.version_info <= (2, 6):
requires_list.append("unittest2")
class RunTests(Command):
"""New setup.py command to run all tests for the package.
"""
description = "run all tests for the package"
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
tests = unittest.TestLoader().discover('.')
runner = unittest.TextTestRunner()
results = runner.run(tests)
sys.exit(not results.wasSuccessful())
setup(
name="html2text",
version="2015.2.18",
description="Turn HTML into equivalent Markdown-structured text.",
author="Aaron Swartz",
author_email="[email protected]",
maintainer='Alireza Savand',
maintainer_email='[email protected]',
url='https://github.com/Alir3z4/html2text/',
cmdclass={'test': RunTests},
platforms='OS Independent',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.4',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3'
],
entry_points="""
[console_scripts]
html2text=html2text.cli:main
""",
license='GNU GPL 3',
requires=requires_list,
packages=find_packages(exclude=['test']),
include_package_data=True,
zip_safe=False,
)