Lines Matching full:dist
3 """Tests for distutils.dist."""
11 from distutils.dist import Distribution, fix_help_options
13 import distutils.dist
77 distutils.dist.DEBUG = True
84 distutils.dist.DEBUG = False
138 dist = klass(attrs={'author': u'Mister Café',
147 dist.metadata.write_pkg_file(open(my_file, 'w'))
150 dist = klass(attrs={'author': 'Mister Cafe',
157 dist.metadata.write_pkg_file(open(my_file2, 'w'))
171 dist = Distribution(attrs={'author': 'xxx', 'name': 'xxx',
176 self.assertNotIn('options', dir(dist))
182 dist = Distribution(attrs=attrs)
183 dist.finalize_options()
186 self.assertEqual(dist.metadata.platforms, ['one', 'two'])
187 self.assertEqual(dist.metadata.keywords, ['one', 'two'])
190 dist = Distribution()
191 self.assertEqual(dist.command_packages, None)
192 cmds = dist.get_command_packages()
194 self.assertEqual(dist.command_packages,
197 dist.command_packages = 'one,two'
198 cmds = dist.get_command_packages()
203 dist = Distribution()
206 self.assertRaises(ValueError, dist.announce, args, kwargs)
225 d = distutils.dist.Distribution()
228 d = distutils.dist.Distribution(attrs={'script_args':
253 dist = Distribution(attrs)
254 meta = self.format_metadata(dist)
260 dist = Distribution(attrs)
261 meta = self.format_metadata(dist)
274 dist = Distribution(attrs)
275 meta = self.format_metadata(dist)
282 dist = Distribution(attrs)
283 meta = self.format_metadata(dist)
293 dist = Distribution(attrs)
294 self.assertEqual(dist.metadata.get_provides(),
296 self.assertEqual(dist.get_provides(),
298 meta = self.format_metadata(dist)
313 dist = Distribution(attrs)
314 self.assertEqual(dist.metadata.get_requires(),
316 self.assertEqual(dist.get_requires(),
318 meta = self.format_metadata(dist)
335 dist = Distribution(attrs)
336 self.assertEqual(dist.metadata.get_obsoletes(),
338 self.assertEqual(dist.get_obsoletes(),
340 meta = self.format_metadata(dist)
353 def format_metadata(self, dist): argument
355 dist.metadata.write_pkg_file(sio)
375 dist = Distribution()
380 files = dist.find_config_files()
387 files = dist.find_config_files()
402 dist = Distribution()
404 dist.help = 1
405 dist.script_name = 'setup.py'
407 dist.parse_command_line()
422 dist = Distribution(attrs)
423 metadata = dist.metadata