Skip to content

Commit

Permalink
Added support and release for python 3.11. Fixes #63
Browse files Browse the repository at this point in the history
  • Loading branch information
gsleap committed Nov 23, 2023
1 parent d13cae0 commit 3327156
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run_python_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,7 @@ ccov.zip
/test_files/1370755832_mwax_vcs_os/*.sub
.coverage
.python-version
__pycache__
__pycache__
/tmp
/examples/*.o
/examples/*.dbg
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 3327156

Please sign in to comment.