Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/wavpack_latest_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.7.0
5.8.0
13 changes: 7 additions & 6 deletions .github/workflows/build-wavpack-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ on:

jobs:
build-and-test:
name: Build wavpack binaries for ${{ matrix.os }}
name: Build wavpack ${{ matrix.wavpack_version }} binaries for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-22.04", "ubuntu-24.04"]
wavpack_version: ["5.7.0", "5.8.0"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand All @@ -25,19 +26,19 @@ jobs:
- name: Build wavpack libraries
id: build-wavpack
run: |
WAVPACK_LATEST_VERSION="$(cat ./.github/wavpack_latest_version.txt)"
echo "wavpack latest version: $WAVPACK_LATEST_VERSION"
WAVPACK_VERSION=${{ matrix.wavpack_version }}
echo "wavpack latest version: $WAVPACK_VERSION"
TARGET_FOLDER="$(pwd)/wavpack_src"
chmod +x ./.github/scripts/install-wavpack-linux.sh
./.github/scripts/install-wavpack-linux.sh $WAVPACK_LATEST_VERSION $TARGET_FOLDER
./.github/scripts/install-wavpack-linux.sh $WAVPACK_VERSION $TARGET_FOLDER

# copy the built library to the libraries/folder
LIB_FOLDER_NAME="$WAVPACK_LATEST_VERSION/linux-x86_64-glibc$GLIBC_VERSION"
LIB_FOLDER_NAME="$WAVPACK_VERSION/linux-x86_64-glibc$GLIBC_VERSION"
echo "LIB_FOLDER_NAME=$LIB_FOLDER_NAME" >> "$GITHUB_OUTPUT"
WAVPACK_NUMCODECS_LIB_PATH="src/wavpack_numcodecs/libraries/$LIB_FOLDER_NAME"
echo "WAVPACK_NUMCODECS_LIB_PATH=$WAVPACK_NUMCODECS_LIB_PATH" >> $GITHUB_ENV
# find compiled library
LIBWAVPACK_PATH="$(find $TARGET_FOLDER/wavpack-$WAVPACK_LATEST_VERSION/src/.libs -type f | grep libwavpack.so)"
LIBWAVPACK_PATH="$(find $TARGET_FOLDER/wavpack-$WAVPACK_VERSION/src/.libs -type f | grep libwavpack.so)"
mkdir -p $WAVPACK_NUMCODECS_LIB_PATH
cp $LIBWAVPACK_PATH $WAVPACK_NUMCODECS_LIB_PATH/libwavpack.so
sudo rm -f -r $TARGET_FOLDER
Expand Down
191 changes: 0 additions & 191 deletions .github/workflows/build-wavpack.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/python-package-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-22.04", "ubuntu-24.04"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-package-cython.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-package-multi-threading.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-package-no-cython.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ test_no_cython = [
[project.urls]
"Homepage" = "https://github.com/AllenNeuralDynamics/wavpack-numcodecs"

[project.entry-points."numcodecs.codecs"]
wavpack = "wavpack_numcodecs:WavPack"

[build-system]
requires = ["setuptools>=62.0"]
Expand Down
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
else:
have_cython = True

LATEST_WAVPACK_VERSION = "5.7.0"
LATEST_WAVPACK_VERSION = "5.8.0"
SRC_FOLDER = "src/wavpack_numcodecs"


Expand Down Expand Up @@ -108,12 +108,10 @@ def get_build_extensions():
return extensions


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

setup(
ext_modules=extensions,
cmdclass=cmdclass,
entry_points=entry_points,
)
Loading