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
387b40ea
Commit
387b40ea
authored
Feb 24, 2017
by
Jason R. Coombs
Committed by
GitHub
Feb 24, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #983 from scop/py36escseq
Python 3.6 invalid escape sequence deprecation fixes
parents
4c560eff
e753cb42
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
18 additions
and
12 deletions
+18
-12
CHANGES.rst
CHANGES.rst
+6
-0
pkg_resources/tests/test_resources.py
pkg_resources/tests/test_resources.py
+1
-1
setuptools/command/easy_install.py
setuptools/command/easy_install.py
+1
-1
setuptools/msvc.py
setuptools/msvc.py
+2
-2
setuptools/package_index.py
setuptools/package_index.py
+4
-4
setuptools/sandbox.py
setuptools/sandbox.py
+2
-2
setuptools/tests/test_bdist_egg.py
setuptools/tests/test_bdist_egg.py
+1
-1
setuptools/tests/test_easy_install.py
setuptools/tests/test_easy_install.py
+1
-1
No files found.
CHANGES.rst
View file @
387b40ea
v34
.3.1
-------
*
#
983
:
Fixes
to
invalid
escape
sequence
deprecations
on
Python
3.6
.
v34
.3.0
-------
...
...
pkg_resources/tests/test_resources.py
View file @
387b40ea
...
...
@@ -593,7 +593,7 @@ class TestParsing:
[
Requirement
(
'Twis-Ted>=1.2-1'
)]
)
assert
(
list
(
parse_requirements
(
'Twisted >=1.2,
\
# mo
r
e
\
n
<2.0'
))
list
(
parse_requirements
(
'Twisted >=1.2,
\
\
# more
\
n
<2.0'
))
==
[
Requirement
(
'Twisted>=1.2,<2.0'
)]
)
...
...
setuptools/command/easy_install.py
View file @
387b40ea
...
...
@@ -2013,7 +2013,7 @@ class ScriptWriter(object):
gui apps.
"""
template
=
textwrap
.
dedent
(
"""
template
=
textwrap
.
dedent
(
r
"""
# EASY-INSTALL-ENTRY-SCRIPT: %(spec)r,%(group)r,%(name)r
__requires__ = %(spec)r
import re
...
...
setuptools/msvc.py
View file @
387b40ea
...
...
@@ -272,7 +272,7 @@ class PlatformInfo:
)
def target_dir(self, hidex86=False, x64=False):
"""
r
"""
Target platform specific subfolder.
Parameters
...
...
@@ -294,7 +294,7 @@ class PlatformInfo:
)
def cross_dir(self, forcex86=False):
"""
r
"""
Cross platform specific subfolder.
Parameters
...
...
setuptools/package_index.py
View file @
387b40ea
...
...
@@ -34,8 +34,8 @@ EGG_FRAGMENT = re.compile(r'^egg=([-A-Za-z0-9_.+!]+)$')
HREF
=
re
.
compile
(
"""href
\
\
s*=
\
\
s*['"]?([^'"> ]+)"""
,
re
.
I
)
# this is here to fix emacs' cruddy broken syntax highlighting
PYPI_MD5
=
re
.
compile
(
'<a href="([^"#]+)">([^<]+)</a>
\
n
\
s+
\
\
(<
a
(?:title="MD5 hash"
\
n
\
s+)
'
'
href
=
"[^?]+
\
?:
a
ction=show_md5&digest=([0-9a-f]{32})"
>
md5
</
a
>
\\
)
'
'<a href="([^"#]+)">([^<]+)</a>
\
n
\
\
s+
\
\
(<a (?:title="MD5 hash"
\
n
\
\
s+)'
'href="[^?]+
\
\
?:action=show_md5&digest=([0-9a-f]{32})">md5</a>
\
\
)'
)
URL_SCHEME
=
re
.
compile
(
'([-+.a-z0-9]{2,}):'
,
re
.
I
).
match
EXTENSIONS
=
".tar.gz .tar.bz2 .tar .zip .tgz"
.
split
()
...
...
@@ -161,7 +161,7 @@ def interpret_distro_name(
# versions in distribution archive names (sdist and bdist).
parts
=
basename
.
split
(
'-'
)
if
not
py_version
and
any
(
re
.
match
(
'py
\
d
\
.
\
d$
'
, p) for p in parts[2:]):
if
not
py_version
and
any
(
re
.
match
(
r
'py\
d
\.\
d$
', p) for p in parts[2:]):
# it is a bdist_dumb, not an sdist -- bail out
return
...
...
@@ -205,7 +205,7 @@ def unique_values(func):
return wrapper
REL = re.compile("""<([^>]*
\
s
r
el
\
s*=
\
s*['"]?([^'"
>
]
+
)[
^>
]
*
)
>
""", re.I)
REL = re.compile(
r
"""<([^>]*
\
s
r
el
\
s*=
\
s*['"]?([^'"
>
]
+
)[
^>
]
*
)
>
""", re.I)
# this line is here to fix emacs' cruddy broken syntax highlighting
...
...
setuptools/sandbox.py
View file @
387b40ea
...
...
@@ -215,7 +215,7 @@ def _needs_hiding(mod_name):
>>> _needs_hiding('Cython')
True
"""
pattern
=
re
.
compile
(
'(setuptools|pkg_resources|distutils|Cython)(
\
.|$)
'
)
pattern
=
re
.
compile
(
r
'(setuptools|pkg_resources|distutils|Cython)(\
.|$)
')
return bool(pattern.match(mod_name))
...
...
@@ -391,7 +391,7 @@ class DirectorySandbox(AbstractSandbox):
_exception_patterns = [
# Allow lib2to3 to attempt to save a pickled grammar object (#121)
'.*lib2to3.*
\
.pickle$
'
,
r
'.*lib2to3.*
\
.pickle$
'
,
]
"exempt writing to paths that match the pattern"
...
...
setuptools/tests/test_bdist_egg.py
View file @
387b40ea
...
...
@@ -41,4 +41,4 @@ class Test:
# let's see if we got our egg link at the right place
[
content
]
=
os
.
listdir
(
'dist'
)
assert
re
.
match
(
'foo-0.0.0-py[23].
\
d.egg$
'
, content)
assert
re
.
match
(
r
'foo-0.0.0-py[23].\
d.egg$
', content)
setuptools/tests/test_easy_install.py
View file @
387b40ea
...
...
@@ -65,7 +65,7 @@ class TestEasyInstallTest:
def
test_get_script_args
(
self
):
header
=
ei
.
CommandSpec
.
best
().
from_environment
().
as_header
()
expected
=
header
+
DALS
(
"""
expected
=
header
+
DALS
(
r
"""
# EASY-INSTALL-ENTRY-SCRIPT: 'spec','console_scripts','name'
__requires__ = 'spec'
import re
...
...
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