Use setuptools<68 for Python 3.7

This commit is contained in:
Pavel Minaev 2023-08-31 10:39:52 -07:00 committed by Pavel Minaev
parent 6340818a0e
commit 16d39cc173

View file

@ -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')) {