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

Commit417653a

Browse files
mindwgsnedders
authored andcommitted
use find_packages for simplicity in setup.py
1 parent06254ca commit417653a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

‎setup.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
importos
33
importcodecs
44

5-
fromsetuptoolsimportsetup
5+
fromsetuptoolsimportsetup,find_packages
66

77

88
classifiers=[
@@ -22,11 +22,6 @@
2222
'Topic :: Text Processing :: Markup :: HTML'
2323
]
2424

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-
3025
current_dir=os.path.dirname(__file__)
3126
withcodecs.open(os.path.join(current_dir,'README.rst'),'r','utf8')asreadme_file:
3227
withcodecs.open(os.path.join(current_dir,'CHANGES.rst'),'r','utf8')aschanges_file:
@@ -53,7 +48,7 @@
5348
classifiers=classifiers,
5449
maintainer='James Graham',
5550
maintainer_email='james@hoppipolla.co.uk',
56-
packages=packages,
51+
packages=find_packages(exclude=["*.tests","*.tests.*","tests.*","tests"]),
5752
install_requires=[
5853
'six',
5954
'webencodings',

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp