diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 9d261b2..59d446d 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -37,4 +37,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 \ No newline at end of file + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 52117af..19fa321 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,8 +16,10 @@ jobs: - ubuntu-24.04-arm steps: - uses: actions/checkout@v5 + - name: Install uv + uses: astral-sh/setup-uv@v6 - name: Build wheels - run: pipx run cibuildwheel==3.1.4 + run: make build_wheels - uses: actions/upload-artifact@v4 with: name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} @@ -28,8 +30,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 + - name: Install uv + uses: astral-sh/setup-uv@v6 - name: Build sdist - run: pipx run build --sdist + run: make build_sdist - uses: actions/upload-artifact@v4 with: name: cibw-sdist @@ -51,4 +55,4 @@ jobs: - uses: pypa/gh-action-pypi-publish@release/v1 # TODO: delete below once workflow is proved functional with: - repository-url: https://test.pypi.org/legacy/ \ No newline at end of file + repository-url: https://test.pypi.org/legacy/ diff --git a/.gitignore b/.gitignore index 3b79f24..5aaf4f4 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,4 @@ wheelhouse/ .vscode/ /__pycache__/ *.egg-info/ -*.raw \ No newline at end of file +*.raw diff --git a/MANIFEST.in b/MANIFEST.in index 4fceca0..53d27c5 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,2 +1,2 @@ graft doc/ -graft examples/ \ No newline at end of file +graft examples/ diff --git a/Makefile b/Makefile index 3534075..e599ec5 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,16 @@ -.PHONY: lint test +.PHONY: lint test build_wheels build_sdist build lint: - uv run --group lint pyright - uv run --group lint stubtest + uv run --group lint pyright; \ + uv run --group lint stubtest alsaaudio test: uv run tests/test.py + +build_wheels: + uvx cibuildwheel==3.1.4 + +build_sdist: + uv build --sdist + +build: build_sdist build_wheels