Skip to content

Commit 0c33c7c

Browse files
Copilotbenoit-ctybenoit-cty
authored
Replace deprecated pynvml with nvidia-ml-py package (#942)
* Initial plan * Replace deprecated pynvml with nvidia-ml-py package - Updated pyproject.toml to replace pynvml with nvidia-ml-py - Updated documentation to reflect the new package name - All tests pass without deprecation warnings - nvidia-ml-py provides the same pynvml module for backward compatibility Co-authored-by: benoit-cty <6603048+benoit-cty@users.noreply.github.com> * deps upgrade * bump * rebuild docs --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: benoit-cty <6603048+benoit-cty@users.noreply.github.com> Co-authored-by: benoit-cty <4-benoit-cty@users.noreply.git.leximpact.dev>
1 parent e775b49 commit 0c33c7c

30 files changed

Lines changed: 482 additions & 433 deletions

codecarbon/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "3.0.5"
1+
__version__ = "3.0.6"

docs/.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 5f482fbbfa770d9f8999adc89a86852e
3+
config: 6d666622e45f9155102083aa5821ce4a
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

docs/_sources/installation.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ The following packages are used by the CodeCarbon package, and will be installed
5353
prometheus_client
5454
psutil
5555
py-cpuinfo
56-
pynvml
56+
nvidia-ml-py
5757
rapidfuzz
5858
requests
5959
questionary

docs/_sources/methodology.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Currently, the package supports the following hardware infrastructure.
8181
GPU
8282
~~~~
8383

84-
Tracks Nvidia GPUs energy consumption using ``pynvml`` library (installed with the package).
84+
Tracks Nvidia GPUs energy consumption using ``nvidia-ml-py`` library (installed with the package).
8585

8686
RAM
8787
~~~~

docs/_static/documentation_options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const DOCUMENTATION_OPTIONS = {
2-
VERSION: '3.0.5',
2+
VERSION: '3.0.6',
33
LANGUAGE: 'en',
44
COLLAPSE_INDEX: false,
55
BUILDER: 'html',

docs/advanced_installation.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
77

88
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
9-
<title>Advanced Installation &mdash; CodeCarbon 3.0.5 documentation</title>
9+
<title>Advanced Installation &mdash; CodeCarbon 3.0.6 documentation</title>
1010
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=03e43079" />
1111
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=e59714d7" />
1212

1313

1414
<script src="_static/jquery.js?v=5d32c60e"></script>
1515
<script src="_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
16-
<script src="_static/documentation_options.js?v=f4ced14b"></script>
16+
<script src="_static/documentation_options.js?v=c3365b21"></script>
1717
<script src="_static/doctools.js?v=9bcbadda"></script>
1818
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
1919
<script src="_static/js/theme.js"></script>

docs/api.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
77

88
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
9-
<title>CodeCarbon API &mdash; CodeCarbon 3.0.5 documentation</title>
9+
<title>CodeCarbon API &mdash; CodeCarbon 3.0.6 documentation</title>
1010
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=03e43079" />
1111
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=e59714d7" />
1212

1313

1414
<script src="_static/jquery.js?v=5d32c60e"></script>
1515
<script src="_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
16-
<script src="_static/documentation_options.js?v=f4ced14b"></script>
16+
<script src="_static/documentation_options.js?v=c3365b21"></script>
1717
<script src="_static/doctools.js?v=9bcbadda"></script>
1818
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
1919
<script src="_static/js/theme.js"></script>

docs/comet.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
77

88
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
9-
<title>Comet Integration &mdash; CodeCarbon 3.0.5 documentation</title>
9+
<title>Comet Integration &mdash; CodeCarbon 3.0.6 documentation</title>
1010
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=03e43079" />
1111
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=e59714d7" />
1212

1313

1414
<script src="_static/jquery.js?v=5d32c60e"></script>
1515
<script src="_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
16-
<script src="_static/documentation_options.js?v=f4ced14b"></script>
16+
<script src="_static/documentation_options.js?v=c3365b21"></script>
1717
<script src="_static/doctools.js?v=9bcbadda"></script>
1818
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
1919
<script src="_static/js/theme.js"></script>

docs/edit/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
# The full version, including alpha/beta/rc tags
2626

27-
release = "3.0.5"
27+
release = "3.0.6"
2828

2929
# -- General configuration ---------------------------------------------------
3030

docs/edit/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ The following packages are used by the CodeCarbon package, and will be installed
5353
prometheus_client
5454
psutil
5555
py-cpuinfo
56-
pynvml
56+
nvidia-ml-py
5757
rapidfuzz
5858
requests
5959
questionary

0 commit comments

Comments
 (0)