Support for PEP508
See original GitHub issueWith PEP508 you can limit certain package to a specific platforms, e.g. waitress==1.0.2;platform_system=="Windows"
to install waitress
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. Neither poetry add waitress==1.0.2;platform_system=="Windows"
nor writing waitress = "=1.0.2;platform_system=Windows"
to the pyproject.toml
works.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:6 (5 by maintainers)
Top Results From Across the Web
PEP 508 – Dependency specification for Python Software ...
Concepts. A dependency specification always specifies a distribution name. It may include extras, which expand the dependencies of the named distribution to ...
Read more >Requirement Specifiers - pip documentation v22.3.1
pip supports installing from a package index using a requirement specifier. ... PEP 508 contains a full specification of the format of a...
Read more >PEP508: why either version requirement or URL but not both?
1 Answer 1 ... I believe this is because getting a python package from a URL/Github does not have a way to get...
Read more >pep508 - PyPI
pep508 · Project details · Release history Release notifications | RSS feed · Download files · Help · About PyPI · Contributing to...
Read more >Python RPM dependency generator does not support PEP 508 ...
... python_version <= '3.6' per PEP 508 (which is a fix we can upstream) does ... 1. should we support this conditional 2....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for your interest in Poetry!
As of now, neither the
add
command nor thepyproject.toml
support PEP 508 when specifying dependencies. And while thepyproject.toml
might support it in the future, theadd
command will most likely not.The reason for it is that PEP 508 is not really readable when you have markers:
is, in my opinion, less readable than:
or for the
add
command:Note that this is not yet supported but this is an idea of what one might expect in a near future for Poetry.
@jacebrowning It should be fixed in the latest
0.10.0a2
prerelease.