Skip to content

Commit a0415f2

Browse files
committed
Set everything up so sdist produces a useful package.
This removes html5lib.tests from what is installed, but still packages it along with testdata, hence making the release still testable.
1 parent d3b33f8 commit a0415f2

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

MANIFEST.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
include LICENSE
2+
graft html5lib/tests/testdata
3+
recursive-include html5lib/tests *.py

setup.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
'Topic :: Text Processing :: Markup :: HTML'
2323
]
2424

25+
26+
packages = ['html5lib'] + ['html5lib.'+name
27+
for name in os.listdir(os.path.join('html5lib'))
28+
if os.path.isdir(os.path.join('html5lib', name)) and
29+
not name.startswith('.') and name != 'tests']
30+
2531
setup(name='html5lib',
2632
version='1.0b1',
2733
url='https://github.com/html5lib/html5lib-python',
@@ -31,8 +37,5 @@
3137
classifiers=classifiers,
3238
maintainer='James Graham',
3339
maintainer_email='james@hoppipolla.co.uk',
34-
packages=['html5lib'] + ['html5lib.'+name
35-
for name in os.listdir(os.path.join('html5lib'))
36-
if os.path.isdir(os.path.join('html5lib',name)) and
37-
not name.startswith('.')]
40+
packages=packages
3841
)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy