Skip to content

Commit 2b99252

Browse files
authored
Prepare a new pyat release (#492)
* Modify build-python-wheels.yml * Modify build-python-wheels.yml
1 parent e546814 commit 2b99252

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

.github/workflows/build-python-wheels.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ${{ matrix.os }}
1414
strategy:
1515
matrix:
16-
os: [ubuntu-18.04, macos-10.15, windows-2019]
16+
os: [ubuntu-20.04, macos-11, windows-2019]
1717

1818
steps:
1919
- uses: actions/checkout@v3
@@ -27,6 +27,13 @@ jobs:
2727
with:
2828
python-version: '3.9'
2929

30+
- name: Get version
31+
# Get the version before modifying the repository
32+
shell: bash
33+
run: |
34+
python -m pip install setuptools-scm
35+
echo "SETUPTOOLS_SCM_PRETEND_VERSION=$(python -m setuptools_scm)" >> $GITHUB_ENV
36+
3037
- name: Set build configuration
3138
run: cp githubproject.toml pyproject.toml
3239

@@ -41,17 +48,17 @@ jobs:
4148
if-no-files-found: error
4249

4350
build_sdist:
44-
runs-on: ubuntu-18.04
51+
runs-on: ubuntu-20.04
4552

4653
steps:
47-
- uses: actions/checkout@v2
54+
- uses: actions/checkout@v3
4855
with:
4956
# Necessary to fetch tags and allow setuptools_scm
5057
# see: https://github.com/pypa/setuptools_scm/issues/480
5158
fetch-depth: 0
5259

5360
- name: Install Python
54-
uses: actions/setup-python@v2
61+
uses: actions/setup-python@v4
5562
with:
5663
python-version: '3.9'
5764

githubproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
[build-system]
77
requires = [
8-
"numpy == 1.16.6;python_version<'3.8'",
9-
"numpy == 1.17.3;python_version=='3.8'",
10-
"numpy == 1.19.3;python_version=='3.9'",
11-
"numpy == 1.21.3;python_version>='3.10'",
8+
"numpy ~= 1.16.6;python_version<'3.8'",
9+
"numpy ~= 1.17.3;python_version=='3.8'",
10+
"numpy ~= 1.19.3;python_version=='3.9'",
11+
"numpy ~= 1.21.3;python_version>='3.10'",
1212
"setuptools >= 62",
1313
"setuptools_scm >= 7",
1414
"wheel",

0 commit comments

Comments
 (0)