Do not validate path dependencies when they are not selected for installation
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: Ubuntu 18.10
- Poetry version: 0.12.10
- Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/spither/47f144b1f355990d562b5ba92bf15fe3
Issue
I cannot run poetry install --no-dev
away from my development environment because I have dev-only path based dependencies.
> poetry install --no-dev
[ValueError]
Directory ../dev-only does not exist
The error is correct, the directory doesn’t exist, but it’s only listed as a dev-dependency and I’m trying to install --no-dev
. I was not expecting any dev-dependency checks to take place.
In my case I’m trying to install the non-dev dependencies for a Django site deployment. The path based dev-dependencies only exist in development, not on the deployment system.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:27
- Comments:19 (4 by maintainers)
Top Results From Across the Web
pip: force install ignoring dependencies - Stack Overflow
pip has a --no-dependencies switch. You should use that. For more information, run pip install -h , where you'll see this line:
Read more >Troubleshooting common problems - DOMINO SUPPORT
My run is failing because of missing packages or dependencies. Many R and Python packages are installed by default on the Domino machines,...
Read more >Dependency Management With Python Poetry
Learn how Python Poetry will help you start new projects, maintain existing ones, and master dependency management.
Read more >Add and assign Win32 apps to Microsoft Intune
Previously added app dependencies can't be selected in the list of added app dependencies. You can choose whether or not to install each ......
Read more >Dependencies analysis | IntelliJ IDEA Documentation - JetBrains
In the dialog that opens, specify the scope of files that you want to analyze. Selecting the scope of the analysis. If the...
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
I’ve also run into this issue, my use case being that I want to use a local (and editable) version of a package during development and a commit from a git repository for deployment situations.
I know it’s a MASSIVE hack but this was killing my docker build and I didn’t want two
pyproject.toml
so I just put the[tool.poetry.dev-dependencies]
heading at the bottom of mypyproject.toml
and usedRUN sed -i -n '/tool.poetry.dev-dependencies/q;p' pyproject.toml
beforepoetry install
.I know. I feel dirty, but I regret nothing!