Skip to content

Commit 06135ce

Browse files
authored
Clean up wavpack builds, update wavpack, and Python 3.13 (#33)
1 parent 90163f0 commit 06135ce

15 files changed

Lines changed: 9919 additions & 3513 deletions

.github/wavpack_latest_version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.7.0
1+
5.8.0

.github/workflows/build-wavpack-binaries.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ on:
55

66
jobs:
77
build-and-test:
8-
name: Build wavpack binaries for ${{ matrix.os }}
8+
name: Build wavpack ${{ matrix.wavpack_version }} binaries for ${{ matrix.os }}
99
runs-on: ${{ matrix.os }}
1010
strategy:
1111
fail-fast: false
1212
matrix:
1313
os: ["ubuntu-22.04", "ubuntu-24.04"]
14+
wavpack_version: ["5.7.0", "5.8.0"]
1415
steps:
1516
- uses: actions/checkout@v4
1617
- uses: actions/setup-python@v5
@@ -25,19 +26,19 @@ jobs:
2526
- name: Build wavpack libraries
2627
id: build-wavpack
2728
run: |
28-
WAVPACK_LATEST_VERSION="$(cat ./.github/wavpack_latest_version.txt)"
29-
echo "wavpack latest version: $WAVPACK_LATEST_VERSION"
29+
WAVPACK_VERSION=${{ matrix.wavpack_version }}
30+
echo "wavpack latest version: $WAVPACK_VERSION"
3031
TARGET_FOLDER="$(pwd)/wavpack_src"
3132
chmod +x ./.github/scripts/install-wavpack-linux.sh
32-
./.github/scripts/install-wavpack-linux.sh $WAVPACK_LATEST_VERSION $TARGET_FOLDER
33+
./.github/scripts/install-wavpack-linux.sh $WAVPACK_VERSION $TARGET_FOLDER
3334
3435
# copy the built library to the libraries/folder
35-
LIB_FOLDER_NAME="$WAVPACK_LATEST_VERSION/linux-x86_64-glibc$GLIBC_VERSION"
36+
LIB_FOLDER_NAME="$WAVPACK_VERSION/linux-x86_64-glibc$GLIBC_VERSION"
3637
echo "LIB_FOLDER_NAME=$LIB_FOLDER_NAME" >> "$GITHUB_OUTPUT"
3738
WAVPACK_NUMCODECS_LIB_PATH="src/wavpack_numcodecs/libraries/$LIB_FOLDER_NAME"
3839
echo "WAVPACK_NUMCODECS_LIB_PATH=$WAVPACK_NUMCODECS_LIB_PATH" >> $GITHUB_ENV
3940
# find compiled library
40-
LIBWAVPACK_PATH="$(find $TARGET_FOLDER/wavpack-$WAVPACK_LATEST_VERSION/src/.libs -type f | grep libwavpack.so)"
41+
LIBWAVPACK_PATH="$(find $TARGET_FOLDER/wavpack-$WAVPACK_VERSION/src/.libs -type f | grep libwavpack.so)"
4142
mkdir -p $WAVPACK_NUMCODECS_LIB_PATH
4243
cp $LIBWAVPACK_PATH $WAVPACK_NUMCODECS_LIB_PATH/libwavpack.so
4344
sudo rm -f -r $TARGET_FOLDER

.github/workflows/build-wavpack.yml

Lines changed: 0 additions & 191 deletions
This file was deleted.

.github/workflows/python-package-binaries.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
os: ["ubuntu-22.04", "ubuntu-24.04"]
17-
python-version: ["3.9", "3.10", "3.11", "3.12"]
17+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1818
steps:
1919
- uses: actions/checkout@v4
2020
- uses: actions/setup-python@v5

.github/workflows/python-package-cython.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
os: ["ubuntu-latest", "macos-latest"]
17-
python-version: ["3.9", "3.10", "3.11", "3.12"]
17+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1818
steps:
1919
- uses: actions/checkout@v4
2020
- uses: actions/setup-python@v5

.github/workflows/python-package-multi-threading.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
os: ["ubuntu-latest", "macos-latest"]
17-
python-version: ["3.9", "3.10", "3.11", "3.12"]
17+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1818
steps:
1919
- uses: actions/checkout@v4
2020
- uses: actions/setup-python@v5

.github/workflows/python-package-no-cython.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
17-
python-version: ["3.9", "3.10", "3.11", "3.12"]
17+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1818
steps:
1919
- uses: actions/checkout@v4
2020
- uses: actions/setup-python@v5

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ test_no_cython = [
3636
[project.urls]
3737
"Homepage" = "https://github.com/AllenNeuralDynamics/wavpack-numcodecs"
3838

39+
[project.entry-points."numcodecs.codecs"]
40+
wavpack = "wavpack_numcodecs:WavPack"
3941

4042
[build-system]
4143
requires = ["setuptools>=62.0"]

setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
else:
1515
have_cython = True
1616

17-
LATEST_WAVPACK_VERSION = "5.7.0"
17+
LATEST_WAVPACK_VERSION = "5.8.0"
1818
SRC_FOLDER = "src/wavpack_numcodecs"
1919

2020

@@ -108,12 +108,10 @@ def get_build_extensions():
108108
return extensions
109109

110110

111-
entry_points = {"numcodecs.codecs": ["wavpack = wavpack_numcodecs:WavPack"]}
112111
extensions = get_build_extensions()
113112
cmdclass = {"build_ext": build_ext} if have_cython else {}
114113

115114
setup(
116115
ext_modules=extensions,
117116
cmdclass=cmdclass,
118-
entry_points=entry_points,
119117
)

0 commit comments

Comments
 (0)