commit 38668bb4e59540d028ae0d273fc5eb395ed4d248
parent b94b51815585146842f1e2e31816ae668d36e6a8
Author: Jean Schurger <jean@schurger.org>
Date: Fri, 16 Jan 2026 09:11:58 -0500
Updated for python 3.13.
Diffstat:
3 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/encadre/controllers.py b/encadre/controllers.py
@@ -67,10 +67,9 @@ def setup_controllers(cls, f, level=0):
def load_controllers(f, application):
- eps = entry_points()
app_group = '%s.controllers' % application
for group in (app_group, 'encadre.controllers'):
- for ep in eps.get(group, []):
+ for ep in entry_points(group=group):
try:
ep.load()
logger.debug("Loaded controller '%s'" % ep)
diff --git a/encadre/framework.py b/encadre/framework.py
@@ -199,10 +199,9 @@ class DumpRoutes(Framework):
def framework_from_config(application, config):
fw_name = (config.get(application) or {}).get('framework')
assert fw_name, "No framework configured."
- eps = entry_points()
app_group = '%s.frameworks' % application
for group in (app_group, 'encadre.frameworks'):
- group_eps = eps.get(group, [])
+ group_eps = entry_points(group=group)
for ep in group_eps:
if ep.name == fw_name:
return ep.load()(application, config)
diff --git a/pyproject.toml b/pyproject.toml
@@ -4,13 +4,13 @@ build-backend = "setuptools.build_meta"
[project]
name = "encadre"
-version = "0.2.0"
+version = "0.3.0"
description = "Encadre framework"
authors = [
{name = "Jean Schurger", email = "jean@schurger.org"}
]
license = {text = "GPLv3"}
-requires-python = ">=3.10,<3.12"
+requires-python = ">=3.13"
dependencies = [
"Flask",
"fastjsonschema",