Giter Site home page Giter Site logo

Comments (6)

wRAR avatar wRAR commented on July 18, 2024

It's not present in my 3.9.13 either. Unfortunately the list of available fields doesn't seem to be documented, the Python API docs defer to various metadata docs which don't talk about Python versions.

One option for the fix is depending on importlib-metadata on Python < 3.10.

from shub.

Gallaecio avatar Gallaecio commented on July 18, 2024
tox -e py39 -- tests -k test_get_docker_client

Works for me with 3.9.6. And I am sure deps.name is called, coverage data confirms so and raising a ValueError right before makes that the outcome of the test.

But I can reproduce your steps in the REPL, which has me really confused.

from shub.

wRAR avatar wRAR commented on July 18, 2024

Is it possible that tox installs importlib-metadata?

from shub.

Gallaecio avatar Gallaecio commented on July 18, 2024

If I try to import importlib_metadata right before the dep.name line:

FAILED tests/image/test_utils.py::ReleaseUtilsTest::test_get_docker_client - ModuleNotFoundError: No module named 'importlib_metadata'

from shub.

Gallaecio avatar Gallaecio commented on July 18, 2024

I can reproduce the error in a venv calling get_docker_client, though, so tox is definitely doing something different.

from shub.

Gallaecio avatar Gallaecio commented on July 18, 2024

One option for the fix is depending on importlib-metadata on Python < 3.10.

I think this is the way to go. But I am concerned about not having a test for this and accidentally removing it in the future.

I wonder if we should have a special test out of tox that runs on CI.

from shub.

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.