summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-12-09 03:51:59 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-12-09 03:51:59 -0500
commitebaf4f2547e71247248abc77f9899e2106482646 (patch)
tree02b0a8d51d389b9a7c0ed0342dd63ad9427e0d6e
parent1265c31f954afe7a1e47edc6dddfe7a5d4c9aa2a (diff)
downloadpython-setuptools-git-ebaf4f2547e71247248abc77f9899e2106482646.tar.gz
Deprecate get_pkg_info_revision
-rw-r--r--CHANGES.txt7
-rwxr-xr-xsetuptools/command/egg_info.py2
2 files changed, 6 insertions, 3 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index 0fcf4c61..cb9bb02d 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -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
package_index.
* Issue #419: Avoid errors in FileMetadata when the metadata directory
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py
index 57e89c07..3afd0a45 100755
--- a/setuptools/command/egg_info.py
+++ b/setuptools/command/egg_info.py
@@ -11,6 +11,7 @@ import os
import re
import sys
import io
+import warnings
try:
from setuptools_svn import svn_utils
@@ -472,6 +473,7 @@ def get_pkg_info_revision():
Get a -r### off of PKG-INFO Version in case this is an sdist of
a subversion revision.
"""
+ warnings.warn("get_pkg_info_revision is deprecated.", DeprecationWarning)
if os.path.exists('PKG-INFO'):
with io.open('PKG-INFO') as f:
for line in f: