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
20eb01f0
Commit
20eb01f0
authored
Dec 17, 2014
by
Donald Stufft
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a PEP440Warning to make it easier to silence these warnings
parent
20ac4827
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
pkg_resources.py
pkg_resources.py
+11
-1
No files found.
pkg_resources.py
View file @
20eb01f0
...
...
@@ -80,6 +80,13 @@ import setuptools._vendor.packaging.specifiers
packaging
=
setuptools
.
_vendor
.
packaging
class
PEP440Warning
(
RuntimeWarning
):
"""
Used when there is an issue with a version or specifier not complying with
PEP 440.
"""
class
_SetuptoolsVersionMixin
(
object
):
def
__hash__
(
self
):
...
...
@@ -272,6 +279,9 @@ __all__ = [
'ResolutionError', 'VersionConflict', 'DistributionNotFound',
'UnknownExtra', 'ExtractionError',
# Warnings
'PEP440Warning',
# Parsing functions and string utilities
'parse_requirements', 'parse_version', 'safe_name', 'safe_version',
'get_platform', 'compatible_platforms', 'yield_lines', 'split_sections',
...
...
@@ -2430,7 +2440,7 @@ class Distribution(object):
"versions."
%
(
self
.
project_name
,
self
.
version
,
),
Runtime
Warning
,
PEP440
Warning
,
)
return
self
.
_parsed_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