Use tomli and tomllib instead of toml
diff --git a/setup.cfg b/setup.cfg
index 8247f31..0f249c1 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -24,7 +24,7 @@
 packages = find:
 install_requires =
     ruamel.yaml>=0.15
-    toml
+    tomli>=1.1.0;python_version<"3.11"
 python_requires = >=3.7
 
 [options.packages.find]