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
6f40506b
Commit
6f40506b
authored
Jul 09, 2020
by
Jason R. Coombs
Committed by
GitHub
Jul 09, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2238 from pypa/remove-py2-warning
Remove py2warn
parents
ec410c35
317337da
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
17 deletions
+1
-17
changelog.d/2094.misc.rst
changelog.d/2094.misc.rst
+1
-0
pkg_resources/__init__.py
pkg_resources/__init__.py
+0
-1
pkg_resources/py2_warn.py
pkg_resources/py2_warn.py
+0
-16
No files found.
changelog.d/2094.misc.rst
0 → 100644
View file @
6f40506b
Removed pkg_resources.py2_warn module, which is no longer reachable.
pkg_resources/__init__.py
View file @
6f40506b
...
@@ -82,7 +82,6 @@ __import__('pkg_resources.extern.packaging.version')
...
@@ -82,7 +82,6 @@ __import__('pkg_resources.extern.packaging.version')
__import__
(
'pkg_resources.extern.packaging.specifiers'
)
__import__
(
'pkg_resources.extern.packaging.specifiers'
)
__import__
(
'pkg_resources.extern.packaging.requirements'
)
__import__
(
'pkg_resources.extern.packaging.requirements'
)
__import__
(
'pkg_resources.extern.packaging.markers'
)
__import__
(
'pkg_resources.extern.packaging.markers'
)
__import__
(
'pkg_resources.py2_warn'
)
__metaclass__
=
type
__metaclass__
=
type
...
...
pkg_resources/py2_warn.py
deleted
100644 → 0
View file @
ec410c35
import
sys
import
warnings
import
textwrap
msg
=
textwrap
.
dedent
(
"""
Encountered a version of Setuptools that no longer supports
this version of Python. Please head to
https://bit.ly/setuptools-py2-sunset for support.
"""
)
pre
=
"Setuptools no longer works on Python 2
\
n
"
if
sys
.
version_info
<
(
3
,):
warnings
.
warn
(
pre
+
"*"
*
60
+
msg
+
"*"
*
60
)
raise
SystemExit
(
32
)
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