Platform restrictions on sub-dependencies are ignored
See original GitHub issue- 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: Windows 10
- Poetry version: 0.12.10
- Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/sudiamanj/83da2f18d435166a18479a1d87834128
Issue
I am trying to add the responder dependency on Windows. Notice that their setup.py specifies that the uvloop
dependency should not be included on Windows, as it is incompatible. However, it seems that Poetry is attempting to install it anyways:
PS Z:\sudiamanj\playground> poetry add responder
Using version ^1.1 for responder
Updating dependencies
Resolving dependencies... (0.3s)
Package operations: 19 installs, 0 updates, 0 removals
- Installing uvloop (0.11.3)
[EnvCommandError]
Command ['C:\\Users\\sudiamanj\\AppData\\Local\\pypoetry\\Cache\\virtualenvs\\playground-py3.6\\Scripts\\pip.exe', 'install', '--no-deps', 'uvloop==0.11.3'] errored with the following output:
Collecting uvloop==0.11.3
Using cached https://files.pythonhosted.org/packages/46/60/8e46188acba22369848d5e9bcbee3ca04b68a12d0598bd625c1a3994f5df/uvloop-0.11.3.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\SUDIAM~1\AppData\Local\Temp\pip-install-93rqsrxx\uvloop\setup.py", line 15, in <module>
raise RuntimeError('uvloop does not support Windows at the moment')
RuntimeError: uvloop does not support Windows at the moment
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\SUDIAM~1\AppData\Local\Temp\pip-install-93rqsrxx\uvloop\
add [-D|--dev] [--git GIT] [--path PATH] [-E|--extras EXTRAS] [--optional] [--python PYTHON] [--platform PLATFORM] [--allow-prereleases] [--dry-run] [--] <name> (<name>)...
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Platform restrictions on sub-dependencies are ignored #700
I am trying to add the responder dependency on Windows. Notice that their setup.py specifies that the uvloop dependency should not be included ......
Read more >Gradle manage transitive dependencies - Stack Overflow
I'm trying to remove junit 4.12 from the classpath using the following methods, but to no avail (find the results next to each):...
Read more >Apache Maven Enforcer Built-In Rules – Banned Dependencies
Banned Dependencies. This rule checks the dependencies and fails if any of the matching excludes are found.
Read more >dealing with problematic dependencies in a restricted network ...
As a quick first attempt, you can ignore lifecycle scripts when installing packages via npm install {pkg-name} --ignore-scripts . Unfortunately, ...
Read more >Gradle ignores transitive dependencies when specifying a ...
I am working on a multi platform Java EE product/framework project. ... Gradle ignores transitive dependencies - in contrast to Maven.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
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
There is definitely something wrong here. I will investigate and get back to you.
Resolved in uvicorn v 0.4.6 by PR https://github.com/encode/uvicorn/pull/309
Uvicorn 0.5.* is likely to use extras (see https://github.com/encode/uvicorn/issues/219) to cover this issue so things can break or change again in some situations (hopefully get finally resolved).