Skip to content

Commit

Permalink
Use setuptools<68 for Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Minaev authored and int19h committed Sep 5, 2023
1 parent 6340818 commit 16d39cc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions azure-pipelines/templates/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ steps:
- script: "python -m pip install tox"
displayName: "Setup Python packages"

# tox will automatically install the most recent version of setuptools to build the package.
# However, for Python 3.7, we want an older version of setuptools to avoid DeprecationWarning
# for pkg_resources getting triggered by test_gevent.
- script: 'python -m pip install "setuptools<68"'
displayName: "Install setuptools"
condition: "'$(python.version)' == '3.7'"

- pwsh: |
$toxEnv = '$(python.version)'
if (-not $toxEnv.startsWith('pypy')) {
Expand Down

0 comments on commit 16d39cc

Please sign in to comment.