Commit ebaf4f25 authored by Jason R. Coombs's avatar Jason R. Coombs

Deprecate get_pkg_info_revision

parent 1265c31f
...@@ -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
......
...@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment