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
2404e51c
Commit
2404e51c
authored
Apr 20, 2011
by
Éric Araujo
Browse files
Options
Browse Files
Download
Plain Diff
Merge 3.1
parents
f4b20689
f55d96fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
14 deletions
+17
-14
command/sdist.py
command/sdist.py
+14
-11
tests/test_register.py
tests/test_register.py
+3
-3
No files found.
command/sdist.py
View file @
2404e51c
...
...
@@ -294,17 +294,20 @@ class sdist(Command):
join_lines
=
1
,
lstrip_ws
=
1
,
rstrip_ws
=
1
,
collapse_join
=
1
)
while
True
:
line
=
template
.
readline
()
if
line
is
None
:
# end of file
break
try
:
self
.
filelist
.
process_template_line
(
line
)
except
DistutilsTemplateError
as
msg
:
self
.
warn
(
"%s, line %d: %s"
%
(
template
.
filename
,
template
.
current_line
,
msg
))
try
:
while
True
:
line
=
template
.
readline
()
if
line
is
None
:
# end of file
break
try
:
self
.
filelist
.
process_template_line
(
line
)
except
DistutilsTemplateError
as
msg
:
self
.
warn
(
"%s, line %d: %s"
%
(
template
.
filename
,
template
.
current_line
,
msg
))
finally
:
template
.
close
()
def
prune_file_list
(
self
):
"""Prune off branches that might slip into the file list as created
...
...
tests/test_register.py
View file @
2404e51c
...
...
@@ -137,7 +137,7 @@ class RegisterTestCase(PyPIRCCommandTestCase):
# let's see what the server received : we should
# have 2 similar requests
self
.
assert
True
(
self
.
conn
.
reqs
,
2
)
self
.
assert
Equal
(
len
(
self
.
conn
.
reqs
)
,
2
)
req1
=
dict
(
self
.
conn
.
reqs
[
0
].
headers
)
req2
=
dict
(
self
.
conn
.
reqs
[
1
].
headers
)
...
...
@@ -169,7 +169,7 @@ class RegisterTestCase(PyPIRCCommandTestCase):
del
register_module
.
input
# we should have send a request
self
.
assert
True
(
self
.
conn
.
reqs
,
1
)
self
.
assert
Equal
(
len
(
self
.
conn
.
reqs
)
,
1
)
req
=
self
.
conn
.
reqs
[
0
]
headers
=
dict
(
req
.
headers
)
self
.
assertEqual
(
headers
[
'Content-length'
],
'608'
)
...
...
@@ -187,7 +187,7 @@ class RegisterTestCase(PyPIRCCommandTestCase):
del
register_module
.
input
# we should have send a request
self
.
assert
True
(
self
.
conn
.
reqs
,
1
)
self
.
assert
Equal
(
len
(
self
.
conn
.
reqs
)
,
1
)
req
=
self
.
conn
.
reqs
[
0
]
headers
=
dict
(
req
.
headers
)
self
.
assertEqual
(
headers
[
'Content-length'
],
'290'
)
...
...
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