Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita0415f2

Browse files
committed
Set everything up so sdist produces a useful package.
This removes html5lib.tests from what is installed, but stillpackages it along with testdata, hence making the release stilltestable.
1 parentd3b33f8 commita0415f2

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+
fornameinos.listdir(os.path.join('html5lib'))
28+
ifos.path.isdir(os.path.join('html5lib',name))and
29+
notname.startswith('.')andname!='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-
fornameinos.listdir(os.path.join('html5lib'))
36-
ifos.path.isdir(os.path.join('html5lib',name))and
37-
notname.startswith('.')]
40+
packages=packages
3841
)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp