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
cdcc7e5f
Commit
cdcc7e5f
authored
Sep 16, 2018
by
Jason R. Coombs
Committed by
GitHub
Sep 16, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Make safe_name compliant to PEP 503 and behaviour of pip > 8.1.2"
parent
c2018ee0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
changelog.d/1324.change.rst
changelog.d/1324.change.rst
+0
-1
pkg_resources/__init__.py
pkg_resources/__init__.py
+2
-2
No files found.
changelog.d/1324.change.rst
deleted
100644 → 0
View file @
c2018ee0
Make safe_name compliant with PEP 503.
pkg_resources/__init__.py
View file @
cdcc7e5f
...
...
@@ -1312,9 +1312,9 @@ def get_default_cache():
def safe_name(name):
"""Convert an arbitrary string to a standard distribution name
Any runs of non-alphanumeric characters are replaced with a single '-'.
Any runs of non-alphanumeric
/.
characters are replaced with a single '-'.
"""
return re.sub('[^A-Za-z0-9]+', '-', name)
return re.sub('[^A-Za-z0-9
.
]+', '-', name)
def safe_version(version):
...
...
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