diff options
author | V3n3RiX <venerix@koprulu.sector> | 2025-03-11 01:49:36 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2025-03-11 01:49:36 +0000 |
commit | cf7807d7aea23a99a144afceaba961cfed652b5f (patch) | |
tree | ffd2c781c27e0b7e72152a685a04938a2b7966f0 /games-util/sc-controller/files | |
parent | 7c5ebaf83da4c538dd11b56fdd5dfdf39dcbc096 (diff) |
Diffstat (limited to 'games-util/sc-controller/files')
-rw-r--r-- | games-util/sc-controller/files/sc-controller-0.5.0-tomllib.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/games-util/sc-controller/files/sc-controller-0.5.0-tomllib.patch b/games-util/sc-controller/files/sc-controller-0.5.0-tomllib.patch new file mode 100644 index 000000000000..d6724b9c7b9e --- /dev/null +++ b/games-util/sc-controller/files/sc-controller-0.5.0-tomllib.patch @@ -0,0 +1,35 @@ +From 10d0e99164eb699d13df3c183a1600a6a955c6d3 Mon Sep 17 00:00:00 2001 +From: James Le Cuirot <chewi@aura-online.co.uk> +Date: Sun, 9 Mar 2025 19:27:50 +0000 +Subject: [PATCH] Use built-in tomllib rather than toml (#71) + +The toml library has been unmaintained for years and is no longer packaged by some distributions. +--- + tests/test_setup.py | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/tests/test_setup.py b/tests/test_setup.py +index eaae0166..7593b727 100644 +--- a/tests/test_setup.py ++++ b/tests/test_setup.py +@@ -1,6 +1,6 @@ + import pkgutil + +-import toml ++import tomllib + + import scc + +@@ -19,7 +19,8 @@ class TestSetup: + pass + + # Load the packages from pyproject.toml +- pyproject = toml.load("pyproject.toml") ++ with open("pyproject.toml", "rb") as file: ++ pyproject = tomllib.load(file) + packages = pyproject["tool"]["setuptools"]["packages"] + + for importer, modname, ispkg in pkgutil.walk_packages(path=scc.__path__, prefix="scc.", onerror=lambda x: None): +-- +2.48.1 + |