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
The above pyproject.toml has two versions of torch as a dependency, one for platform==linux, and one for platform==darwin. Both are marked as optional=true, and appear in the "mle" and "all" extras groups. When I generate the wheel package, the following METADATA is produced:
Metadata-Version: 2.1
Name: platras
Version: 0.1.0
Summary:
Author: anaoum
Requires-Python: >=3.8,<3.9
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Provides-Extra: all
Provides-Extra: mle
Requires-Dist: loguru (>=0.6.0,<0.7.0)
Requires-Dist: torch @ https://download.pytorch.org/whl/cpu/torch-1.12.1-cp38-none-macosx_10_9_x86_64.whl ; sys_platform == "darwin"
Requires-Dist: torch @ https://download.pytorch.org/whl/cu113/torch-1.12.1%2Bcu113-cp38-cp38-linux_x86_64.whl ; (sys_platform == "linux") and (extra == "mle" or extra == "all")
Note that the darwin version of the torch dependency does not also condition on (extra == "mle" or extra == "all")
This can be easily reproduced using the linked pyproject.toml above and running poetry build.
This issue causes problems in downstream projects that attempt to install the package with extras, as poetry will see two incompatible versions of the same dependency and fail.
The text was updated successfully, but these errors were encountered:
Issue
The above pyproject.toml has two versions of torch as a dependency, one for platform==linux, and one for platform==darwin. Both are marked as optional=true, and appear in the "mle" and "all" extras groups. When I generate the wheel package, the following METADATA is produced:
Note that the darwin version of the torch dependency does not also condition on
(extra == "mle" or extra == "all")
This can be easily reproduced using the linked pyproject.toml above and running
poetry build
.This issue causes problems in downstream projects that attempt to install the package with extras, as poetry will see two incompatible versions of the same dependency and fail.
The text was updated successfully, but these errors were encountered: