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
1b9cc126
Commit
1b9cc126
authored
Aug 02, 2015
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #27 from dstufft/upgrade-packaging
Upgrade packaging to 15.3
parents
d2151714
e3886227
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
4 deletions
+26
-4
pkg_resources/_vendor/packaging/__about__.py
pkg_resources/_vendor/packaging/__about__.py
+1
-1
pkg_resources/_vendor/packaging/specifiers.py
pkg_resources/_vendor/packaging/specifiers.py
+22
-2
pkg_resources/_vendor/packaging/version.py
pkg_resources/_vendor/packaging/version.py
+2
-0
pkg_resources/_vendor/vendored.txt
pkg_resources/_vendor/vendored.txt
+1
-1
No files found.
pkg_resources/_vendor/packaging/__about__.py
View file @
1b9cc126
...
...
@@ -22,7 +22,7 @@ __title__ = "packaging"
__summary__
=
"Core utilities for Python packages"
__uri__
=
"https://github.com/pypa/packaging"
__version__
=
"15.
1
"
__version__
=
"15.
3
"
__author__
=
"Donald Stufft"
__email__
=
"donald@stufft.io"
...
...
pkg_resources/_vendor/packaging/specifiers.py
View file @
1b9cc126
...
...
@@ -151,6 +151,14 @@ class _IndividualSpecifier(BaseSpecifier):
version
=
parse
(
version
)
return
version
@
property
def
operator
(
self
):
return
self
.
_spec
[
0
]
@
property
def
version
(
self
):
return
self
.
_spec
[
1
]
@
property
def
prereleases
(
self
):
return
self
.
_prereleases
...
...
@@ -159,6 +167,9 @@ class _IndividualSpecifier(BaseSpecifier):
def
prereleases
(
self
,
value
):
self
.
_prereleases
=
value
def
__contains__
(
self
,
item
):
return
self
.
contains
(
item
)
def
contains
(
self
,
item
,
prereleases
=
None
):
# Determine if prereleases are to be allowed or not.
if
prereleases
is
None
:
...
...
@@ -176,7 +187,7 @@ class _IndividualSpecifier(BaseSpecifier):
# Actually do the comparison to determine if this item is contained
# within this Specifier or not.
return
self
.
_get_operator
(
self
.
_spec
[
0
])(
item
,
self
.
_spec
[
1
]
)
return
self
.
_get_operator
(
self
.
operator
)(
item
,
self
.
version
)
def
filter
(
self
,
iterable
,
prereleases
=
None
):
yielded
=
False
...
...
@@ -526,7 +537,7 @@ class Specifier(_IndividualSpecifier):
# operators, and if they are if they are including an explicit
# prerelease.
operator
,
version
=
self
.
_spec
if
operator
in
[
"=="
,
">="
,
"<="
,
"~="
]:
if
operator
in
[
"=="
,
">="
,
"<="
,
"~="
,
"==="
]:
# The == specifier can include a trailing .*, if it does we
# want to remove before parsing.
if
operator
==
"=="
and
version
.
endswith
(
".*"
):
...
...
@@ -666,6 +677,12 @@ class SpecifierSet(BaseSpecifier):
return
self
.
_specs
!=
other
.
_specs
def
__len__
(
self
):
return
len
(
self
.
_specs
)
def
__iter__
(
self
):
return
iter
(
self
.
_specs
)
@
property
def
prereleases
(
self
):
# If we have been given an explicit prerelease modifier, then we'll
...
...
@@ -687,6 +704,9 @@ class SpecifierSet(BaseSpecifier):
def
prereleases
(
self
,
value
):
self
.
_prereleases
=
value
def
__contains__
(
self
,
item
):
return
self
.
contains
(
item
)
def
contains
(
self
,
item
,
prereleases
=
None
):
# Ensure that our item is a Version or LegacyVersion instance.
if
not
isinstance
(
item
,
(
LegacyVersion
,
Version
)):
...
...
pkg_resources/_vendor/packaging/version.py
View file @
1b9cc126
...
...
@@ -324,6 +324,8 @@ def _parse_letter_version(letter, number):
letter = "b"
elif letter in ["
c
", "
pre
", "
preview
"]:
letter = "
rc
"
elif letter in ["
rev
", "r"]:
letter = "
post
"
return letter, int(number)
if not letter and number:
...
...
pkg_resources/_vendor/vendored.txt
View file @
1b9cc126
packaging==15.
1
packaging==15.
3
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