|
2 | 2 | importos
|
3 | 3 | importcodecs
|
4 | 4 |
|
5 |
| -fromsetuptoolsimportsetup |
| 5 | +fromsetuptoolsimportsetup,find_packages |
6 | 6 |
|
7 | 7 |
|
8 | 8 | classifiers=[
|
|
22 | 22 | 'Topic :: Text Processing :: Markup :: HTML'
|
23 | 23 | ]
|
24 | 24 |
|
25 |
| -packages= ['html5lib']+ ['html5lib.'+name |
26 |
| -fornameinos.listdir(os.path.join('html5lib')) |
27 |
| -ifos.path.isdir(os.path.join('html5lib',name))and |
28 |
| -notname.startswith('.')andname!='tests'] |
29 |
| - |
30 | 25 | current_dir=os.path.dirname(__file__)
|
31 | 26 | withcodecs.open(os.path.join(current_dir,'README.rst'),'r','utf8')asreadme_file:
|
32 | 27 | withcodecs.open(os.path.join(current_dir,'CHANGES.rst'),'r','utf8')aschanges_file:
|
|
53 | 48 | classifiers=classifiers,
|
54 | 49 | maintainer='James Graham',
|
55 | 50 | maintainer_email='james@hoppipolla.co.uk',
|
56 |
| -packages=packages, |
| 51 | +packages=find_packages(exclude=["*.tests","*.tests.*","tests.*","tests"]), |
57 | 52 | install_requires=[
|
58 | 53 | 'six',
|
59 | 54 | 'webencodings',
|
|