Skip to content

Commit

Permalink
Add compilation for Python 3.12
Browse files Browse the repository at this point in the history
This uses the changes from @schmidmt branch `ci/python3.12`
  but without the manual arrow dependency installation
Since that branch was made, the Polars project has started officially supporting 3.12
I figured we should try this again with the bare minimum of changes
  • Loading branch information
Swandog committed Jan 12, 2024
1 parent 82940ee commit 4427ffb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/python-build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.12'
cache: 'pip'
cache-dependency-path: "pylace/requirements-lint.txt"

Expand Down Expand Up @@ -97,12 +97,13 @@ jobs:
3.9
3.10
3.11
3.12
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist -i python3.8 -i python3.9 -i python3.10 -i python3.11 --manifest-path pylace/Cargo.toml
args: --release --out dist -i python3.8 -i python3.9 -i python3.10 -i python3.11 -i python3.12 --manifest-path pylace/Cargo.toml
manylinux: auto

- name: Install dev dependencies
Expand Down Expand Up @@ -141,12 +142,13 @@ jobs:
3.9
3.10
3.11
3.12
architecture: ${{ matrix.target }}
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist -i python3.8 -i python3.9 -i python3.10 -i python3.11 --manifest-path pylace/Cargo.toml
args: --release --out dist -i python3.8 -i python3.9 -i python3.10 -i python3.11 -i python3.12 --manifest-path pylace/Cargo.toml

- name: Install dev dependencies
run: |
Expand Down Expand Up @@ -184,11 +186,12 @@ jobs:
3.9
3.10
3.11
3.12
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist -i python3.8 -i python3.9 -i python3.10 -i python3.11 --manifest-path pylace/Cargo.toml
args: --release --out dist -i python3.8 -i python3.9 -i python3.10 -i python3.11 -i python3.12 --manifest-path pylace/Cargo.toml

- name: Install dev dependencies
if: ${{ matrix.target != 'aarch64' }}
Expand Down Expand Up @@ -227,7 +230,7 @@ jobs:

- uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.12'

- name: Install codedown
run: npm install -g codedown
Expand Down
3 changes: 2 additions & 1 deletion pylace/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: Implementation :: CPython",
Expand All @@ -35,7 +36,7 @@ maintainers = [
dependencies = [
'numpy ~= 1.21',
'pandas ~= 1.3',
'polars ~= 0.16.14',
'polars ~= 0.19.14',
'scipy ~= 1.7',
'plotly ~= 5.14',
'tqdm ~= 4.64.1',
Expand Down

0 comments on commit 4427ffb

Please sign in to comment.