-
Notifications
You must be signed in to change notification settings - Fork 72
chore: modernise library #156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
mttbernardini
wants to merge
29
commits into
larsimmisch:main
Choose a base branch
from
mttbernardini:chore/modern-packaging
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
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 807c36d
chore: move unit tests to conventional directory
mttbernardini aea0fc6
chore: modernise packaging.
mttbernardini 2e0f952
fix: include doc/ and examples/ in sdist
mttbernardini 1670c6b
fix: add `ALSAAudioError` to type stubs
mttbernardini be7e203
chore(deps): add `pyright` for type-checking
mttbernardini 177d9e1
fix: missing `self` in type stubs
mttbernardini 2b090f0
fix: use `Final` for enum constants
mttbernardini b3730bc
chore(deps): add `mypy` (for `stubtest` utility)
mttbernardini a9cb7d8
fix: stub consistency to runtime
mttbernardini fb17a4e
fix(docs): add `sphinx` dep, fix version retrieval
mttbernardini 0aa35bc
fix: `PCM` constructor stubs not coherent with runtime
mttbernardini 39846bf
chore: make `pyright` happy on tests
mttbernardini 4c75488
ci: workflow to automate releases on tags
mttbernardini b4e2ea4
chore: top-level makefile for common dev tasks
mttbernardini 8c693f4
chore: stub workflow for automatic docs deployment
mttbernardini 68203e9
ci: ensure alsa headers are installed
mttbernardini a3db924
ci: enforce `setuptools` version
mttbernardini 1dfbc37
ci: use legacy `license` definition to allow building on py3.9
mttbernardini 06e67cc
ci: auto-detect package manager to use
mttbernardini 112885e
ci: remove unsupported setting
mttbernardini c89faf5
chore: split dependency groups
mttbernardini 5e29c0d
ci: automatically build docs
mttbernardini 06a8137
ci: install `uv`
mttbernardini e5f4008
ci: install ALSA headers
mttbernardini 3889f27
ci: fix permissions
mttbernardini f0d9d2a
ci: deploy on tags only
mttbernardini 04d6f8c
fix: drop py2 trove classifier
mttbernardini daf38e3
chore: use makefile for reference on building sdist and wheels
mttbernardini File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,5 +10,5 @@ build/ | |
| dist/ | ||
| .vscode/ | ||
| /__pycache__/ | ||
| /pyalsaaudio.egg-info/ | ||
| *.egg-info/ | ||
| *.raw | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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/ |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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", | ||
| ] | ||
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.