proud-dentist-22844
08/10/2021, 7:25 PMbusy-vase-39202
08/10/2021, 7:50 PMwitty-crayon-22786
08/10/2021, 10:25 PMPants can extract poetry-style dependencies from multiple pyproject.toml files already.one thing to know about this (which the blog post alludes to: https://blog.pantsbuild.org/poetry-support-for-pants-2-6/): it’s challenging to gain the full advantage of Pants with a bunch of different `pyproject.toml`s. dependency inference is likely to be ambiguous if they have overlapping dependencies. certainly our ambition is to be better than poetry when you need to manage lots of projects in one repo, and so in some cases “lots of `pyproject.toml`s” will be one step along a migration.
witty-crayon-22786
08/10/2021, 10:27 PMwitty-crayon-22786
08/10/2021, 10:28 PMpoetry
a bunch of times rather than actually managing concurrency in process.proud-dentist-22844
08/10/2021, 10:29 PMproud-dentist-22844
08/10/2021, 10:29 PMproud-dentist-22844
08/10/2021, 10:42 PMpyproject.toml
alongside the root poetry.lock
file.
• Sub-projects (or workspaces to use the term from this plugin) would still have a pyproject.toml
but only for non-dependency metadata (see https://python-poetry.org/docs/pyproject/), including:
◦ simple metadata: name, description, license, authors, maintainers, readme, homepage, repository, documentation, urls.
◦ distribution metadata:
▪︎ keywords, classifiers,
▪︎ scripts, plugins (ie entry_points)
▪︎ packages, include/exclude, (maybe not these when used w/ pants)
◦ managing extras would get weird hereproud-dentist-22844
08/10/2021, 10:43 PMpoetry_distribution
and presto! each of those subprojects could define its distribution.witty-crayon-22786
08/10/2021, 10:51 PMpoetry_distribution
... I'm not sure how much that saves over putting the metadata directly in the BUILD file. Unless poetry can still do something useful with it when it's in pyproject.toml
...?proud-dentist-22844
08/10/2021, 10:58 PMproud-dentist-22844
08/10/2021, 10:59 PMbusy-vase-39202
08/11/2021, 5:03 PM