On Wed, 26 Sep 2018 at 15:11, Paul Ganssle <[email protected]> wrote: > > Sorry it's taken me a while to respond in this thread, but I think I'd > like to slightly reframe the question away from `setuptools` > specifically - considering that certain requirements are standardized in > the Core Metadata specification, might it make sense to add those to the > core spec for `pyproject.toml`, so that there's a single standard way > for various tools to look for the install dependencies of a project? > > > This would involve adding something like a `distribution.requires` and > possibly `distribution.requires-python`, which would map more or less > directly to `Requires-Dist` and `Requires-Python`. > > Similarly there is an argument for adding the `Provides-` metadata to > this table. > > That said, I can think of some reasons not to do this - for example in > some cases you may want to generate the dependencies in some way as part > of the build script (possibly from another format that is more > convenient), which means that even in the most ideal conditions we > couldn't say, "You should *only* be using the [distribution] table to > specify your dependencies".
That's a much broader question, and while I think it warrants exploration, it's going to be hard to get consensus - not least because there's *only* really setuptools and flit in the "build tool" area at the moment, so it's hard to be sure we're covering all bases. One other thing I'd like to standardise, because pip uses it internally, is specifying setuptools' `--python-tag` option. At the moment, pip's PEP 517 implementation can't support that, because there's no tool-agnostic way to specify it. I'm ignoring the problem right now, but I assume that the use case for pip setting `--python-tag` is real, and will need addressing properly under PEP 517. But without a PEP revision/extension, or some highly tool-specific special casing, I don't know how. Maybe we need some lightweight way of "trying out" new common parameters, so we can do a proof of concept implementation *before* committing to a final spec revision? Paul -- 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/EVRCUSO23CRXLFAAINGUPUOFQ6W7L7JR/
