StickyWheel a plugin to rewrite path dependencies to version dependencies at build time #5865
Unanswered
danielknell
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wrote a plugin to rewrite path depenedencies to version dependencies when you build wheels/sdists
https://github.com/artisanofcode/poetry-stickywheel-plugin
This plugin will rewrite folder dependencies in your poetry projects dependencies with version dependencies.
The version will be extracted from the dependencies pyproject.toml and applied as a semver match.
Assuming a
pyproject.toml
such as:and the dependency
pyproject.toml
the dependency will be rewritten at build time as if it had been defined as:
This is useful when you have a bunch of poetry packages in a monorepo and want to be able to build working, relocatable wheels from them.
I was surprised how straight forward it was, i was expecting to have to do some nasty business like monkey patching, but i was able to just manipulate the loaded package data before the build command runs.
Beta Was this translation helpful? Give feedback.
All reactions