Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
db165ca6
Commit
db165ca6
authored
Mar 16, 2014
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for find_packages(include=)
--HG-- extra : rebase_source : bee4238f4cd00fa8bd3104017f4caf234dcf0729
parent
cc20858d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
setuptools/tests/test_find_packages.py
setuptools/tests/test_find_packages.py
+10
-0
No files found.
setuptools/tests/test_find_packages.py
View file @
db165ca6
...
...
@@ -63,6 +63,16 @@ class TestFindPackages(unittest.TestCase):
packages
=
find_packages
(
self
.
dist_dir
)
self
.
assertEqual
(
packages
,
[
'pkg'
,
'pkg.subpkg'
])
def
test_include_excludes_other
(
self
):
"""
If include is specified, other packages should be excluded.
"""
self
.
_touch
(
'__init__.py'
,
self
.
pkg_dir
)
alt_dir
=
self
.
_mkdir
(
'other_pkg'
,
self
.
dist_dir
)
self
.
_touch
(
'__init__.py'
,
alt_dir
)
packages
=
find_packages
(
self
.
dist_dir
,
include
=
[
'other_pkg'
])
self
.
assertEqual
(
packages
,
[
'other_pkg'
])
def
test_dir_with_dot_is_skipped
(
self
):
shutil
.
rmtree
(
os
.
path
.
join
(
self
.
dist_dir
,
'pkg/subpkg/assets'
))
data_dir
=
self
.
_mkdir
(
'some.data'
,
self
.
pkg_dir
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment