• Home
  • Raw
  • Download

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

21         ('list-classifiers', None,
24 'Will stop the registering if the meta-data are not fully compliant')
27 'verify', 'list-classifiers', 'strict']
74 self.password = config['password']
86 ''' 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)
100 ''' Send the metadata to the package index server.
106 First we try to read the username/password from $HOME/.pypirc,
107 which is a ConfigParser-formatted file with a section
108 [distutils] containing username and password entries (both
112 index-servers =
117 password: sekrit
124 3. set the password to a random string and email the user.
127 # see if we can short-cut and get the username/password from the
132 password = self.password
135 username = password = ''
144 3. have the server generate a new password for you (and email it to you), or
154 # get the username and password
157 while not password:
158 password = getpass.getpass('Password: ')
163 auth.add_password(self.realm, host, username, password)
164 # send the info to the server and report the result
167 self.announce('Server response (%s): %s' % (code, result),
173 # sharing the password in the distribution instance
175 self.distribution.password = password
187 self._store_pypirc(username, password)
191 data['name'] = data['password'] = data['email'] = ''
195 while data['password'] != data['confirm']:
196 while not data['password']:
197 data['password'] = getpass.getpass('Password: ')
200 if data['password'] != data['confirm']:
201 data['password'] = ''
203 print("Password and confirm don't match!")
208 log.info('Server response (%s): %s', code, result)
219 log.info('Server response (%s): %s', code, result)
222 # figure the data to send - the metadata plus some additional
223 # information used by the package server
250 ''' Post a query to the server, and return a string response.
257 boundary = '--------------GHSKFJDLGDS7543FJKLFHRE75642756743254'
258 sep_boundary = '\n--' + boundary
259 end_boundary = sep_boundary + '--'
268 body.write('\nContent-Disposition: form-data; name="%s"'%key)
271 if value and value[-1] == '\r':
275 body = body.getvalue().encode("utf-8")
279 'Content-type': 'multipart/form-data; boundary=%s; charset=utf-8'%boundary,
280 'Content-length': str(len(body))
302 msg = '\n'.join(('-' * 75, data, '-' * 75))