Coder Social home page Coder Social logo

Comments (4)

Luminaar avatar Luminaar commented on July 30, 2024

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.

PJ-Schulz avatar PJ-Schulz commented on July 30, 2024

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.

otetard avatar otetard commented on July 30, 2024

An attempt to not strictly depend on Docker Compose (and not on PyYAML either) is provided in this PR: #72.

from pytest-docker.

n1ngu avatar n1ngu commented on July 30, 2024

Fixed by #72, would you please close the issue @PJ-Schulz ?

from pytest-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.