From 332715662607a5e56862c7dbf6d25790f0a563b9 Mon Sep 17 00:00:00 2001 From: Greg Sleap Date: Thu, 23 Nov 2023 13:11:28 +1100 Subject: [PATCH] Added support and release for python 3.11. Fixes #63 --- .github/workflows/build.sh | 4 ++-- .github/workflows/releases.yml | 6 ++++++ .github/workflows/run_python_tests.yml | 2 +- .gitignore | 5 ++++- CHANGELOG.md | 4 ++++ Cargo.toml | 2 +- 6 files changed, 18 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.sh b/.github/workflows/build.sh index 37834aa..38d0aa2 100755 --- a/.github/workflows/build.sh +++ b/.github/workflows/build.sh @@ -41,7 +41,7 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then export RUSTFLAGS="-C target-cpu=${level}" # Build python first - MWALIB_LINK_STATIC_CFITSIO=1 maturin build --release --features python --strip -i 3.7 3.8 3.9 3.10 + MWALIB_LINK_STATIC_CFITSIO=1 maturin build --release --features python --strip -i 3.7 3.8 3.9 3.10 3.11 # Build C objects MWALIB_LINK_STATIC_CFITSIO=1 cargo build --release --features examples @@ -59,7 +59,7 @@ elif [[ "$OSTYPE" == "darwin"* ]]; then brew install automake # Build python first - MWALIB_LINK_STATIC_CFITSIO=1 maturin build --release --features python --strip -i 3.7 3.8 3.9 3.10 + MWALIB_LINK_STATIC_CFITSIO=1 maturin build --release --features python --strip -i 3.7 3.8 3.9 3.10 3.11 # Build C objects MWALIB_LINK_STATIC_CFITSIO=1 cargo build --release --features examples diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index f7110d6..8e3185a 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -73,6 +73,12 @@ jobs: python-version: "3.10" architecture: "x64" + - name: Add Python 3.11 + uses: actions/setup-python@v2 + with: + python-version: "3.11" + architecture: "x64" + - name: Build mwalib run: ./.github/workflows/build.sh shell: bash diff --git a/.github/workflows/run_python_tests.yml b/.github/workflows/run_python_tests.yml index c7c8865..3661d96 100644 --- a/.github/workflows/run_python_tests.yml +++ b/.github/workflows/run_python_tests.yml @@ -20,7 +20,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest] - python-version: [3.7, 3.8, 3.9, "3.10"] + python-version: [3.7, 3.8, 3.9, "3.10", "3.11"] steps: - name: Checkout sources uses: actions/checkout@v3 diff --git a/.gitignore b/.gitignore index 8e9932e..e55032d 100644 --- a/.gitignore +++ b/.gitignore @@ -19,4 +19,7 @@ ccov.zip /test_files/1370755832_mwax_vcs_os/*.sub .coverage .python-version -__pycache__ \ No newline at end of file +__pycache__ +/tmp +/examples/*.o +/examples/*.dbg \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index de5726d..b0c79a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ Changes in each release are listed below. +## 1.2.0 23-Nov-2023 + +* Added support and release for Python 3.11 + ## 1.1.1 5-Oct-2023 * Fixed build issue which caused 'illegal instruction' errors whenever mwalib called CFITSIO functions. diff --git a/Cargo.toml b/Cargo.toml index 9a93acd..855259a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mwalib" -version = "1.1.1" +version = "1.2.0" homepage = "https://github.com/MWATelescope/mwalib" repository = "https://github.com/MWATelescope/mwalib" readme = "README.md"