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
f62a833c
Commit
f62a833c
authored
Aug 12, 2020
by
Jason R. Coombs
Committed by
GitHub
Aug 12, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2300 from athos-ribeiro/safe_verion-docs
Improve safe_version documentation
parents
62240650
44ca8aa5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
changelog.d/2300.doc.rst
changelog.d/2300.doc.rst
+1
-0
docs/pkg_resources.txt
docs/pkg_resources.txt
+6
-6
No files found.
changelog.d/2300.doc.rst
0 → 100644
View file @
f62a833c
Improve the ``safe_version`` function documentation
docs/pkg_resources.txt
View file @
f62a833c
...
...
@@ -1596,12 +1596,12 @@ Parsing Utilities
See ``to_filename()``.
``safe_version(version)``
This will return the normalized form of any PEP 440 version
, i
f the version
string is not PEP 440 compatible
than it is similar to ``safe_name()``
except that spaces in the input become dots, and dots are allowed to exist
in the output. As with ``safe_name()``, if you are generating a filenam
e
from this you should replace any "-" characters in the output with
underscores.
This will return the normalized form of any PEP 440 version
. I
f the version
string is not PEP 440 compatible
, this function behaves similar to
``safe_name()`` except that spaces in the input become dots, and dots are
allowed to exist in the output. As with ``safe_name()``, if you ar
e
generating a filename from this you should replace any "-" characters in
the output with
underscores.
``safe_extra(extra)``
Return a "safe" form of an extra's name, suitable for use in a requirement
...
...
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