Latest distutils

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-08-27 00:20:37 +00:00
parent 21870a5d8d
commit e55c4dd1b1
13 changed files with 302 additions and 186 deletions

View File

@@ -15,15 +15,13 @@ from distutils.errors import *
class register(Command):
description = "register the distribution with the repository"
description = ("register the distribution with the Python package index")
DEFAULT_REPOSITORY = 'http://www.python.org/pypi'
user_options = [
('repository=', 'r',
"url of repository [default: %s]"%DEFAULT_REPOSITORY),
('verify', None,
'verify the package metadata for correctness'),
('list-classifiers', None,
'list the valid Trove classifiers'),
('show-response', None,
@@ -33,7 +31,6 @@ class register(Command):
def initialize_options(self):
self.repository = None
self.verify = 0
self.show_response = 0
self.list_classifiers = 0
@@ -43,7 +40,7 @@ class register(Command):
def run(self):
self.check_metadata()
if self.verify:
if self.dry_run:
self.verify_metadata()
elif self.list_classifiers:
self.classifiers()