Skip to content

Commit ba4239b

Browse files
fix(ci): pin setuptools<81 so pylama can import pkg_resources
setuptools 81 removed pkg_resources; latest (83) breaks pylama 8.4.1's 'from pkg_resources import iter_entry_points'. Pin <81 at install time and re-assert right before lint (the access_modules --ignore-installed step can pull a newer setuptools). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 72beae0 commit ba4239b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/unit-tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Install dependencies
1616
run: |
1717
python -m pip install --upgrade pip
18-
pip install pytest setuptools
18+
pip install pytest "setuptools<81"
1919
pip install -r requirements.txt
2020
- name: Ensure Config
2121
run: cp config.json.sample config.json
@@ -25,6 +25,8 @@ jobs:
2525
run: |
2626
pip install -r Access/access_modules/requirements.txt --no-cache-dir --ignore-installed
2727
- name: Lint code base
28-
run: python -m pylama Access/accessrequest_helper.py scripts bootprocess
28+
run: |
29+
pip install "setuptools<81"
30+
python -m pylama Access/accessrequest_helper.py scripts bootprocess
2931
- name: Test with pytest
3032
run: python -m pytest -v --cov --disable-warnings

0 commit comments

Comments
 (0)