aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/egg_info.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2006-07-10 20:47:59 +0000
committerPJ Eby <distutils-sig@python.org>2006-07-10 20:47:59 +0000
commitec2e4eaa16bd6a1ca4e9f142a82b5b29701dd6e3 (patch)
treea95796a3756f64cd3682890ac979638f0f77f8fd /setuptools/command/egg_info.py
parent8689d19a64f4b3e2260444da18d676ef5af41539 (diff)
downloadexternal_python_setuptools-ec2e4eaa16bd6a1ca4e9f142a82b5b29701dd6e3.tar.gz
external_python_setuptools-ec2e4eaa16bd6a1ca4e9f142a82b5b29701dd6e3.tar.bz2
external_python_setuptools-ec2e4eaa16bd6a1ca4e9f142a82b5b29701dd6e3.zip
Added ``--no-date`` and ``--no-svn-revision`` options to ``egg_info``
command, to allow suppressing tags configured in ``setup.cfg``. (backports from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4050539
Diffstat (limited to 'setuptools/command/egg_info.py')
-rwxr-xr-xsetuptools/command/egg_info.py45
1 files changed, 43 insertions, 2 deletions
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py
index d9fcd3f0..8c2eb763 100755
--- a/setuptools/command/egg_info.py
+++ b/setuptools/command/egg_info.py
@@ -25,9 +25,19 @@ class egg_info(Command):
"Add subversion revision ID to version number"),
('tag-date', 'd', "Add date stamp (e.g. 20050528) to version number"),
('tag-build=', 'b', "Specify explicit tag to add to version number"),
+ ('no-svn-revision', 'R',
+ "Don't add subversion revision ID [default]"),
+ ('no-date', 'D', "Don't include date stamp [default]"),
+ ('tag-build=', 'b', "Specify explicit tag to add to version number"),
]
- boolean_options = ['tag-date','tag-svn-revision']
+ boolean_options = ['tag-date', 'tag-svn-revision']
+ negative_opt = {'no-svn-revision': 'tag-svn-revision',
+ 'no-date': 'tag-date'}
+
+
+
+
def initialize_options (self):
self.egg_name = None
@@ -39,6 +49,37 @@ class egg_info(Command):
self.tag_date = 0
self.broken_egg_info = False
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
def finalize_options (self):
self.egg_name = safe_name(self.distribution.get_name())
self.egg_version = self.tagged_version()
@@ -366,4 +407,4 @@ def get_pkg_info_revision():
-
+#