-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Multiple Platform syntax not working #3561
Comments
I'm not quite sure, it doesn't work on 1.1.3 either (whereas you reported the issue is just in 1.1.4). I ran it in debug mode and got the following output:
Before that poetry also needs ages, seems almost stuck. The documentation in the code seems quite weird:
Obviously if I specify different sources like here url and pipy, I don't want anythin to be merged to an or. |
Im using the latest poetry (1.2.0a1) when using version & markers it's working ok
on mac poetry install 0.4.1, and generate lock file for both versions But when using path & markers, it just takes the first entry in the package array
regardless my OS poetry install & lock only 0.5 |
same issue when using URL & markers:
|
Same issue here... |
seems to work fine on master |
Unable to reproduce on 1.2.x -- please open a issue with a detailed reproduction if you think you are running into this. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I am on the latest Poetry version.
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).OS version and name: Linux, Windows
Poetry version: 1.1.0 - 1.4.0
Issue
Specifying multiple entries for a dependency doesn't work. This basically continues #2138, which has been marked as resolved.
I tried several combinations and none worked. Among the things I tried were the following things:
torch = [
{url = "https://download.pytorch.org/whl/cu102/torch-1.6.0-cp38-cp38-win_amd64.whl", python = "~3.8", markers = "sys_platform == 'win32'" },
{version = "1.6.0", markers = "sys_platform != 'win32'" }
]
torch = [
{url = "https://download.pytorch.org/whl/cu102/torch-1.6.0-cp38-cp38-win_amd64.whl", python = "~3.8", platform = "win32" },
{version = "1.6.0", platform = "linux || darwin" }
]
I tried both and similar variations of the two above with poetry 1.1.0, 1.1.1, 1.1.2, 1.1.3 and 1.1.4
In all cases, the first entry was always used no matter what platform I was on. So on Linux it downloaded the windows wheel. And On Windows, if you changed the order, it took the instructions for linux / mac os.
The text was updated successfully, but these errors were encountered: