Pin setuptools<81 — version 82 removed pkg_resources

Pyramid imports pkg_resources which was removed in setuptools 82.
Pin across requirements, Makefile, and CI scripts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
russell@unturf.com 2026-02-08 12:19:33 -05:00
parent 37bffe29aa
commit f5c09d873e
3 changed files with 7 additions and 7 deletions

View file

@ -11,7 +11,7 @@ test:
- tags
script:
- make venv
- env/bin/pip install setuptools
- env/bin/pip install 'setuptools<81'
- make test
build:
@ -21,7 +21,7 @@ build:
- tags
script:
- make venv
- env/bin/pip install setuptools
- env/bin/pip install 'setuptools<81'
- make install-source-prod
# Copy static assets to env/static
- cp -pr remarkbox/static env/static

View file

@ -24,7 +24,7 @@ $(VENV_DIR)/bin/activate:
@echo "Creating virtual environment in $(VENV_DIR)..."
python3 -m venv $(VENV_DIR)
@echo "Installing setuptools (required by Pyramid, not bundled in Python 3.12+ venvs)..."
$(PIP) install setuptools
$(PIP) install 'setuptools<81'
venv: $(VENV_DIR)/bin/activate
@ -66,7 +66,7 @@ install: install-core install-dev install-themes
# Install remarkbox from source (editable mode) plus dev, test, and themes
install-source-dev-and-test: venv install-themes
@echo "Ensuring setuptools is installed (required by Pyramid on Python 3.12+)..."
$(PIP) install setuptools
$(PIP) install 'setuptools<81'
@echo "Installing remarkbox from source (editable mode)..."
$(PIP) install --editable .
$(PIP) install --upgrade -r requirements-dev.txt
@ -74,7 +74,7 @@ install-source-dev-and-test: venv install-themes
install-source-prod: venv install-themes
@echo "Ensuring setuptools is installed (required by Pyramid on Python 3.12+)..."
$(PIP) install setuptools
$(PIP) install 'setuptools<81'
@echo "Deleting tests from source code for production..."
rm -rf remarkbox/tests
@echo "Installing remarkbox from source (in non-editable mode)..."

View file

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