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
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
7 changes: 5 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ on:

jobs:
docs:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
name: Style Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v3
- uses: actions/checkout@v7
- uses: astral-sh/setup-uv@v10.2.0
- name: Install Python
run: uv python install 3.11
- name: Check style
Expand Down
46 changes: 6 additions & 40 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,17 @@ on:

jobs:
test:
name: Python ${{ matrix.python-version }} / ${{ matrix.os }} / ${{ matrix.numpy }}
name: Python ${{ matrix.python-version }} / ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
numpy: ["numpy"]
include:
- os: ubuntu-latest
python-version: "3.9"
numpy: "numpy==1.26.4"
python-version: ["3.11", "3.12", "3.13", "3.14", "3.15"]
runs-on: ${{ matrix.os }}
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v3
- uses: actions/checkout@v7
- uses: astral-sh/setup-uv@v10.2.0
- name: Install Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install libsndfile
Expand All @@ -33,34 +29,4 @@ jobs:
- name: Run tests
env:
MPLBACKEND: Agg
run: uv run --with ${{ matrix.numpy }} --extra dev pytest

test-deb11-i386:
name: Python 3.7 on Debian 11 i386
runs-on: ubuntu-latest
container: i386/debian:11
env:
NPY_PROMOTION_STATE: weak_and_warn
steps:
- name: Install dependencies
run: |
apt-get update
apt-get install -y --no-install-recommends \
python3-fsspec \
python3-matplotlib \
python3-numpy \
python3-pandas \
python3-pip \
python3-requests \
python3-scipy \
python3-soundfile \
python3-pytest \
git
python3 --version
# Note: "actions/checkout@v2" requires libstdc++6:amd64 to be
# installed in the container. To keep things simple, use
# "actions/checkout@v1" instead.
# https://github.com/actions/checkout/issues/334
- uses: actions/checkout@v1
- name: Run tests
run: pytest-3
run: uv run --python ${{ matrix.python-version }} --extra dev pytest
4 changes: 2 additions & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
version: 2

build:
os: "ubuntu-20.04"
os: "ubuntu-24.04"
tools:
python: "3.10"
python: "3.12"

# Build from the docs/ directory with Sphinx
sphinx:
Expand Down
9 changes: 2 additions & 7 deletions DEVELOPING.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,10 @@ uv add <somepackage> --optional <somegroup>

It may be useful to publish to testpypi and preview the changes before publishing to PyPi. However, the project dependencies likely will not be available when trying to install from there.

Setup: configure access to repositories:
Setup: create an API token on PyPI (and on TestPyPI for test uploads) and pass it to uv:

```sh
# Create an API token, then add it
poetry config pypi-token.pypi <my-token>

# For testpypi
poetry config repositories.test-pypi https://test.pypi.org/legacy/
poetry config pypi-token.test-pypi <my-testpypi-token>
export UV_PUBLISH_TOKEN=<my-token>
```

To build and upload a new distribution:
Expand Down
Loading