• Home
  • Raw
  • Download

Lines Matching +full:server +full:- +full:password

22         ('list-classifiers', None,
25 'Will stop the registering if the meta-data are not fully compliant')
28 'verify', 'list-classifiers', 'strict']
75 self.password = config['password']
87 ''' Fetch the list of classifiers from the server.
93 ''' Send the metadata to the package index server to be checked.
95 # send the info to the server and report the result
97 log.info('Server response (%s): %s' % (code, result))
101 ''' Send the metadata to the package index server.
107 First we try to read the username/password from $HOME/.pypirc,
108 which is a ConfigParser-formatted file with a section
109 [distutils] containing username and password entries (both
113 index-servers =
118 password: sekrit
125 3. set the password to a random string and email the user.
128 # see if we can short-cut and get the username/password from the
133 password = self.password
136 username = password = ''
145 3. have the server generate a new password for you (and email it to you), or
156 # get the username and password
159 while not password:
160 password = getpass.getpass('Password: ')
165 auth.add_password(self.realm, host, username, password)
166 # send the info to the server and report the result
169 self.announce('Server response (%s): %s' % (code, result),
175 # sharing the password in the distribution instance
177 self.distribution.password = password
189 self._store_pypirc(username, password)
193 data['name'] = data['password'] = data['email'] = ''
197 while data['password'] != data['confirm']:
198 while not data['password']:
199 data['password'] = getpass.getpass('Password: ')
202 if data['password'] != data['confirm']:
203 data['password'] = ''
205 print "Password and confirm don't match!"
210 log.info('Server response (%s): %s' % (code, result))
221 log.info('Server response (%s): %s' % (code, result))
224 # figure the data to send - the metadata plus some additional
225 # information used by the package server
252 ''' Post a query to the server, and return a string response.
259 boundary = '--------------GHSKFJDLGDS7543FJKLFHRE75642756743254'
260 sep_boundary = '\n--' + boundary
261 end_boundary = sep_boundary + '--'
269 chunks.append('\nContent-Disposition: form-data; name="%s"'%key)
272 if value and value[-1] == '\r':
281 body.append(chunk.encode('utf-8'))
289 'Content-type': 'multipart/form-data; boundary=%s; charset=utf-8'%boundary,
290 'Content-length': str(len(body))
312 dashes = '-' * 75