-
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
Support for PEP508 #21
Comments
Thanks for your interest in Poetry! As of now, neither the The reason for it is that PEP 508 is not really readable when you have markers:
is, in my opinion, less readable than: waitress = { version = "1.0.2", system = "Windows" } # pyproject.tml or for the poetry add waitress=1.0.2 --system Windows Note that this is not yet supported but this is an idea of what one might expect in a near future for Poetry. |
Hey @sdispater, i wonder why you closed this issue. I checked the recent release and could not find anything related to this issue except for
|
I would use this for And I agree that |
The my-dependency = { version: "*", "platform": "darwin"} Note, however, that due to a bug it will be lost if/when packaging/publishing your project. This will likely be fixed in the |
With pync = { version = '*', platform = 'darwin' } causes this error with [InvalidProjectFile]
[dev-dependencies.pync] {'version': '*', 'platform': 'darwin'} is not valid under any of the given schemas |
@jacebrowning It should be fixed in the latest |
Using environment markers in the version is not allowed (python-poetry/poetry#21).
…ements Add support for markers inverse
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. |
With PEP508 you can limit certain package to a specific platforms, e.g.
waitress==1.0.2;platform_system=="Windows"
to installwaitress
only on Windows.It seem like
poetry
doesn't support this feature at all or at least i wasn't able to specify the constraint from above. Neitherpoetry add waitress==1.0.2;platform_system=="Windows"
nor writingwaitress = "=1.0.2;platform_system=Windows"
to thepyproject.toml
works.The text was updated successfully, but these errors were encountered: