[Distutils] d2to1 setup.cfg schema

Robert Collins robertc at robertcollins.net
Tue Mar 24 22:28:07 CET 2015


This is a break-out thread from the centi-thread that spawned about
setup-requires.

d2to1 defined some metadata keys in setup.cfg,in particular 'name' and
'requires-dist'. Confusing 'requires-dist' contains the
'install_requires' one might use with setuptools' setup() function.

Since the declarative setup-requires concept also involves putting
dependencies in setup.cfg (but setup_requires rather than
install_requires), I followed the naming convention d2to1 had started.
But - all the reviewers (and I agree) think this is confusing and
non-obvious.

Since d2to1 is strictly a build-time thing - it reflects the keys into
the metadata and thus your egg-info/requires.txt is unaltered in
output, I think its reasonable to argue that we don't need to be
compatible with it.

OTOH folk using d2to1 would not gain the benefits that declarative
setup-requires may offer in setuptools // pip.

What do folk think?

-Rob

-- 
Robert Collins <rbtcollins at hp.com>
Distinguished Technologist
HP Converged Cloud


More information about the Distutils-SIG mailing list