Skip to content

Commit 16d39cc

Browse files
Pavel Minaevint19h
authored andcommitted
Use setuptools<68 for Python 3.7
1 parent 6340818 commit 16d39cc

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

azure-pipelines/templates/run_tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ steps:
22
- script: "python -m pip install tox"
33
displayName: "Setup Python packages"
44

5+
# tox will automatically install the most recent version of setuptools to build the package.
6+
# However, for Python 3.7, we want an older version of setuptools to avoid DeprecationWarning
7+
# for pkg_resources getting triggered by test_gevent.
8+
- script: 'python -m pip install "setuptools<68"'
9+
displayName: "Install setuptools"
10+
condition: "'$(python.version)' == '3.7'"
11+
512
- pwsh: |
613
$toxEnv = '$(python.version)'
714
if (-not $toxEnv.startsWith('pypy')) {

0 commit comments

Comments
 (0)