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
ebaf4f25
Commit
ebaf4f25
authored
Dec 09, 2015
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deprecate get_pkg_info_revision
parent
1265c31f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
CHANGES.txt
CHANGES.txt
+4
-3
setuptools/command/egg_info.py
setuptools/command/egg_info.py
+2
-0
No files found.
CHANGES.txt
View file @
ebaf4f25
...
@@ -3,10 +3,11 @@ CHANGES
...
@@ -3,10 +3,11 @@ CHANGES
=======
=======
----
--
----
18.
7.2
18.
8
----
--
----
* Deprecated ``egg_info.get_pkg_info_revision``.
* Issue #471: Don't rely on repr for an HTML attribute value in
* Issue #471: Don't rely on repr for an HTML attribute value in
package_index.
package_index.
* Issue #419: Avoid errors in FileMetadata when the metadata directory
* Issue #419: Avoid errors in FileMetadata when the metadata directory
...
...
setuptools/command/egg_info.py
View file @
ebaf4f25
...
@@ -11,6 +11,7 @@ import os
...
@@ -11,6 +11,7 @@ import os
import
re
import
re
import
sys
import
sys
import
io
import
io
import
warnings
try
:
try
:
from
setuptools_svn
import
svn_utils
from
setuptools_svn
import
svn_utils
...
@@ -472,6 +473,7 @@ def get_pkg_info_revision():
...
@@ -472,6 +473,7 @@ def get_pkg_info_revision():
Get a -r### off of PKG-INFO Version in case this is an sdist of
Get a -r### off of PKG-INFO Version in case this is an sdist of
a subversion revision.
a subversion revision.
"""
"""
warnings
.
warn
(
"get_pkg_info_revision is deprecated."
,
DeprecationWarning
)
if
os
.
path
.
exists
(
'PKG-INFO'
):
if
os
.
path
.
exists
(
'PKG-INFO'
):
with
io
.
open
(
'PKG-INFO'
)
as
f
:
with
io
.
open
(
'PKG-INFO'
)
as
f
:
for
line
in
f
:
for
line
in
f
:
...
...
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