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
d1dccc76
Commit
d1dccc76
authored
May 12, 2020
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Just remove fragment remover. PyPI no longer supplies these md5 values anyway. Fixes #2089.
parent
322734cf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
pkg_resources/__init__.py
pkg_resources/__init__.py
+2
-11
No files found.
pkg_resources/__init__.py
View file @
d1dccc76
...
@@ -55,7 +55,7 @@ except NameError:
...
@@ -55,7 +55,7 @@ except NameError:
FileExistsError
=
OSError
FileExistsError
=
OSError
from
pkg_resources.extern
import
six
from
pkg_resources.extern
import
six
from
pkg_resources.extern.six.moves
import
urllib
,
map
,
filter
from
pkg_resources.extern.six.moves
import
map
,
filter
# capture these to bypass sandboxing
# capture these to bypass sandboxing
from
os
import
utime
from
os
import
utime
...
@@ -2546,15 +2546,6 @@ class EntryPoint:
...
@@ -2546,15 +2546,6 @@ class EntryPoint:
return maps
return maps
def _remove_md5_fragment(location):
if not location:
return ''
parsed = urllib.parse.urlparse(location)
if parsed[-1].startswith('
md5
=
'):
return urllib.parse.urlunparse(parsed[:-1] + ('',))
return location
def _version_from_file(lines):
def _version_from_file(lines):
"""
"""
Given an iterable of lines from a Metadata file, return
Given an iterable of lines from a Metadata file, return
...
@@ -2611,7 +2602,7 @@ class Distribution:
...
@@ -2611,7 +2602,7 @@ class Distribution:
self.parsed_version,
self.parsed_version,
self.precedence,
self.precedence,
self.key,
self.key,
_remove_md5_fragment(self.location)
,
self.location
,
self.py_version or '',
self.py_version or '',
self.platform or '',
self.platform or '',
)
)
...
...
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