Skip to content

Commit 1b0f8f2

Browse files
committed
Prefery binary wheels for older versions over sdists for newer ones
1 parent 0304628 commit 1b0f8f2

File tree

5 files changed

+18
-0
lines changed

5 files changed

+18
-0
lines changed

.github/workflows/mypy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
python -m site
4949
python -m pip install --upgrade pip setuptools wheel
5050
python -m pip install --upgrade tox~=3.0 virtualenv!=20.16.0
51+
pip config set global.prefer-binary true
5152
5253
- name: "Run mypy"
5354
if: steps.changes.outputs.code == 'true'

.github/workflows/python_ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ jobs:
6262
python -m site
6363
python -m pip install --upgrade pip setuptools wheel
6464
python -m pip install --upgrade tox~=3.0 virtualenv!=20.16.0
65+
pip config set global.prefer-binary true
6566
6667
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
6768
if: steps.setup-python.outcome == 'success'

.github/workflows/python_ci_linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
python -m site
6464
python -m pip install --upgrade pip setuptools wheel
6565
python -m pip install --upgrade tox~=3.0 virtualenv!=20.16.0
66+
pip config set global.prefer-binary true
6667
6768
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
6869
if: steps.setup-python.outcome == 'success'

.github/workflows/python_ci_macos.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ jobs:
6262
python -m site
6363
python -m pip install --upgrade pip setuptools wheel
6464
python -m pip install --upgrade tox~=3.0 virtualenv!=20.16.0
65+
pip config set global.prefer-binary true
6566
6667
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
6768
if: steps.setup-python.outcome == 'success'

repo_helper.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,17 @@ mypy_version: "1.7.1"
4646
tox_unmanaged:
4747
- testenv
4848
- testenv:py312
49+
50+
github_ci_requirements:
51+
Linux:
52+
post:
53+
# Prefery binary wheels for older versions over sdists for newer ones
54+
- pip config set global.prefer-binary true
55+
Windows:
56+
post:
57+
# Prefery binary wheels for older versions over sdists for newer ones
58+
- pip config set global.prefer-binary true
59+
macOS:
60+
post:
61+
# Prefery binary wheels for older versions over sdists for newer ones
62+
- pip config set global.prefer-binary true

0 commit comments

Comments
 (0)