From 542a921bb6943feb1c90874ba5151c94622b52b3 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Fri, 24 Jun 2016 10:17:41 -0400 Subject: Mark tag_svn_revision as deprecated. Ref #619. --- CHANGES.rst | 6 ++++++ setuptools/command/egg_info.py | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index a6455292..055d7aa9 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -2,6 +2,12 @@ CHANGES ======= +v23.1.0 +------- + +* #619: Deprecated ``tag_svn_revision`` distribution + option. + v23.0.0 ------- diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py index 829f03f9..5183eedc 100755 --- a/setuptools/command/egg_info.py +++ b/setuptools/command/egg_info.py @@ -199,6 +199,10 @@ class egg_info(Command): if self.tag_build: version += self.tag_build if self.tag_svn_revision: + warnings.warn( + "tag_svn_revision is deprecated and will not be honored " + "in a future release" + ) version += '-r%s' % self.get_svn_revision() if self.tag_date: version += time.strftime("-%Y%m%d") -- cgit v1.2.3