mlco2 / codecarbon

Track emissions from Compute and recommend ways to reduce their impact on the environment.
https://mlco2.github.io/codecarbon
MIT License
1.18k stars 177 forks source link

Python 3.12 support #607

Closed benoit-cty closed 3 months ago

benoit-cty commented 4 months ago

Following #605 this PR goal is to remove dependency to pkg_resources to support Python 3.12.

We switch to native importlib and add conditional dependency for older version of Python.

We also add a conditional dependency to numpy 2 depending of the Python version.

That's why we choose to do a minor bump and not a patch.

vercel[bot] commented 3 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
codecarbon ❌ Failed (Inspect) Aug 9, 2024 5:32pm