8000 Update setup · awesome-python/html5lib-python@49b9091 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 49b9091

Browse files
committed
Update setup
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40817
1 parent 7064a97 commit 49b9091

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

setup.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from distutils.core import setup
2+
import os
23

34
long_description="""HTML parser designed to follow the WHATWG HTML5
45
specification. The parser is designed to handle all flavours of HTML and
@@ -20,7 +21,7 @@
2021
],
2122

2223
setup(name='html5lib',
23-
version='0.2',
24+
version='0.3',
2425
url='http://code.google.com/p/html5lib/',
2526
license="MIT License",
2627
description='HTML parser based on the WHAT-WG Web Applications 1.0'
@@ -29,6 +30,9 @@
2930
classifiers=classifiers,
3031
maintainer='James Graham',
3132
maintainer_email='jg307@cam.ac.uk',
32-
packages=['html5lib', 'html5lib.treebuilders'],
33-
package_dir = {'html5lib': 'src'}
33+
packages=['html5lib'] + ['html5lib.'+name
34+
for name in os.listdir(os.path.join('src','html5lib'))
35+
if os.path.isdir(os.path.join('src','html5lib',name)) and
36+
not name.startswith('.')],
37+
package_dir = {'html5lib': 'src/html5lib'}
3438
)

setup_base.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from distutils.core import setup
2+
import os
23

34
long_description="""HTML parser designed to follow the WHATWG HTML5
45
specification. The parser is designed to handle all flavours of HTML and
@@ -29,6 +30,9 @@
2930
classifiers=classifiers,
3031
maintainer='James Graham',
3132
maintainer_email='jg307@cam.ac.uk',
32-
packages=['html5lib', 'html5lib.treebuilders'],
33-
package_dir = {'html5lib': 'src'}
33+
packages=['html5lib'] + ['html5lib.'+name
34+
for name in os.listdir(os.path.join('src','html5lib'))
35+
if os.path.isdir(os.path.join('src','html5lib',name)) and
36+
not name.startswith('.')],
37+
package_dir = {'html5lib': 'src/html5lib'}
3438
)

0 commit comments

Comments
 (0)
0