On Tue, 25 Sep 2018 at 02:16, Daniel Holth <[email protected]> wrote:
>
> You could probably implement this outside of setuptools as an extension. 
> Clients would add a load-toml line to setup.py. Do build requirements work 
> yet?
>
> One obstacle might be reconciling the all-strings nature of .cfg with typed 
> toml.

That challenge would also be the major benefit though as the
tool.setuptools fields in pyproject.toml could potentially be modeled
more directly off the Python level setup() API arguments rather than
needing to work around the limitations of the ini format.

That would also fit well with doing the initial version of this
outside setuptools proper:

* add a build-requires on "setuptools-pyproject-cfg" (or whatever the
experimental helper is called)
* make the configuration table "[tool.setuptools_pyproject_cfg]"
* call "setup(**setuptools_pyproject_cfg.read_config())" instead of
hardcoding the args in setup.py

And then at some point in the future (once the input format was
stable), the boilerplate could migrate inside setuptools itself, and
the build-requires and configuration table name would change
accordingly.

Cheers,
Nick.

-- 
Nick Coghlan   |   [email protected]   |   Brisbane, Australia
--
Distutils-SIG mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mm3/mailman3/lists/distutils-sig.python.org/
Message archived at 
https://mail.python.org/mm3/archives/list/[email protected]/message/TYLILHHGWFSLAOYEUMS5CMVCZWHIDPWA/

Reply via email to