details:   https://code.tryton.org/tryton/commit/82b14340e545
branch:    default
user:      Cédric Krier <[email protected]>
date:      Tue Jul 07 19:19:25 2026 +0200
description:
        Remove entry_points_selectable backport

        Since c0f49db907fc the minimal Python version is 3.10 which supports 
selectable
        entry-points.
diffstat:

 trytond/trytond/backend/__init__.py |  6 +-----
 trytond/trytond/tests/__init__.py   |  5 +----
 trytond/trytond/tools/misc.py       |  6 +-----
 3 files changed, 3 insertions(+), 14 deletions(-)

diffs (54 lines):

diff -r a7803b7036e7 -r 82b14340e545 trytond/trytond/backend/__init__.py
--- a/trytond/trytond/backend/__init__.py       Mon Jul 13 17:25:29 2026 +0200
+++ b/trytond/trytond/backend/__init__.py       Tue Jul 07 19:19:25 2026 +0200
@@ -2,11 +2,7 @@
 # this repository contains the full copyright notices and license terms.
 import importlib
 import urllib.parse
-
-try:
-    from backports.entry_points_selectable import entry_points
-except ImportError:
-    from importlib.metadata import entry_points
+from importlib.metadata import entry_points
 
 import trytond.config as config
 
diff -r a7803b7036e7 -r 82b14340e545 trytond/trytond/tests/__init__.py
--- a/trytond/trytond/tests/__init__.py Mon Jul 13 17:25:29 2026 +0200
+++ b/trytond/trytond/tests/__init__.py Tue Jul 07 19:19:25 2026 +0200
@@ -1,10 +1,7 @@
 # This file is part of Tryton.  The COPYRIGHT file at the top level of
 # this repository contains the full copyright notices and license terms.
 
-try:
-    from backports.entry_points_selectable import entry_points
-except ImportError:
-    from importlib.metadata import entry_points
+from importlib.metadata import entry_points
 
 
 def register():
diff -r a7803b7036e7 -r 82b14340e545 trytond/trytond/tools/misc.py
--- a/trytond/trytond/tools/misc.py     Mon Jul 13 17:25:29 2026 +0200
+++ b/trytond/trytond/tools/misc.py     Tue Jul 07 19:19:25 2026 +0200
@@ -15,6 +15,7 @@
 import warnings
 from collections.abc import Iterable, Sized
 from functools import cache, wraps
+from importlib.metadata import entry_points as _entry_points
 from itertools import chain, islice, tee, zip_longest
 
 from sql import As, Cast, Select
@@ -22,11 +23,6 @@
 
 from trytond.const import MODULES_GROUP, OPERATORS
 
-try:
-    from backports.entry_points_selectable import entry_points as _entry_points
-except ImportError:
-    from importlib.metadata import entry_points as _entry_points
-
 
 @cache
 def entry_points():

Reply via email to