forked from auracaster/pyalsaaudio
chore: use makefile for reference on building sdist and wheels
This commit is contained in:
committed by
Lars Immisch
parent
4f3c299e53
commit
0d6e0e7bb4
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
@@ -16,8 +16,10 @@ jobs:
|
|||||||
- ubuntu-24.04-arm
|
- ubuntu-24.04-arm
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
|
- name: Install uv
|
||||||
|
uses: astral-sh/setup-uv@v6
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
run: pipx run cibuildwheel==3.1.4
|
run: make build_wheels
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
|
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
|
||||||
@@ -28,8 +30,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
|
- name: Install uv
|
||||||
|
uses: astral-sh/setup-uv@v6
|
||||||
- name: Build sdist
|
- name: Build sdist
|
||||||
run: pipx run build --sdist
|
run: make build_sdist
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: cibw-sdist
|
name: cibw-sdist
|
||||||
|
|||||||
14
Makefile
14
Makefile
@@ -1,8 +1,16 @@
|
|||||||
.PHONY: lint test
|
.PHONY: lint test build_wheels build_sdist build
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
uv run --group lint pyright
|
uv run --group lint pyright; \
|
||||||
uv run --group lint stubtest
|
uv run --group lint stubtest alsaaudio
|
||||||
|
|
||||||
test:
|
test:
|
||||||
uv run tests/test.py
|
uv run tests/test.py
|
||||||
|
|
||||||
|
build_wheels:
|
||||||
|
uvx cibuildwheel==3.1.4
|
||||||
|
|
||||||
|
build_sdist:
|
||||||
|
uv build --sdist
|
||||||
|
|
||||||
|
build: build_sdist build_wheels
|
||||||
|
|||||||
Reference in New Issue
Block a user