Skip to content

Commit a405721

Browse files
authored
Merge pull request #69 from InvestmentSystems/68/py310-wheels
Python 3.10 wheels
2 parents e97589c + dc1c9fd commit a405721

File tree

6 files changed

+46
-13
lines changed

6 files changed

+46
-13
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
name: dist
2525
path: dist
26-
whl:
26+
whl_lt_3_10:
2727
name: Build / ${{ matrix.os }} / Python ${{ matrix.major }}.${{ matrix.minor }}
2828
strategy:
2929
fail-fast: false
@@ -35,19 +35,44 @@ jobs:
3535
steps:
3636
- uses: actions/checkout@master
3737
- uses: actions/setup-python@master
38-
# - uses: docker/setup-qemu-action@v1
39-
# if: matrix.os == 'Ubuntu' && github.event_name == 'release' && github.event.action == 'published'
40-
# with:
41-
# platforms: all
4238
- run: echo '::add-matcher::.github/problem-matchers/gcc.json'
4339
if: matrix.os == 'macOS' || matrix.os == 'Ubuntu'
4440
- run: echo '::add-matcher::.github/problem-matchers/msvc.json'
4541
if: matrix.os == 'Windows'
46-
- uses: pypa/cibuildwheel@v2.5.0
42+
- uses: pypa/cibuildwheel@v2.9.0
43+
with:
44+
output-dir: dist
45+
env:
46+
CIBW_ARCHS_MACOS: x86_64 universal2 arm64
47+
CIBW_BEFORE_BUILD: pip install -r {project}/requirements-backward.txt
48+
CIBW_BUILD: cp${{ matrix.major }}${{ matrix.minor }}-*
49+
CIBW_BUILD_VERBOSITY: 1
50+
CIBW_BEFORE_TEST: pip install -r {project}/requirements-test-backward.txt
51+
CIBW_TEST_COMMAND: pytest {project}/test
52+
- uses: actions/upload-artifact@master
53+
with:
54+
name: dist
55+
path: dist
56+
whl_eq_3_10:
57+
name: Build / ${{ matrix.os }} / Python ${{ matrix.major }}.${{ matrix.minor }}
58+
strategy:
59+
fail-fast: false
60+
matrix:
61+
os: [macOS, Ubuntu, Windows]
62+
major: [3]
63+
minor: [10]
64+
runs-on: ${{ matrix.os }}-latest
65+
steps:
66+
- uses: actions/checkout@master
67+
- uses: actions/setup-python@master
68+
- run: echo '::add-matcher::.github/problem-matchers/gcc.json'
69+
if: matrix.os == 'macOS' || matrix.os == 'Ubuntu'
70+
- run: echo '::add-matcher::.github/problem-matchers/msvc.json'
71+
if: matrix.os == 'Windows'
72+
- uses: pypa/cibuildwheel@v2.9.0
4773
with:
4874
output-dir: dist
4975
env:
50-
# CIBW_ARCHS: "${{ github.event_name == 'release' && github.event.action == 'published' && 'all' || 'auto' }}"
5176
CIBW_ARCHS_MACOS: x86_64 universal2 arm64
5277
CIBW_BEFORE_BUILD: pip install -r {project}/requirements.txt
5378
CIBW_BUILD: cp${{ matrix.major }}${{ matrix.minor }}-*
@@ -61,7 +86,7 @@ jobs:
6186
upload:
6287
name: Publish
6388
if: github.event_name == 'release' && github.event.action == 'published'
64-
needs: [tar_gz, whl]
89+
needs: [tar_gz, whl_lt_3_10, whl_eq_3_10]
6590
runs-on: ubuntu-latest
6691
steps:
6792
- uses: actions/download-artifact@master

requirements-backward.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
numpy==1.19.5

requirements-test-backward.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
astroid==2.5.3
2+
pytest==7.1.2
3+
numpy==1.19.5
4+
pylint==2.7.4
5+
invoke==1.4.0
6+
pandas==1.2.5
7+
hypothesis==6.10.1

requirements-test.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
astroid==2.5.3
2-
pytest==6.2.3
3-
numpy==1.18.5
2+
pytest==7.1.2
3+
numpy==1.22.4
44
pylint==2.7.4
55
invoke==1.4.0
6-
pandas==1.1.5
6+
pandas==1.4.3
77
hypothesis==6.10.1

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
numpy==1.18.5
1+
numpy==1.22.4

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def get_ext_dir(*components: tp.Iterable[str]) -> tp.Sequence[str]:
4646
description='Array utilities for StaticFrame',
4747
long_description=get_long_description(),
4848
python_requires='>3.7.0',
49-
install_requires=['numpy>=1.18.5'],
49+
install_requires=['numpy>=1.19.5'],
5050
url='https://github.com/InvestmentSystems/arraykit',
5151
author='Christopher Ariza, Brandt Bucher, Charles Burkland',
5252
license='MIT',

0 commit comments

Comments
 (0)