File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 1
1
from distutils .core import setup
2
+ import os
2
3
3
4
long_description = """HTML parser designed to follow the WHATWG HTML5
4
5
specification. The parser is designed to handle all flavours of HTML and
20
21
],
21
22
22
23
setup (name = 'html5lib' ,
23
- version = '0.2 ' ,
24
+ version = '0.3 ' ,
24
25
url = 'http://code.google.com/p/html5lib/' ,
25
26
license = "MIT License" ,
26
27
description = 'HTML parser based on the WHAT-WG Web Applications 1.0'
29
30
classifiers = classifiers ,
30
31
maintainer = 'James Graham' ,
31
32
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' }
34
38
)
Original file line number Diff line number Diff line change 1
1
from distutils .core import setup
2
+ import os
2
3
3
4
long_description = """HTML parser designed to follow the WHATWG HTML5
4
5
specification. The parser is designed to handle all flavours of HTML and
29
30
classifiers = classifiers ,
30
31
maintainer = 'James Graham' ,
31
32
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' }
34
38
)
You can’t perform that action at this time.
0 commit comments