Skip to content

Commit

Permalink
add support for python 3.9 (#1028)
Browse files Browse the repository at this point in the history
* add support for python 3.9

* bad matrix

* wrong place for runs on

* wrong place for runs on

* maybe upside down?

* maybe upside down?

* maybe upside down?

* maybe upside down?

* maybe upside down?

* release matrix
  • Loading branch information
Haaroon authored Jun 7, 2023
1 parent 07354ba commit 043fdc7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/_release_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
strategy:
matrix:
target: [x86_64, aarch64, armv7]
python: ['3.9', '3.10']
steps:
- name: "Check if user has write access"
uses: "lannonbr/[email protected]"
Expand All @@ -42,7 +43,7 @@ jobs:
ref: ${{ inputs.base }}
- uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: ${{ matrix.python }}
- name: Setup QEMU
uses: docker/setup-qemu-action@v1
- name: Build wheels
Expand All @@ -51,7 +52,7 @@ jobs:
working-directory: ./python
command: build
target: ${{ matrix.target }}
args: --release -i python3.10 --out dist
args: --release --out dist
manylinux: 2014
before-script-linux: |
if [[ -f /etc/os-release ]]; then
Expand Down Expand Up @@ -100,6 +101,7 @@ jobs:
strategy:
matrix:
target: [x64]
python: ['3.9', '3.10']
steps:
- name: "Check if user has write access"
uses: "lannonbr/[email protected]"
Expand All @@ -112,7 +114,7 @@ jobs:
ref: ${{ inputs.base }}
- uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: ${{ matrix.python }}
architecture: ${{ matrix.target }}
- name: Build wheels
uses: PyO3/maturin-action@v1
Expand All @@ -131,6 +133,7 @@ jobs:
strategy:
matrix:
target: [x86_64, aarch64]
python: ['3.9', '3.10']
steps:
- name: "Check if user has write access"
uses: "lannonbr/[email protected]"
Expand All @@ -154,7 +157,7 @@ jobs:
ref: ${{ inputs.base }}
- uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: ${{ matrix.python }}
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/test_python_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@ jobs:
python-test:
if: ${{ !inputs.skip_tests }}
name: Python Tests
runs-on: '${{ matrix.os }}'
strategy:
matrix:
include:
- os: macos-latest
- os: ubuntu-latest
- os: windows-latest
python: ['3.9', '3.10']
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: '${{ matrix.os }}'
steps:
- uses: actions/checkout@v3
name: Checkout
Expand All @@ -41,10 +39,10 @@ jobs:
toolchain: stable
override: true
components: rustfmt, clippy
- name: Setup Python
- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: ${{ matrix.python }}
- name: Run Maturin develop
uses: PyO3/maturin-action@v1
with:
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ test-all: rust-test

install-python:
cd python && maturin build && pip install ../target/wheels/*.whl

run-graphql:
cargo run --release -p raphtory-graphql

0 comments on commit 043fdc7

Please sign in to comment.