modified: remarkbox/__init__.py

modified:   requirements.py3.txt
This commit is contained in:
russell@unturf.com 2026-03-09 19:50:36 -04:00
parent 5bcd7df585
commit f45c42d343
2 changed files with 6 additions and 7 deletions

View file

@ -26,7 +26,7 @@ from pyramid.session import SignedCookieSessionFactory
import re import re
# needed to load themes. # needed to load themes.
from pkg_resources import iter_entry_points from importlib.metadata import entry_points
import logging import logging
import os import os
@ -139,10 +139,10 @@ def get_children_settings(settings, parent_key):
def load_entry_points(group_name): def load_entry_points(group_name):
"""Return a dictionary of entry_points related to given group_name""" """Return a dictionary of entry_points related to given group_name"""
entry_points = {} result = {}
for entry_point in iter_entry_points(group=group_name, name=None): for ep in entry_points(group=group_name):
entry_points[entry_point.name] = entry_point.load() result[ep.name] = ep.load()
return entry_points return result
def load_jinja2_themes(config): def load_jinja2_themes(config):

View file

@ -2,8 +2,7 @@
six six
# Python 3.12+ no longer bundles setuptools in venvs. # Python 3.12+ no longer bundles setuptools in venvs.
# Pyramid imports pkg_resources which was removed in setuptools 81+. setuptools
setuptools<81
# Pyramid. # Pyramid.
plaster_pastedeploy plaster_pastedeploy