You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Plugins which modify package metadata cannot be used if the package is installed from source using pip. For example, I am using poetry-dynamic-versioning to set my package's version, and I also have a script that installs my package using pip install 'my-package @ git+ssh://[email protected]/my/repo.git. I suspect that this is not uncommon amongst smaller and/or less mature organizations. While this wouldn't be a problem if my-package were uploaded to a PyPI repository using Poetry, I unfortunately don't have the time to remedy that situation.
I haven't confirmed this myself, but I don't think Hatch suffers from this problem. With Hatch, to use a similar plugin that modifies package metadata at build-time when running pip install, you'd just need to add that plugin to build-system.requires. Doing the same thing with Poetry doesn't seem to work.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Plugins which modify package metadata cannot be used if the package is installed from source using
pip
. For example, I am using poetry-dynamic-versioning to set my package's version, and I also have a script that installs my package usingpip install 'my-package @ git+ssh://[email protected]/my/repo.git
. I suspect that this is not uncommon amongst smaller and/or less mature organizations. While this wouldn't be a problem ifmy-package
were uploaded to a PyPI repository using Poetry, I unfortunately don't have the time to remedy that situation.I haven't confirmed this myself, but I don't think Hatch suffers from this problem. With Hatch, to use a similar plugin that modifies package metadata at build-time when running
pip install
, you'd just need to add that plugin tobuild-system.requires
. Doing the same thing with Poetry doesn't seem to work.Beta Was this translation helpful? Give feedback.
All reactions