From f710c0e8b931cbf00a5bfee55d63d2780127a5ae Mon Sep 17 00:00:00 2001
From: Alexandre Detiste <alexandre.detiste@gmail.com>
Date: Fri, 25 Jul 2025 23:46:41 +0200
Subject: [PATCH] avoid generating a useless dependency on tomli when using
 Py3.11+

---
 pyproject.toml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

--- a/pyproject.toml
+++ b/pyproject.toml
@@ -28,7 +28,10 @@
     "Topic :: Software Development :: Libraries :: Python Modules",
     "Typing :: Typed",
 ]
-dependencies = [ "domdf-python-tools>=2.8.0", "tomli>=1.2.3",]
+dependencies = [
+ "domdf-python-tools>=2.8.0",
+ "tomli>=1.2.3; python_version < 3.11",
+]
 dynamic = []
 
 [project.license]
--- a/tests/tests_for_tomliw/test_style.py
+++ b/tests/tests_for_tomliw/test_style.py
@@ -1,5 +1,5 @@
 # 3rd party
-import tomli
+import tomllib as tomli
 
 # this package
 import dom_toml
--- a/tests/tests_for_tomliw/test_valid.py
+++ b/tests/tests_for_tomliw/test_valid.py
@@ -6,7 +6,7 @@
 
 # 3rd party
 import pytest
-import tomli
+import tomllib as tomli
 
 # this package
 import dom_toml
