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
410a6e05
Commit
410a6e05
authored
Sep 27, 2016
by
Jason R. Coombs
Committed by
GitHub
Sep 27, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #798 from timheap/faster-package-finder
Note find_packages backwards incompatible change
parents
f2d480b8
992adf2f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
CHANGES.rst
CHANGES.rst
+4
-0
setuptools/tests/test_find_packages.py
setuptools/tests/test_find_packages.py
+9
-0
No files found.
CHANGES.rst
View file @
410a6e05
...
@@ -6,6 +6,10 @@ In development
...
@@ -6,6 +6,10 @@ In development
--------------
--------------
*
#
733
:
Do
not
search
excluded
directories
for
packages
.
*
#
733
:
Do
not
search
excluded
directories
for
packages
.
This
introduced
a
backwards
incompatible
change
in
``
find_packages
()``
so
that
``
find_packages
(
exclude
=[
'foo'
])
==
[]``,
excluding
subpackages
of
``
foo
``.
Previously
,
``
find_packages
(
exclude
=[
'foo'
])
==
[
'foo.bar'
]``,
even
though
the
parent
``
foo
``
package
was
excluded
.
*
#
795
:
Bump
certifi
.
*
#
795
:
Bump
certifi
.
...
...
setuptools/tests/test_find_packages.py
View file @
410a6e05
...
@@ -98,6 +98,15 @@ class TestFindPackages:
...
@@ -98,6 +98,15 @@ class TestFindPackages:
packages
=
find_packages
(
self
.
dist_dir
,
exclude
=
(
'pkg.*'
,))
packages
=
find_packages
(
self
.
dist_dir
,
exclude
=
(
'pkg.*'
,))
assert
packages
==
[
'pkg'
]
assert
packages
==
[
'pkg'
]
def
test_exclude_recursive
(
self
):
"""
Excluding a parent package should exclude all child packages as well.
"""
self
.
_touch
(
'__init__.py'
,
self
.
pkg_dir
)
self
.
_touch
(
'__init__.py'
,
self
.
sub_pkg_dir
)
packages
=
find_packages
(
self
.
dist_dir
,
exclude
=
(
'pkg'
,))
assert
packages
==
[]
def
test_include_excludes_other
(
self
):
def
test_include_excludes_other
(
self
):
"""
"""
If include is specified, other packages should be excluded.
If include is specified, other packages should be excluded.
...
...
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