diff options
| author | ?ric Araujo <merwok@netwok.org> | 2010-11-26 03:54:59 +0100 |
|---|---|---|
| committer | ?ric Araujo <merwok@netwok.org> | 2010-11-26 03:54:59 +0100 |
| commit | edc0541b47b5b5df575b3e9d4489e990fea9fac4 (patch) | |
| tree | 60df8b50a2f6dde9e3bd42061098fb9c7f5bf498 /distutils2/command/register.py | |
| parent | ed8ec9d9b1ed03712a46216865a7365674defafa (diff) | |
| download | disutils2-edc0541b47b5b5df575b3e9d4489e990fea9fac4.tar.gz | |
Remove deprecated code o/
Diffstat (limited to 'distutils2/command/register.py')
| -rw-r--r-- | distutils2/command/register.py | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/distutils2/command/register.py b/distutils2/command/register.py index 687a514..b42d73a 100644 --- a/distutils2/command/register.py +++ b/distutils2/command/register.py @@ -11,7 +11,6 @@ import getpass import urlparse import StringIO import logging -from warnings import warn from distutils2.command.cmd import Command from distutils2 import logger @@ -33,25 +32,19 @@ class register(Command): "stop the registration if the metadata is not fully compliant") ] - boolean_options = ['show-response', 'verify', 'list-classifiers', - 'strict'] + boolean_options = ['show-response', 'list-classifiers', 'strict'] def initialize_options(self): self.repository = None self.realm = None self.show_response = 0 self.list_classifiers = 0 - self.strict = 0 def finalize_options(self): if self.repository is None: self.repository = DEFAULT_REPOSITORY if self.realm is None: self.realm = DEFAULT_REALM - # setting options for the `check` subcommand - check_options = {'strict': ('register', self.strict), - 'all': ('register', 1)} - self.distribution.command_options['check'] = check_options def run(self): self.finalize_options() @@ -67,16 +60,6 @@ class register(Command): else: self.send_metadata() - def check_metadata(self): - """Deprecated API.""" - warn("distutils.command.register.check_metadata is deprecated, \ - use the check command instead", PendingDeprecationWarning) - check = self.distribution.get_command_obj('check') - check.ensure_finalized() - check.strict = self.strict - check.all = 1 - check.run() - def _set_config(self): ''' Reads the configuration file and set attributes. ''' |
