Lines Matching refs:cmd
88 cmd = sdist(dist)
89 cmd.dist_dir = 'dist'
90 return dist, cmd
112 dist, cmd = self.get_cmd()
116 cmd.formats = ['zip']
118 cmd.ensure_finalized()
119 cmd.run()
138 dist, cmd = self.get_cmd()
141 cmd.formats = ['gztar', 'tar']
142 cmd.ensure_finalized()
143 cmd.run()
155 cmd.formats = ['tar', 'gztar']
157 cmd.ensure_finalized()
158 cmd.run()
172 dist, cmd = self.get_cmd({'name': u'fake', 'version': u'1.0'})
175 cmd.formats = ['gztar']
176 cmd.ensure_finalized()
177 cmd.run()
193 dist, cmd = self.get_cmd()
231 cmd.formats = ['zip']
232 cmd.use_defaults = True
234 cmd.ensure_finalized()
235 cmd.run()
262 dist, cmd = self.get_cmd(metadata={})
266 cmd.ensure_finalized()
267 cmd.run()
274 dist, cmd = self.get_cmd()
275 cmd.ensure_finalized()
276 cmd.metadata_check = 0
277 cmd.run()
284 dist, cmd = self.get_cmd()
287 cmd.check_metadata()
301 dist, cmd = self.get_cmd()
302 cmd.finalize_options()
305 self.assertEqual(cmd.manifest, 'MANIFEST')
306 self.assertEqual(cmd.template, 'MANIFEST.in')
307 self.assertEqual(cmd.dist_dir, 'dist')
311 cmd.formats = 1
312 self.assertRaises(DistutilsOptionError, cmd.finalize_options)
313 cmd.formats = ['zip']
314 cmd.finalize_options()
317 cmd.formats = 'supazipa'
318 self.assertRaises(DistutilsOptionError, cmd.finalize_options)
328 dist, cmd = self.get_cmd()
331 cmd.formats = ['gztar']
332 cmd.owner = pwd.getpwuid(0)[0]
333 cmd.group = grp.getgrgid(0)[0]
334 cmd.ensure_finalized()
335 cmd.run()
348 dist, cmd = self.get_cmd()
351 cmd.formats = ['gztar']
352 cmd.ensure_finalized()
353 cmd.run()
372 dist, cmd = self.get_cmd()
375 cmd.ensure_finalized()
376 cmd.filelist = FileList()
377 cmd.read_template()
397 dist, cmd = self.get_cmd()
402 cmd.formats = ['gztar']
403 cmd.ensure_finalized()
404 cmd.run()
406 f = open(cmd.manifest)
423 cmd.run()
425 f = open(cmd.manifest)
439 dist, cmd = self.get_cmd()
440 cmd.ensure_finalized()
441 cmd.run()
443 f = open(cmd.manifest)
461 dist, cmd = self.get_cmd()
462 cmd.ensure_finalized()
463 self.write_file((self.tmp_dir, cmd.manifest), contents)
467 cmd.run()
468 self.assertEqual(cmd.filelist.files, ['good.py'])
473 dist, cmd = self.get_cmd()
474 cmd.formats = ['gztar']
475 cmd.ensure_finalized()
476 self.write_file((self.tmp_dir, cmd.manifest), 'README.manual')
479 cmd.run()
480 self.assertEqual(cmd.filelist.files, ['README.manual'])
482 f = open(cmd.manifest)