forked from auracaster/pyalsaaudio
chore: use makefile for reference on building sdist and wheels
This commit is contained in:
2
.github/workflows/docs.yml
vendored
2
.github/workflows/docs.yml
vendored
@@ -37,4 +37,4 @@ jobs:
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v4
|
||||
uses: actions/deploy-pages@v4
|
||||
|
||||
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
@@ -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/
|
||||
repository-url: https://test.pypi.org/legacy/
|
||||
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -12,4 +12,4 @@ wheelhouse/
|
||||
.vscode/
|
||||
/__pycache__/
|
||||
*.egg-info/
|
||||
*.raw
|
||||
*.raw
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
graft doc/
|
||||
graft examples/
|
||||
graft examples/
|
||||
|
||||
14
Makefile
14
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
|
||||
|
||||
Reference in New Issue
Block a user