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
2a11a83c
Commit
2a11a83c
authored
Feb 17, 2009
by
Tarek Ziadé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed the data_files inclusion behavior
parent
681c04f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
command/sdist.py
command/sdist.py
+1
-1
tests/test_sdist.py
tests/test_sdist.py
+6
-2
No files found.
command/sdist.py
View file @
2a11a83c
...
...
@@ -319,7 +319,7 @@ class sdist (Command):
else
:
# a (dirname, filenames) tuple
dirname
,
filenames
=
item
for
f
in
filenames
:
f
=
convert_path
(
os
.
path
.
join
(
dirname
,
f
)
)
f
=
convert_path
(
f
)
if
os
.
path
.
isfile
(
f
):
self
.
filelist
.
append
(
f
)
...
...
tests/test_sdist.py
View file @
2a11a83c
...
...
@@ -23,6 +23,7 @@ setup(name='fake')
MANIFEST
=
"""
\
README
inroot.txt
setup.py
data%(sep)sdata.dt
scripts%(sep)sscript.py
...
...
@@ -171,10 +172,13 @@ class sdistTestCase(support.LoggingSilencer, PyPIRCCommandTestCase):
self
.
write_file
((
data_dir
,
'data.dt'
),
'#'
)
some_dir
=
join
(
self
.
tmp_dir
,
'some'
)
os
.
mkdir
(
some_dir
)
self
.
write_file
((
self
.
tmp_dir
,
'inroot.txt'
),
'#'
)
self
.
write_file
((
some_dir
,
'file.txt'
),
'#'
)
self
.
write_file
((
some_dir
,
'other_file.txt'
),
'#'
)
dist
.
data_files
=
[(
'data'
,
[
'data.dt'
,
'notexisting'
]),
dist
.
data_files
=
[(
'data'
,
[
'data/data.dt'
,
'inroot.txt'
,
'notexisting'
]),
'some/file.txt'
,
'some/other_file.txt'
]
...
...
@@ -202,7 +206,7 @@ class sdistTestCase(support.LoggingSilencer, PyPIRCCommandTestCase):
zip_file
.
close
()
# making sure everything was added
self
.
assertEquals
(
len
(
content
),
1
0
)
self
.
assertEquals
(
len
(
content
),
1
1
)
# checking the MANIFEST
manifest
=
open
(
join
(
self
.
tmp_dir
,
'MANIFEST'
)).
read
()
...
...
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