Skip to content

Commit 1df2438

Browse files
authored
test: pin virtualenv to <21 for hatch bug (#1771)
1 parent 37938da commit 1df2438

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/integration-test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ jobs:
4848
with:
4949
python-version: '3.10'
5050
- name: Install dependencies
51+
# Pin virtualenv until hatch is fixed.
52+
# See https://github.com/pypa/hatch/issues/2193
5153
run: |
52-
pip install --no-cache-dir hatch
54+
pip install --no-cache-dir hatch 'virtualenv<21'
5355
- name: Run integration tests
5456
env:
5557
AWS_REGION: us-east-1

.github/workflows/pypi-publish-on-release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ jobs:
3434
python-version: '3.10'
3535

3636
- name: Install dependencies
37+
# Pin virtualenv until hatch is fixed.
38+
# See https://github.com/pypa/hatch/issues/2193
3739
run: |
3840
python -m pip install --upgrade pip
39-
pip install hatch twine
41+
pip install hatch twine 'virtualenv<21'
4042
4143
- name: Validate version
4244
run: |

.github/workflows/test-lint.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,10 @@ jobs:
8383
# Windows typically has audio libraries available by default
8484
echo "Windows audio dependencies handled by PyAudio wheels"
8585
- name: Install dependencies
86+
# Pin virtualenv until hatch is fixed.
87+
# See https://github.com/pypa/hatch/issues/2193
8688
run: |
87-
pip install --no-cache-dir hatch
89+
pip install --no-cache-dir hatch 'virtualenv<21'
8890
- name: Run Unit tests
8991
id: tests
9092
run: hatch test tests --cover
@@ -118,8 +120,10 @@ jobs:
118120
sudo apt-get install -y portaudio19-dev libasound2-dev
119121
120122
- name: Install dependencies
123+
# Pin virtualenv until hatch is fixed.
124+
# See https://github.com/pypa/hatch/issues/2193
121125
run: |
122-
pip install --no-cache-dir hatch
126+
pip install --no-cache-dir hatch 'virtualenv<21'
123127
124128
- name: Run lint
125129
id: lint

0 commit comments

Comments
 (0)