chore(pyproject.toml): enable PEP-639

This commit is contained in:
Xuehai Pan 2025-03-15 22:40:28 +08:00
parent a39cf70ee7
commit 669f7b32c6
5 changed files with 4 additions and 9 deletions

View file

@ -1,4 +0,0 @@
recursive-include nvitop LICENSE
recursive-include nvitop COPYING
include LICENSE
include COPYING

View file

@ -1 +0,0 @@
include LICENSE

View file

@ -8,7 +8,7 @@ description = "Prometheus exporter built on top of `nvitop`."
readme = "README.md"
requires-python = ">= 3.8"
authors = [{ name = "Xuehai Pan", email = "XuehaiPan@pku.edu.cn" }]
license = { text = "Apache License, Version 2.0 (Apache-2.0)" }
license = { text = "Apache-2.0" }
keywords = [
"nvidia",
"nvidia-smi",

View file

@ -19,7 +19,7 @@
# pylint: disable=invalid-name
__version__ = '1.4.2'
__license__ = 'GPL-3.0-only AND Apache-2.0'
__license__ = 'Apache-2.0 AND GPL-3.0-only'
__author__ = __maintainer__ = 'Xuehai Pan'
__email__ = 'XuehaiPan@pku.edu.cn'
__release__ = False

View file

@ -8,7 +8,7 @@ description = "An interactive NVIDIA-GPU process viewer and beyond, the one-stop
readme = "README.md"
requires-python = ">= 3.8"
authors = [{ name = "Xuehai Pan", email = "XuehaiPan@pku.edu.cn" }]
license = { text = "Apache License, Version 2.0 (Apache-2.0) & GNU General Public License, Version 3 (GPL-3.0)" }
license = { text = "Apache-2.0 AND GPL-3.0-only" }
keywords = [
"nvidia",
"nvidia-smi",
@ -68,7 +68,7 @@ include = ["nvitop", "nvitop.*"]
[tool.mypy]
# Sync with requires-python
python_version = "3.8" # appease mypy for syntax errors in numpy stubs
python_version = "3.8"
mypy_path = [".", "nvitop-exporter"]
exclude = ["nvitop-exporter/setup.py"]
pretty = true