mirror of
https://github.com/larsimmisch/pyalsaaudio.git
synced 2026-06-01 10:57:01 +00:00
Compare commits
32 Commits
0.11.0-test
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 8bcf03f288 | |||
| 2a2fa8f742 | |||
| acc6f152a3 | |||
| 0d6e0e7bb4 | |||
| 4f3c299e53 | |||
| e78c145d9e | |||
| 6acae81487 | |||
| 5eed8adfe5 | |||
| e3e51cc34d | |||
| f6f53ce92a | |||
| 38d0882379 | |||
| 6822cffcc8 | |||
| 8c1e370e04 | |||
| 6d17bc92b7 | |||
| 3e41a9eb97 | |||
| df8886dde1 | |||
| aac2843f73 | |||
| 7987986ee4 | |||
| ae93ddc48e | |||
| a48389b750 | |||
| 0b8db5f46d | |||
| 6b2c4c22db | |||
| a7896ee069 | |||
| ed83b3e29b | |||
| e96f550862 | |||
| 40f4647d8c | |||
| 3a8c53851d | |||
| f6770e3a42 | |||
| 0ac28e9eea | |||
| fdc5f3782e | |||
| 6efef83429 | |||
| df5c2f4685 |
@@ -2,7 +2,7 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- mttbernardini/chore/modern-packaging
|
- main
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: "pages"
|
group: "pages"
|
||||||
|
|||||||
@@ -42,8 +42,7 @@ jobs:
|
|||||||
upload_pypi:
|
upload_pypi:
|
||||||
needs: [build_wheels, build_sdist]
|
needs: [build_wheels, build_sdist]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# TODO: set environment back to pypi after testing
|
environment: pypi
|
||||||
environment: testpypi
|
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write
|
id-token: write
|
||||||
steps:
|
steps:
|
||||||
@@ -54,6 +53,3 @@ jobs:
|
|||||||
path: dist
|
path: dist
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
- uses: pypa/gh-action-pypi-publish@release/v1
|
- uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
# TODO: delete below once workflow is proved functional
|
|
||||||
with:
|
|
||||||
repository-url: https://test.pypi.org/legacy/
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
For documentation, see http://larsimmisch.github.io/pyalsaaudio/
|
For documentation, see http://larsimmisch.github.io/pyalsaaudio/
|
||||||
|
|
||||||
> Author: Casper Wilstrup (cwi@aves.dk)
|
> Author: Casper Wilstrup (cwi@aves.dk)
|
||||||
> Maintainer: Lars Immisch (lars@ibp.de)
|
> Maintainer: Lars Immisch (lars@ibp.de)
|
||||||
|
|
||||||
This package contains wrappers for accessing the
|
This package contains wrappers for accessing the
|
||||||
@@ -46,14 +46,9 @@ First, get the sources and change to the source directory:
|
|||||||
$ cd pyalsaaudio
|
$ cd pyalsaaudio
|
||||||
```
|
```
|
||||||
|
|
||||||
Then, build:
|
Then, build and install:
|
||||||
```
|
```
|
||||||
$ python setup.py build
|
$ pip install .
|
||||||
```
|
|
||||||
|
|
||||||
And install:
|
|
||||||
```
|
|
||||||
$ sudo python setup.py install
|
|
||||||
```
|
```
|
||||||
|
|
||||||
# Using the API
|
# Using the API
|
||||||
@@ -62,8 +57,8 @@ distribution; it is also online on [http://larsimmisch.github.io/pyalsaaudio/](h
|
|||||||
|
|
||||||
There are some example programs included with the source:
|
There are some example programs included with the source:
|
||||||
|
|
||||||
* [playwav.py](https://github.com/larsimmisch/pyalsaaudio/blob/master/playwav.py) plays back a wav file
|
* [playwav.py](./examples/playwav.py) plays back a wav file
|
||||||
* [playbacktest.py](https://github.com/larsimmisch/pyalsaaudio/blob/master/playbacktest.py) plays back raw sound data read from stdin
|
* [playbacktest.py](./examples/playbacktest.py) plays back raw sound data read from stdin
|
||||||
* [recordtest.py](https://github.com/larsimmisch/pyalsaaudio/blob/master/recordtest.py) captures sound from the microphone and writes
|
* [recordtest.py](./examples/recordtest.py) captures sound from the microphone and writes
|
||||||
it raw to stdout.
|
it raw to stdout.
|
||||||
* [mixertest.py](https://github.com/larsimmisch/pyalsaaudio/blob/master/mixertest.py) can be used to manipulate the mixers.
|
* [mixertest.py](./examples/mixertest.py) can be used to manipulate the mixers.
|
||||||
|
|||||||
+8
-18
@@ -1,28 +1,18 @@
|
|||||||
# Make a new release
|
# Make a new release
|
||||||
|
|
||||||
Update the version in setup.py
|
Create and push a tag naming the version (i.e. 0.11.1):
|
||||||
|
|
||||||
pyalsa_version = '0.9.0'
|
git tag 0.11.1
|
||||||
|
git push origin 0.11.1
|
||||||
|
|
||||||
Commit and push the update.
|
This should trigger a build via a github actions and publish pre-built binaries to pypi.org
|
||||||
|
|
||||||
Create and push a tag naming the version (i.e. 0.9.0):
|
|
||||||
|
|
||||||
git tag 0.9.0
|
|
||||||
git push origin 0.9.0
|
|
||||||
|
|
||||||
Create the package:
|
|
||||||
|
|
||||||
python3 setup.py sdist
|
|
||||||
|
|
||||||
Upload the package
|
|
||||||
|
|
||||||
twine upload dist/*
|
|
||||||
|
|
||||||
Don't forget to update the documentation.
|
|
||||||
|
|
||||||
# Publish the documentation
|
# Publish the documentation
|
||||||
|
|
||||||
|
All commits to main should trigger a rebuild of the documentation.
|
||||||
|
|
||||||
|
## Historical background
|
||||||
|
|
||||||
The documentation is published through the `gh-pages` branch.
|
The documentation is published through the `gh-pages` branch.
|
||||||
|
|
||||||
To publish the documentation, you need to clone the `gh-pages` branch of this repository into
|
To publish the documentation, you need to clone the `gh-pages` branch of this repository into
|
||||||
|
|||||||
@@ -807,9 +807,6 @@ Play back the recording with::
|
|||||||
|
|
||||||
$ python playbacktest.py <filename>
|
$ python playbacktest.py <filename>
|
||||||
|
|
||||||
playbacktest.py accepts the commandline option
|
|
||||||
*-d <device>*.
|
|
||||||
|
|
||||||
mixertest.py
|
mixertest.py
|
||||||
~~~~~~~~~~~~
|
~~~~~~~~~~~~
|
||||||
|
|
||||||
|
|||||||
+2
-6
@@ -77,7 +77,7 @@ Note: the wrappers link with the alsasound library (from the alsa-lib package)
|
|||||||
and need the ALSA headers for compilation. Verify that you have
|
and need the ALSA headers for compilation. Verify that you have
|
||||||
/usr/lib/libasound.so and /usr/include/alsa (or similar paths) before building.
|
/usr/lib/libasound.so and /usr/include/alsa (or similar paths) before building.
|
||||||
|
|
||||||
*On Debian/Ubuntu, install libasound2-dev.*
|
*On Debian (and probably Ubuntu), install libasound2-dev.*
|
||||||
|
|
||||||
Naturally you also need to use a kernel with proper ALSA support. This is the
|
Naturally you also need to use a kernel with proper ALSA support. This is the
|
||||||
default in Linux kernel 2.6 and later. If you are using kernel version 2.4 you
|
default in Linux kernel 2.6 and later. If you are using kernel version 2.4 you
|
||||||
@@ -86,11 +86,7 @@ ship with ALSA kernels.
|
|||||||
|
|
||||||
To install, execute the following: --- ::
|
To install, execute the following: --- ::
|
||||||
|
|
||||||
$ python setup.py build
|
$ pip install .
|
||||||
|
|
||||||
And then as root: --- ::
|
|
||||||
|
|
||||||
# python setup.py install
|
|
||||||
|
|
||||||
|
|
||||||
*******
|
*******
|
||||||
|
|||||||
Reference in New Issue
Block a user