Skip to content
Draft
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
d86f379
chore: move examples to dedicated directory
mttbernardini Aug 6, 2025
807c36d
chore: move unit tests to conventional directory
mttbernardini Aug 6, 2025
aea0fc6
chore: modernise packaging.
mttbernardini Aug 6, 2025
2e0f952
fix: include doc/ and examples/ in sdist
mttbernardini Aug 6, 2025
1670c6b
fix: add `ALSAAudioError` to type stubs
mttbernardini Aug 6, 2025
be7e203
chore(deps): add `pyright` for type-checking
mttbernardini Aug 6, 2025
177d9e1
fix: missing `self` in type stubs
mttbernardini Aug 6, 2025
2b090f0
fix: use `Final` for enum constants
mttbernardini Aug 6, 2025
b3730bc
chore(deps): add `mypy` (for `stubtest` utility)
mttbernardini Aug 6, 2025
a9cb7d8
fix: stub consistency to runtime
mttbernardini Aug 6, 2025
fb17a4e
fix(docs): add `sphinx` dep, fix version retrieval
mttbernardini Aug 6, 2025
0aa35bc
fix: `PCM` constructor stubs not coherent with runtime
mttbernardini Aug 6, 2025
39846bf
chore: make `pyright` happy on tests
mttbernardini Aug 6, 2025
4c75488
ci: workflow to automate releases on tags
mttbernardini Aug 24, 2025
b4e2ea4
chore: top-level makefile for common dev tasks
mttbernardini Aug 24, 2025
8c693f4
chore: stub workflow for automatic docs deployment
mttbernardini Aug 24, 2025
68203e9
ci: ensure alsa headers are installed
mttbernardini Sep 2, 2025
a3db924
ci: enforce `setuptools` version
mttbernardini Sep 3, 2025
1dfbc37
ci: use legacy `license` definition to allow building on py3.9
mttbernardini Sep 3, 2025
06e67cc
ci: auto-detect package manager to use
mttbernardini Sep 3, 2025
112885e
ci: remove unsupported setting
mttbernardini Sep 3, 2025
c89faf5
chore: split dependency groups
mttbernardini Sep 3, 2025
5e29c0d
ci: automatically build docs
mttbernardini Sep 3, 2025
06a8137
ci: install `uv`
mttbernardini Sep 3, 2025
e5f4008
ci: install ALSA headers
mttbernardini Sep 3, 2025
3889f27
ci: fix permissions
mttbernardini Sep 3, 2025
f0d9d2a
ci: deploy on tags only
mttbernardini Sep 3, 2025
04d6f8c
fix: drop py2 trove classifier
mttbernardini Sep 3, 2025
daf38e3
chore: use makefile for reference on building sdist and wheels
mttbernardini Sep 3, 2025
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 .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ build/
dist/
.vscode/
/__pycache__/
/pyalsaaudio.egg-info/
*.egg-info/
*.raw
8 changes: 2 additions & 6 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
include *.py
include *.pyi
include CHANGES
include TODO
include LICENSE
recursive-include doc *.html *.gif *.png *.css *.py *.rst *.js *.json Makefile
graft doc/
graft examples/
135 changes: 0 additions & 135 deletions alsaaudio.pyi

This file was deleted.

5 changes: 2 additions & 3 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@
# import sys
# sys.path.insert(0, os.path.abspath('.'))

import sys
sys.path.insert(0, '..')
from setup import pyalsa_version
from importlib.metadata import version
pyalsa_version = version("pyalsaaudio")


# -- General configuration ------------------------------------------------
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
54 changes: 54 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
[project]
name = "pyalsaaudio"
version = "0.11.0"
description = "ALSA bindings"
readme.text = """
This package contains wrappers for accessing the ALSA API from Python.
It is fairly complete for PCM devices and Mixer access.
"""
readme.content-type = "text/plain"
license="PSF-2.0"
license-files=["LICENSE"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Multimedia :: Sound/Audio",
"Topic :: Multimedia :: Sound/Audio :: Mixers",
"Topic :: Multimedia :: Sound/Audio :: Players",
"Topic :: Multimedia :: Sound/Audio :: Capture/Recording",
]

[[project.authors]]
name = "Casper Wilstrup"
email = "[email protected]"

[[project.maintainers]]
name = "Lars Immisch"
email = "[email protected]"

[project.urls]
homepage = "http://larsimmisch.github.io/pyalsaaudio/"
source = "https://github.com/larsimmisch/pyalsaaudio"
documentation = "https://larsimmisch.github.io/pyalsaaudio/"
issues = "https://github.com/larsimmisch/pyalsaaudio/issues"


[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"


[tool.setuptools]
ext-modules = [
{ name = "alsaaudio", sources = ["src/alsaaudio.c"], libraries = ["asound"] }
]

[dependency-groups]
dev = [
"mypy>=1.17.1",
"pyright>=1.1.403",
"sphinx>=8.1.3",
]
40 changes: 0 additions & 40 deletions setup.py

This file was deleted.

Loading