forked from Global19-atlassian-net/html5lib-python
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup_base.py
More file actions
40 lines (36 loc) · 1.52 KB
/
setup_base.py
File metadata and controls
40 lines (36 loc) · 1.52 KB
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
from setuptools import setup
import os
long_description="""HTML parser designed to follow the WHATWG HTML5
specification. The parser is designed to handle all flavours of HTML and
parses invalid documents using well-defined error handling rules compatible
with the behaviour of major desktop web browsers.
Output is to a tree structure; the current release supports output to
DOM, ElementTree, lxml and BeautifulSoup tree formats as well as a
simple custom format"""
classifiers=[
'Development Status :: %(status)s',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Processing :: Markup :: HTML'
],
setup(name='html5lib',
version='%(version)s',
url='http://code.google.com/p/html5lib/',
license="MIT License",
description='HTML parser based on the WHAT-WG Web Applications 1.0'
'("HTML5") specifcation',
long_description=long_description,
classifiers=classifiers,
maintainer='James Graham',
maintainer_email='jg307@cam.ac.uk',
packages=['html5lib'] + ['html5lib.'+name
for name in os.listdir(os.path.join('src','html5lib'))
if os.path.isdir(os.path.join('src','html5lib',name)) and
not name.startswith('.')],
package_dir = {'': 'src/'},
test_suite = "tests.buildTestSuite",
tests_require = ['simplejson']
)