Comments (4)
Hello, thank you for raising the issue.
There seems to be no easy solution ― the problem is in a transitive dependency that we have no control over (we depend on docker-compose
which depends on pyyaml<6.0
). One possible solution would be to submit an issue or PR to the docker-compose
repository, though there is a new version of docker-compose
which is not written in Python and I don't know how willing the devs will be to change the old version.
Another solution would be to use pyyaml<6.0
in your project, which of course might not be feasible if you depend on fixes from version 6 (from the changelog it seems that the main breaking change is removing support for Python2.7).
Finally, it might be possible to change pytest-docker
in such a way to allow users to provide their own docker-compose
installation instead of installing it directly. This will require a greater discussion as well as a major version bump.
from pytest-docker.
Thank for the detailed answer.
The easiest way is to use a version of pyyaml<6.0
at the moment. But if there will be new features in pyyaml
in the future, they cannot be used together with pytest-docker
. So this is not the best solution.
Using a pre-installed docker-compose has the same dependency on pyyaml<6.0
, unless someone uses their own version of docker-compose or a version >2.
I have opened an issue on docker/compose to update the dependency to 6.0 : docker/compose#9114
from pytest-docker.
An attempt to not strictly depend on Docker Compose (and not on PyYAML either) is provided in this PR: #72.
from pytest-docker.
Fixed by #72, would you please close the issue @PJ-Schulz ?
from pytest-docker.
Related Issues (20)
- Allow user to customize `docker-compose up` command line flags HOT 3
- Unable to run in CI pipeline HOT 2
- `"docker-compose-v1": executable file not found in $PATH` when running from Makefile HOT 2
- How to add parametrize to our test case with pytest-docker? HOT 1
- Docs for multiple docker-compose files HOT 4
- Support for docker-compose V2 HOT 4
- Support for pytest v7
- Endpoint empty error HOT 5
- Project maintenance and activity HOT 1
- Skipping the setup in Gitlab CI HOT 3
- Insufficient removal of control characters on windows with cmd.exe as shell HOT 2
- How to wait for container to become healthy? HOT 3
- Allow for overriding of pytest fixture scope HOT 5
- same set of tests, many docker-compose.yml? HOT 1
- Fixture `docker_ip` not found HOT 4
- Utility to run arbitrary commands on a container HOT 2
- Generated docker compose command fails HOT 1
- Docker in docker HOT 4
- Executing multiple commands for `docker_setup` and `docker_cleanup` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytest-docker.