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
3c0d3a91
Commit
3c0d3a91
authored
Sep 06, 2015
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update docstring and test to match long-standing expectation in behavior.
parent
9366bb09
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
setuptools/__init__.py
setuptools/__init__.py
+3
-2
setuptools/tests/test_setuptools.py
setuptools/tests/test_setuptools.py
+1
-0
No files found.
setuptools/__init__.py
View file @
3c0d3a91
...
...
@@ -137,8 +137,9 @@ class Command(_Command):
distutils
.
core
.
Command
=
Command
# we can't patch distutils.cmd, alas
def
findall
(
dir
=
os
.
curdir
):
"""Find all files under 'dir' and return the list of full filenames
(relative to 'dir').
"""
Find all files under 'dir' and return the list of full filenames.
Unless dir is '.', return full filenames with dir prepended.
"""
all_files
=
[]
for
base
,
dirs
,
files
in
os
.
walk
(
dir
,
followlinks
=
True
):
...
...
setuptools/tests/test_setuptools.py
View file @
3c0d3a91
...
...
@@ -14,6 +14,7 @@ def example_source(tmpdir):
def
test_findall
(
example_source
):
found
=
list
(
setuptools
.
findall
(
str
(
example_source
)))
expected
=
[
'readme.txt'
,
'foo/bar.py'
]
expected
=
[
example_source
.
join
(
fn
)
for
fn
in
expected
]
assert
found
==
expected
...
...
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