Skip to content

build: package alsaaudio properly and ship typing stubs#161

Open
Robolightning wants to merge 1 commit into
larsimmisch:mainfrom
StableKite:main
Open

build: package alsaaudio properly and ship typing stubs#161
Robolightning wants to merge 1 commit into
larsimmisch:mainfrom
StableKite:main

Conversation

@Robolightning

Copy link
Copy Markdown

Summary

This PR refactors pyalsaaudio into a proper package-based layout and fixes distribution of typing metadata.

Changes

  • moved the native module into alsaaudio._alsaaudio
  • added alsaaudio/__init__.py to preserve the public API
  • installed stubs together with the package
  • added py.typed
  • allowed non-Linux platforms to install a stub-only package
  • improved several type annotations

Motivation

Previously, the stubs were not installed correctly, because the project was packaged as a standalone extension module rather than a regular package. This change makes typing support work reliably and keeps installation behavior cleaner across platforms.

@ossilator

Copy link
Copy Markdown
Collaborator

looks sensible judging by a quick inspection.

given the bullet list, it seem that this PR can be atomized into a series of self-contained commits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants