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
Build the package using "stock" poetry build command
poetry build
The generated wheel contains following METADATA
Metadata-Version: 2.1
Name: extras-resolve
Version: 0.1.0
Summary:
Author: Your Name
Author-email: [email protected]
Requires-Python: >=3.12,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Provides-Extra: bar
Requires-Dist: extras-resolve-bar @ file:///C:/extras_resolve/src/extras_resolve.bar ; extra == "bar"
Requires-Dist: extras-resolve-foo @ file:///C:/extras_resolve/src/extras_resolve.foo
Description-Content-Type: text/markdown
Build using build-rewrite-path-deps
poetry build-rewrite-path-deps
METADATA
Metadata-Version: 2.1
Name: extras-resolve
Version: 0.1.0
Summary:
Author: Your Name
Author-email: [email protected]
Requires-Python: >=3.12,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Provides-Extra: bar
Requires-Dist: extras-resolve-bar (==0.1.0)
Requires-Dist: extras-resolve-foo (==0.1.0)
Description-Content-Type: text/markdown
As can be seen, the dependencies are nicely converted. Hovewer, the ; extra == "bar" is omitted, effectively making extras-resolve-bar a strictly required dependency.
Expected behaviour
The ; extra == "bar" should be preserved for optional dependencies.
The text was updated successfully, but these errors were encountered:
Steps to reproduce
python 3.12
poetry 1.8.3
poetry-monorepo-dependency-plugin 1.2.0
Create new project
Step into the src directory and create two sub-projects
Add the sub-projects as editable dependencies of the main project
Second dependency is optional (belongs to extra "bar")
Add the "extras_resolve.bar" dependency to extra "bar" in pyproject.toml
Complete pyproject.toml of main project
Build the package using "stock" poetry build command
The generated wheel contains following METADATA
Build using
build-rewrite-path-deps
METADATA
As can be seen, the dependencies are nicely converted. Hovewer, the
; extra == "bar"
is omitted, effectively makingextras-resolve-bar
a strictly required dependency.Expected behaviour
The
; extra == "bar"
should be preserved for optional dependencies.The text was updated successfully, but these errors were encountered: