question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for PEP508

See original GitHub issue

With 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
sdispatercommented, Mar 19, 2018

Thanks for your interest in Poetry!

As of now, neither the add command nor the pyproject.toml support PEP 508 when specifying dependencies. And while the pyproject.toml might support it in the future, the add command will most likely not.

The reason for it is that PEP 508 is not really readable when you have markers:

waitress==1.0.2;platform_system="Windows"

is, in my opinion, less readable than:

waitress = { version = "1.0.2", system = "Windows" }  # pyproject.tml

or for the add command:

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.

3reactions
sdispatercommented, May 24, 2018

@jacebrowning It should be fixed in the latest 0.10.0a2 prerelease.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found