예제 #1
0
파일: upload.py 프로젝트: 10sr/cpython
 def initialize_options(self):
     PyPIRCCommand.initialize_options(self)
     self.username = ''
     self.password = ''
     self.show_response = 0
     self.sign = False
     self.identity = None
예제 #2
0
 def finalize_options(self):
     PyPIRCCommand.finalize_options(self)
     if self.identity and not self.sign:
         raise DistutilsOptionError('Must use --sign for --identity to have meaning')
     config = self._read_pypirc()
     if config != {}:
         self.username = config['username']
         self.password = config['password']
         self.repository = config['repository']
         self.realm = config['realm']
     if not self.password and self.distribution.password:
         self.password = self.distribution.password
예제 #3
0
파일: pypi.py 프로젝트: seveas/golem
 def login():
     cmd = PyPIRCCommand(Distribution())
     cf = cmd._get_rc_file()
     if os.path.exists(cf):
         print >>sys.stderr, "%s already exists. Remove to relogin" % cf
         sys.exit(1)
     user = raw_input("PyPI user: "******"PyPI password: "******"Login failed"
         sys.exit(1)
     cmd._store_pypirc(user, password)
예제 #4
0
    def finalize_options(self):
        PyPIRCCommand.finalize_options(self)
        if self.identity and not self.sign:
            raise DistutilsOptionError("Must use --sign for --identity to have meaning")
        config = self._read_pypirc()
        if config != {}:
            self.username = config["username"]
            self.password = config["password"]
            self.repository = config["repository"]
            self.realm = config["realm"]

        # getting the password from the distribution
        # if previously set by the register command
        if not self.password and self.distribution.password:
            self.password = self.distribution.password
예제 #5
0
    def finalize_options(self):
        PyPIRCCommand.finalize_options(self)
        if self.identity and not self.sign:
            raise DistutilsOptionError(
                "Must use --sign for --identity to have meaning")
        config = self._read_pypirc()
        if config != {}:
            self.username = config['username']
            self.password = config['password']
            self.repository = config['repository']
            self.realm = config['realm']

        # getting the password from the distribution
        # if previously set by the register command
        if not self.password and self.distribution.password:
            self.password = self.distribution.password
예제 #6
0
 def initialize_options(self):
     PyPIRCCommand.initialize_options(self)
     self.list_classifiers = 0
     self.strict = 0
 def __init__(self, dist):
     PyPIRCCommand.__init__(self, dist)
예제 #8
0
 def finalize_options(self):
     PyPIRCCommand.finalize_options(self)
     config = self._read_pypirc()
     if config != {}:
         self.username = config['username']
         self.password = config['password']
예제 #9
0
 def initialize_options(self):
     PyPIRCCommand.initialize_options(self)
     self.username = ''
     self.password = ''
예제 #10
0
 def finalize_options(self):
     PyPIRCCommand.finalize_options(self)
     config = self._read_pypirc()
     if config != {}:
         self.username = config['username']
         self.password = config['password']
예제 #11
0
 def initialize_options(self):
     PyPIRCCommand.initialize_options(self)
     self.username = ''
     self.password = ''
예제 #12
0
 def __init__(self, dist):
     PyPIRCCommand.__init__(self, dist)
예제 #13
0
 def finalize_options(self):
     PyPIRCCommand.finalize_options(self)
     check_options = {'strict': ('register', self.strict),
      'restructuredtext': ('register', 1)}
     self.distribution.command_options['check'] = check_options
예제 #14
0
 def initialize_options(self):
     PyPIRCCommand.initialize_options(self)
     self.list_classifiers = 0
     self.strict = 0
예제 #15
0
 def finalize_options(self):
     PyPIRCCommand.finalize_options(self)
     # setting options for the `check` subcommand
     check_options = {"strict": ("register", self.strict), "restructuredtext": ("register", 1)}
     self.distribution.command_options["check"] = check_options