Skip to content

Commit

Permalink
Added pypi release and release wheels and support for Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
gsleap committed Nov 24, 2023
1 parent 3b9dd14 commit 7e93e4d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 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.8 3.9 3.10 3.11
MWALIB_LINK_STATIC_CFITSIO=1 maturin build --release --features python --strip -i 3.8 3.9 3.10 3.11 3.12

# 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.8 3.9 3.10 3.11
MWALIB_LINK_STATIC_CFITSIO=1 maturin build --release --features python --strip -i 3.8 3.9 3.10 3.11 3.12

# 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.11"
architecture: "x64"

- name: Add Python 3.12
uses: actions/setup-python@v2
with:
python-version: "3.12"
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.8, 3.9, "3.10", "3.11"]
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
steps:
- name: Checkout sources
uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Changes in each release are listed below.

## 1.2.1 24-Nov-2023

* Added pypi release and release wheels and support for Python 3.12.
* Added pypi release for Python 3.11.
* Removed release wheels and pypi deployment for Python 3.7.

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only"
]
dependencies = ["numpy"]
Expand Down

0 comments on commit 7e93e4d

Please sign in to comment.