Skip to content

Commit

Permalink
Merge pull request #160 from promised-ai/ci/python3.12-attempt-2
Browse files Browse the repository at this point in the history
Add compilation for Python 3.12
  • Loading branch information
Swandog authored Jan 22, 2024
2 parents fe07182 + 89db686 commit a4050eb
Show file tree
Hide file tree
Showing 16 changed files with 433 additions and 671 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/run_code_in_mdfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def process_file(file, language, version):
rust_script_contents = f"""//! ```cargo
//! [dependencies]
//! lace = {{ path = ".", version="{version}", features = ["examples", "ctrlc_handler"] }}
//! polars = {{ version = "0.34", default_features=false, features=["csv", "dtype-i8", "dtype-i16", "dtype-u8", "dtype-u16"] }}
//! polars = {{ version = "0.36", default_features=false, features=["csv", "dtype-i8", "dtype-i16", "dtype-u8", "dtype-u16"] }}
//! rand = {{version="0.8", features=["serde1"]}}
//! rand_xoshiro = {{ version="0.6", features = ["serde1"] }}
//! ```
Expand Down
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
Loading

0 comments on commit a4050eb

Please sign in to comment.