From 581344c35112bc7908abcd67019a0656315610c4 Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Tue, 10 Feb 2026 01:56:22 -0500 Subject: [PATCH] pin setuptools to resolve its pkg_resources dependency still required by pyramid (relates to https://github.com/Pylons/pyramid/issues/3731, https://github.com/pypa/setuptools/pull/5007) --- CHANGES.rst | 4 +++- requirements.txt | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 094a80c3b..19f51980d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -17,7 +17,9 @@ Changes: Fixes: ------ -- No change. +- Pin ``setuptools<82`` to resolve its ``pkg_resources`` dependency still required by ``pyramid``` + (relates to `Pylons/pyramid#3731 `_ + and `pypa/setuptools#5007 `_). .. _changes_6.8.1: diff --git a/requirements.txt b/requirements.txt index c786cd6e4..efa198b7b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -94,6 +94,11 @@ pygeofilter[fes,backend-native]>=0.3.1 # - https://github.com/celery/kombu/pull/1536 # - https://github.com/celery/celery/pull/7834 pymongo>=4.6.3 # either (pymongo>=4, kombu>=5.3.0b2) or (pymongo<4, celery<5.2) +# FIXME: setuptools/pkg_resources deprecated dependency +# (https://github.com/Pylons/pyramid/issues/3731, https://github.com/pypa/setuptools/pull/5007) +# below setuptools pin is placed here purposely instead of 'requirements-sys.txt' in order to keep it +# aligned with its upstream 'pyramid' dependency expecting 'pkg_resources' that has official been removed +setuptools<82 pyramid>=1.7.3 pyramid_beaker>=0.8 # see https://github.com/sontek/pyramid_celery/pull/102 to fix Python 3.12 support and other improvements