Skip to content

Commit

Permalink
tests: bump setuptools to latest
Browse files Browse the repository at this point in the history
For some reason twisted tests are now failing with not so recent
setuptools versions: 56.0 fails but 59.6.0 works.

Twisted fails to install with:

  File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2456, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
ModuleNotFoundError: No module named 'setuptools.command.build'
  • Loading branch information
xrmx committed Jul 26, 2024
1 parent ae65416 commit af17c28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/scripts/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e

export PATH=${HOME}/.local/bin:${PATH}
python -m pip install --user -U pip --cache-dir "${PIP_CACHE}"
python -m pip install --user -U pip setuptools --cache-dir "${PIP_CACHE}"
python -m pip install --user -r "tests/requirements/reqs-${FRAMEWORK}.txt" --cache-dir "${PIP_CACHE}"

export PYTHON_VERSION=$(python -c "import platform; pv=platform.python_version_tuple(); print('pypy' + ('' if pv[0] == 2 else str(pv[0])) if platform.python_implementation() == 'PyPy' else '.'.join(map(str, platform.python_version_tuple()[:2])))")
Expand Down

0 comments on commit af17c28

Please sign in to comment.