Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

Commit a04b4d6

Browse files
committed
reorganized requiremnets by python version; updated for 3.12
1 parent df57937 commit a04b4d6

10 files changed

Lines changed: 56 additions & 22 deletions

.github/workflows/ci.yml

Lines changed: 38 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,51 +22,77 @@ jobs:
2222
name: dist
2323
path: dist
2424

25-
whl_lt_3_9:
25+
whl_3_8:
2626
name: Build / ${{ matrix.os }} / Python 3.${{ matrix.minor }}
2727
strategy:
2828
fail-fast: false
2929
matrix:
30-
os: [macos-12, ubuntu-20.04, windows-2022]
31-
minor: [7, 8]
30+
os: [macos-12, ubuntu-22.04, windows-2022]
31+
minor: [8]
3232
runs-on: ${{ matrix.os }}
3333
steps:
3434
- uses: actions/checkout@v3
3535
- uses: actions/setup-python@v3
36-
- uses: pypa/cibuildwheel@v2.12.3
36+
- uses: pypa/cibuildwheel@v2.16.2
3737
with:
3838
output-dir: dist
3939
env:
4040
CIBW_BUILD: cp3${{ matrix.minor }}-*
4141
CIBW_ARCHS_MACOS: all
42-
CIBW_BEFORE_BUILD: pip install -r {project}/requirements-build-backward.txt
43-
CIBW_BEFORE_TEST: pip install -r {project}/requirements-backward.txt
42+
CIBW_BEFORE_BUILD: pip install -r {project}/requirements-build-3_8.txt
43+
CIBW_BEFORE_TEST: pip install -r {project}/requirements-dev-3_8.txt
4444
CIBW_TEST_COMMAND: pytest {project}
4545

4646
- uses: actions/upload-artifact@v3
4747
with:
4848
name: dist
4949
path: dist
5050

51-
whl_gte_3_9:
51+
whl_gte_3_9_to_3_11:
5252
name: Build / ${{ matrix.os }} / Python 3.${{ matrix.minor }}
5353
strategy:
5454
fail-fast: false
5555
matrix:
56-
os: [macos-12, ubuntu-20.04, windows-2022]
56+
os: [macos-12, ubuntu-22.04, windows-2022]
5757
minor: [9, 10, 11]
5858
runs-on: ${{ matrix.os }}
5959
steps:
6060
- uses: actions/checkout@v3
6161
- uses: actions/setup-python@v3
62-
- uses: pypa/cibuildwheel@v2.12.3
62+
- uses: pypa/cibuildwheel@v2.16.2
6363
with:
6464
output-dir: dist
6565
env:
6666
CIBW_BUILD: cp3${{ matrix.minor }}-*
6767
CIBW_ARCHS_MACOS: all
68-
CIBW_BEFORE_BUILD: pip install -r {project}/requirements-build.txt
69-
CIBW_BEFORE_TEST: pip install -r {project}/requirements.txt
68+
CIBW_BEFORE_BUILD: pip install -r {project}/requirements-build-3_11.txt
69+
CIBW_BEFORE_TEST: pip install -r {project}/requirements-3_11.txt
70+
CIBW_TEST_COMMAND: pytest {project}
71+
72+
- uses: actions/upload-artifact@v3
73+
with:
74+
name: dist
75+
path: dist
76+
77+
whl_3_12:
78+
name: Build / ${{ matrix.os }} / Python 3.${{ matrix.minor }}
79+
strategy:
80+
fail-fast: false
81+
matrix:
82+
os: [macos-12, ubuntu-22.04, windows-2022]
83+
minor: [12]
84+
runs-on: ${{ matrix.os }}
85+
steps:
86+
- uses: actions/checkout@v3
87+
- uses: actions/setup-python@v3
88+
- uses: pypa/cibuildwheel@v2.16.2
89+
with:
90+
output-dir: dist
91+
env:
92+
CIBW_BUILD: cp3${{ matrix.minor }}-*
93+
CIBW_ARCHS_MACOS: all
94+
CIBW_BEFORE_BUILD: pip install -r {project}/requirements-build-3_12.txt
95+
CIBW_BEFORE_TEST: pip install -r {project}/requirements-dev-3_12.txt
7096
CIBW_TEST_COMMAND: pytest {project}
7197

7298
- uses: actions/upload-artifact@v3
@@ -77,7 +103,7 @@ jobs:
77103
upload:
78104
name: Publish
79105
if: github.event_name == 'release' && github.event.action == 'published'
80-
needs: [tar_gz, whl_lt_3_9, whl_gte_3_9]
106+
needs: [tar_gz, whl_3_8, whl_gte_3_9_to_3_11, whl_3_12]
81107
runs-on: ubuntu-latest
82108
steps:
83109
- uses: actions/download-artifact@v3

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Dependencies
2828

2929
ArrayMap requires the following:
3030

31-
- Python >= 3.7
31+
- Python >= 3.8
3232
- NumPy >= 1.18.5
3333

3434

requirements-build-3_12.txt

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

requirements-dev-3_11.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
black==22.3.0
2+
hypothesis==6.70.0
3+
invoke==1.7.1
4+
pytest==7.1.2
5+
tzdata==2022.1
6+
numpy==1.23.5

requirements-dev-3_12.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
black==22.3.0
2+
hypothesis==6.70.0
3+
invoke==2.2.0
4+
pytest==7.1.2
5+
tzdata==2022.1
6+
numpy==1.26.2

requirements.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
1-
black==22.3.0
2-
hypothesis==6.70.0
3-
invoke==1.7.1
4-
pytest==7.1.2
5-
tzdata==2022.1
6-
numpy==1.23.5
1+
numpy>=1.19.5

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ def get_ext_dir(*components: tp.Iterable[str]) -> tp.Sequence[str]:
3535
version=AM_VERSION,
3636
description="Dictionary-like lookup from NumPy array values to their integer positions",
3737
long_description=LONG_DESCRIPTION,
38-
python_requires=">=3.7.0",
39-
install_requires=["numpy>=1.18.5"],
38+
python_requires=">=3.8.0",
39+
install_requires=["numpy>=1.19.5"],
4040
url="https://github.com/static-frame/arraymap",
4141
author="Christopher Ariza, Brandt Bucher",
4242
license="MIT",
@@ -48,11 +48,11 @@ def get_ext_dir(*components: tp.Iterable[str]) -> tp.Sequence[str]:
4848
"Operating System :: MacOS :: MacOS X",
4949
"Operating System :: Microsoft :: Windows",
5050
"Operating System :: POSIX",
51-
"Programming Language :: Python :: 3.7",
5251
"Programming Language :: Python :: 3.8",
5352
"Programming Language :: Python :: 3.9",
5453
"Programming Language :: Python :: 3.10",
5554
"Programming Language :: Python :: 3.11",
55+
"Programming Language :: Python :: 3.12",
5656
],
5757
ext_modules=[extension],
5858
)

0 commit comments

Comments
 (0)