Skip to content

Commit

Permalink
add python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
dovahcrow committed Mar 2, 2024
1 parent 7b31474 commit 9110454
Show file tree
Hide file tree
Showing 4 changed files with 1,253 additions and 737 deletions.
65 changes: 29 additions & 36 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,22 @@ jobs:
container: quay.io/pypa/manylinux_2_28_x86_64
strategy:
matrix:
python-version: [[38, "3.8"], [39, "3.9"], [310, "3.10"], [311, "3.11"]]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v2

- name: Get commit hash
run: echo "PYTHON_VERSION=${{matrix.python-version}}" | sed -e "s/\.//g" >> $GITHUB_ENV

- name: Set python version
run: |
echo "/opt/python/cp${{ matrix.python-version[0] }}-cp${{ matrix.python-version[0] }}/bin" >> $GITHUB_PATH
echo "/opt/python/cp${{ env.PYTHON_VERSION }}-cp${{ env.PYTHON_VERSION }}/bin" >> $GITHUB_PATH
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
targets: aarch64-unknown-linux-gnu
components: rustfmt
target: aarch64-unknown-linux-gnu
default: true

- uses: extractions/setup-just@v1
env:
Expand All @@ -36,7 +38,7 @@ jobs:
- name: Install tools
run: |
yum install -y epel-release
yum install -y mysql-devel postgresql-devel freetds-devel krb5-libs clang-devel
yum install -y mysql-devel postgresql-devel freetds-devel krb5-libs clang-devel openssl-devel
- name: Setup project
run: |
Expand All @@ -45,7 +47,7 @@ jobs:
- uses: PyO3/maturin-action@v1
with:
rust-toolchain: stable
maturin-version: v0.14.15
maturin-version: v1.4.0
command: build
args: -m connectorx-python/Cargo.toml -i python --release --manylinux 2_28 --features integrated-auth-gssapi
env:
Expand All @@ -59,33 +61,25 @@ jobs:
- uses: PyO3/maturin-action@v1
with:
rust-toolchain: stable
maturin-version: v0.14.15
maturin-version: v1.4.0
command: build
args: -m connectorx-python/Cargo.toml -i python --release --manylinux 2_28 --features integrated-auth-gssapi
env:
SQLITE3_STATIC: 1

# - uses: PyO3/maturin-action@v1
# with:
# maturin-version: v0.14.15
# command: build
# args: -m connectorx-python/Cargo.toml --target aarch64-unknown-linux-gnu -i python --release --manylinux 2_28 --features integrated-auth-gssapi
# env:
# SQLITE3_STATIC: 1

- uses: actions/upload-artifact@v3
with:
name: "ubuntu-latest-${{ matrix.python-version[1] }}"
name: "ubuntu-latest-${{ matrix.python-version }}"
path: connectorx-python/target/wheels/*.whl

win-and-mac:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["windows-latest", "macos-11"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
os: ["windows-latest", "macos-latest"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
include:
- os: "macos-11"
- os: "macos-latest"
features: "--features integrated-auth-gssapi"
steps:
- uses: actions/checkout@v2
Expand All @@ -94,16 +88,16 @@ jobs:
with:
mysql-version: 8

- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64

- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
targets: aarch64-unknown-linux-gnu
components: rustfmt
default: true

- uses: extractions/setup-just@v1
env:
Expand All @@ -118,7 +112,7 @@ jobs:
- uses: PyO3/maturin-action@v1
with:
rust-toolchain: stable
maturin-version: v0.14.15
maturin-version: v1.4.0
command: build
args: -m connectorx-python/Cargo.toml -i python --release ${{ matrix.features }}
env:
Expand All @@ -132,13 +126,13 @@ jobs:
- uses: PyO3/maturin-action@v1
with:
rust-toolchain: stable
maturin-version: v0.14.15
maturin-version: v1.4.0
command: build
args: -m connectorx-python/Cargo.toml -i python --release ${{ matrix.features }}
env:
SQLITE3_STATIC: 1

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: "${{ matrix.os }}-${{ matrix.python-version }}"
path: connectorx-python/target/wheels/*.whl
Expand All @@ -147,24 +141,23 @@ jobs:
runs-on: macos-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v2

- uses: ankane/setup-mysql@v1
with:
mysql-version: 8

- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
targets: aarch64-unknown-linux-gnu
components: rustfmt
target: aarch64-apple-darwin
default: true

- uses: extractions/setup-just@v1
env:
Expand Down Expand Up @@ -193,13 +186,13 @@ jobs:
- uses: PyO3/maturin-action@v1
with:
rust-toolchain: stable
maturin-version: v0.14.15
maturin-version: v1.4.0
command: build
args: -m connectorx-python/Cargo.toml --target aarch64-apple-darwin -i python --release --features integrated-auth-gssapi
env:
SQLITE3_STATIC: 1

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: "macos-${{ matrix.python-version }}"
path: connectorx-python/target/wheels/*.whl
Expand All @@ -209,12 +202,12 @@ jobs:
needs: [win-and-mac, linux, apple-arm]
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
os: [macos-11, ubuntu-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11", "3.12"]
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
Expand Down
Loading

0 comments on commit 9110454

Please sign in to comment.