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
6951ddf2
Commit
6951ddf2
authored
Dec 04, 2016
by
Jason R. Coombs
Committed by
GitHub
Dec 04, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #854 from stepshal/packaging
Upgrade packaging to 16.8
parents
ebe23daa
03b00c2b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
7 deletions
+21
-7
pkg_resources/_vendor/packaging/__about__.py
pkg_resources/_vendor/packaging/__about__.py
+1
-1
pkg_resources/_vendor/packaging/markers.py
pkg_resources/_vendor/packaging/markers.py
+19
-5
pkg_resources/_vendor/vendored.txt
pkg_resources/_vendor/vendored.txt
+1
-1
No files found.
pkg_resources/_vendor/packaging/__about__.py
View file @
6951ddf2
...
...
@@ -12,7 +12,7 @@ __title__ = "packaging"
__summary__
=
"Core utilities for Python packages"
__uri__
=
"https://github.com/pypa/packaging"
__version__
=
"16.
7
"
__version__
=
"16.
8
"
__author__
=
"Donald Stufft and individual contributors"
__email__
=
"donald@stufft.io"
...
...
pkg_resources/_vendor/packaging/markers.py
View file @
6951ddf2
...
...
@@ -52,13 +52,26 @@ class Node(object):
def
__repr__
(
self
):
return
"<{0}({1!r})>"
.
format
(
self
.
__class__
.
__name__
,
str
(
self
))
def
serialize
(
self
):
raise
NotImplementedError
class
Variable
(
Node
):
pass
def
serialize
(
self
):
return
str
(
self
)
class
Value
(
Node
):
pass
def
serialize
(
self
):
return
'"{0}"'
.
format
(
self
)
class
Op
(
Node
):
def
serialize
(
self
):
return
str
(
self
)
VARIABLE
=
(
...
...
@@ -103,6 +116,7 @@ VERSION_CMP = (
)
MARKER_OP
=
VERSION_CMP
|
L
(
"not in"
)
|
L
(
"in"
)
MARKER_OP
.
setParseAction
(
lambda
s
,
l
,
t
:
Op
(
t
[
0
]))
MARKER_VALUE
=
QuotedString
(
"'"
)
|
QuotedString
(
'"'
)
MARKER_VALUE
.
setParseAction
(
lambda
s
,
l
,
t
:
Value
(
t
[
0
]))
...
...
@@ -149,7 +163,7 @@ def _format_marker(marker, first=True):
else
:
return
"("
+
" "
.
join
(
inner
)
+
")"
elif
isinstance
(
marker
,
tuple
):
return
'{0} {1} "{2}"'
.
format
(
*
marker
)
return
" "
.
join
([
m
.
serialize
()
for
m
in
marker
]
)
else
:
return
marker
...
...
@@ -168,13 +182,13 @@ _operators = {
def
_eval_op
(
lhs
,
op
,
rhs
):
try
:
spec
=
Specifier
(
""
.
join
([
op
,
rhs
]))
spec
=
Specifier
(
""
.
join
([
op
.
serialize
()
,
rhs
]))
except
InvalidSpecifier
:
pass
else
:
return
spec
.
contains
(
lhs
)
oper
=
_operators
.
get
(
op
)
oper
=
_operators
.
get
(
op
.
serialize
()
)
if
oper
is
None
:
raise
UndefinedComparison
(
"Undefined {0!r} on {1!r} and {2!r}."
.
format
(
op
,
lhs
,
rhs
)
...
...
pkg_resources/_vendor/vendored.txt
View file @
6951ddf2
packaging==16.
7
packaging==16.
8
pyparsing==2.1.10
six==1.10.0
appdirs==1.4.0
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