modified: remarkbox/__init__.py
modified: requirements.py3.txt
This commit is contained in:
parent
5bcd7df585
commit
f45c42d343
2 changed files with 6 additions and 7 deletions
|
|
@ -26,7 +26,7 @@ from pyramid.session import SignedCookieSessionFactory
|
|||
import re
|
||||
|
||||
# needed to load themes.
|
||||
from pkg_resources import iter_entry_points
|
||||
from importlib.metadata import entry_points
|
||||
|
||||
import logging
|
||||
import os
|
||||
|
|
@ -139,10 +139,10 @@ def get_children_settings(settings, parent_key):
|
|||
|
||||
def load_entry_points(group_name):
|
||||
"""Return a dictionary of entry_points related to given group_name"""
|
||||
entry_points = {}
|
||||
for entry_point in iter_entry_points(group=group_name, name=None):
|
||||
entry_points[entry_point.name] = entry_point.load()
|
||||
return entry_points
|
||||
result = {}
|
||||
for ep in entry_points(group=group_name):
|
||||
result[ep.name] = ep.load()
|
||||
return result
|
||||
|
||||
|
||||
def load_jinja2_themes(config):
|
||||
|
|
|
|||
|
|
@ -2,8 +2,7 @@
|
|||
six
|
||||
|
||||
# Python 3.12+ no longer bundles setuptools in venvs.
|
||||
# Pyramid imports pkg_resources which was removed in setuptools 81+.
|
||||
setuptools<81
|
||||
setuptools
|
||||
|
||||
# Pyramid.
|
||||
plaster_pastedeploy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue