Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request]: provide custom backend to use plugin without invoking poetry directly. #18

Open
kclaes opened this issue Nov 22, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@kclaes
Copy link

kclaes commented Nov 22, 2024

We're using tooling that invokes the build of our Python project using PEP 517: python -m build --sdist
By default, this uses poetry-core and as such, does not load plugins.

We've noticed in other projects, like https://github.com/mtkennerly/poetry-dynamic-versioning, a custom build-backend to put into pyproject.toml that wraps poetry-core and executes the functionality of the plugin.

Would it be possible to provide something similar for this plugin?

Or, if there's another way to do this, I'd love to hear about it.

Currently using this config in pyproject.toml:

[build-system]
requires = ["poetry-core", "poetry-plugin-mono-repo-deps"]
build-backend = "poetry.core.masonry.api"
@gerbenoostra
Copy link
Owner

That's actually a nice idea, but it also plugs in at a different point in Poetry's flow. One uncertainty is how two such wrappers would be able to coexist in one build setup.

I'll also take a look at the way poetry-dynamic-versioning patches the versions, perhaps it provides an interesting alternative.

@gerbenoostra gerbenoostra added the enhancement New feature or request label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants