bzr-lp-branches
Marius Gedminas
marius at pov.lt
Sun Dec 13 09:41:56 GMT 2009
On Wed, Dec 09, 2009 at 11:51:37PM +0000, James Westby wrote:
> On Wed Dec 09 22:10:11 +0000 2009 John Arbash Meinel wrote:
> > So is that the equivalent of "recommends" versus "requires" ? Is there
> > any way to codify that in setuptools?
>
> It's more like "test_requires" I think, which might actually exist.
Some packages use setuptools extras to declare test requirements:
setup(
name='mypkg',
...
install_requires=['foo', 'bar'],
extras_require={'test': ['baz']},
...
)
To get those installed, you need to easy_install mypkg[test] or some
equivalent (e.g. eggs = mypkg[test] in buildout.cfg).
There were huge threads on zope-dev@ whether test extras were a good
idea or a bad idea; the outcome wasn't clear to me.
The recently announced z3c.dependencychecker promotes the use of test
extras (by scanning your tests/*.py files and suggesting that packages
imported only there be declared in test extras, and not in
install_requires).
Marius Gedminas
--
CBQ is merely the oldest kid on the block - yet it is by far the least useful
qdisc and also the most complex one. I advise *against* using it. This may come
as something of a shock to many who fell for the 'sendmail effect', which
learns us that any complex technology which doesn't come with documentation
must be the best available.
-- Linux Advanced Routing HOWTO
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20091213/88ee6d48/attachment.pgp
More information about the bazaar
mailing list