mirror of
https://github.com/larsimmisch/pyalsaaudio.git
synced 2026-06-02 03:17:01 +00:00
Compare commits
33 Commits
main
..
0.11.0-test
| Author | SHA1 | Date | |
|---|---|---|---|
| a52176f53d | |||
| 53612191d9 | |||
| eaa0e33999 | |||
| 1cd978f15f | |||
| daf38e38cf | |||
| 04d6f8c9d7 | |||
| f0d9d2a7a8 | |||
| 3889f27891 | |||
| e5f400866b | |||
| 06a81377a3 | |||
| 5e29c0dfe5 | |||
| c89faf517b | |||
| 112885e97a | |||
| 06e67cc533 | |||
| 1dfbc37135 | |||
| a3db924109 | |||
| 68203e9187 | |||
| 8c693f4843 | |||
| b4e2ea4fd5 | |||
| 4c75488b47 | |||
| 39846bfb3e | |||
| 0aa35bc379 | |||
| fb17a4e9af | |||
| a9cb7d8437 | |||
| b3730bc713 | |||
| 2b090f05fa | |||
| 177d9e147d | |||
| be7e203fdb | |||
| 1670c6b1a3 | |||
| 2e0f952475 | |||
| aea0fc62e8 | |||
| 807c36d133 | |||
| d86f379554 |
@@ -2,7 +2,7 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- mttbernardini/chore/modern-packaging
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: "pages"
|
group: "pages"
|
||||||
|
|||||||
@@ -42,7 +42,8 @@ jobs:
|
|||||||
upload_pypi:
|
upload_pypi:
|
||||||
needs: [build_wheels, build_sdist]
|
needs: [build_wheels, build_sdist]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: pypi
|
# TODO: set environment back to pypi after testing
|
||||||
|
environment: testpypi
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write
|
id-token: write
|
||||||
steps:
|
steps:
|
||||||
@@ -53,3 +54,6 @@ 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/
|
||||||
|
|||||||
@@ -46,9 +46,14 @@ First, get the sources and change to the source directory:
|
|||||||
$ cd pyalsaaudio
|
$ cd pyalsaaudio
|
||||||
```
|
```
|
||||||
|
|
||||||
Then, build and install:
|
Then, build:
|
||||||
```
|
```
|
||||||
$ pip install .
|
$ python setup.py build
|
||||||
|
```
|
||||||
|
|
||||||
|
And install:
|
||||||
|
```
|
||||||
|
$ sudo python setup.py install
|
||||||
```
|
```
|
||||||
|
|
||||||
# Using the API
|
# Using the API
|
||||||
@@ -57,8 +62,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](./examples/playwav.py) plays back a wav file
|
* [playwav.py](https://github.com/larsimmisch/pyalsaaudio/blob/master/playwav.py) plays back a wav file
|
||||||
* [playbacktest.py](./examples/playbacktest.py) plays back raw sound data read from stdin
|
* [playbacktest.py](https://github.com/larsimmisch/pyalsaaudio/blob/master/playbacktest.py) plays back raw sound data read from stdin
|
||||||
* [recordtest.py](./examples/recordtest.py) captures sound from the microphone and writes
|
* [recordtest.py](https://github.com/larsimmisch/pyalsaaudio/blob/master/recordtest.py) captures sound from the microphone and writes
|
||||||
it raw to stdout.
|
it raw to stdout.
|
||||||
* [mixertest.py](./examples/mixertest.py) can be used to manipulate the mixers.
|
* [mixertest.py](https://github.com/larsimmisch/pyalsaaudio/blob/master/mixertest.py) can be used to manipulate the mixers.
|
||||||
|
|||||||
+18
-8
@@ -1,18 +1,28 @@
|
|||||||
# Make a new release
|
# Make a new release
|
||||||
|
|
||||||
Create and push a tag naming the version (i.e. 0.11.1):
|
Update the version in setup.py
|
||||||
|
|
||||||
git tag 0.11.1
|
pyalsa_version = '0.9.0'
|
||||||
git push origin 0.11.1
|
|
||||||
|
|
||||||
This should trigger a build via a github actions and publish pre-built binaries to pypi.org
|
Commit and push the update.
|
||||||
|
|
||||||
|
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,6 +807,9 @@ 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
|
||||||
~~~~~~~~~~~~
|
~~~~~~~~~~~~
|
||||||
|
|
||||||
|
|||||||
+6
-2
@@ -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 (and probably Ubuntu), install libasound2-dev.*
|
*On Debian/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,7 +86,11 @@ ship with ALSA kernels.
|
|||||||
|
|
||||||
To install, execute the following: --- ::
|
To install, execute the following: --- ::
|
||||||
|
|
||||||
$ pip install .
|
$ python setup.py build
|
||||||
|
|
||||||
|
And then as root: --- ::
|
||||||
|
|
||||||
|
# python setup.py install
|
||||||
|
|
||||||
|
|
||||||
*******
|
*******
|
||||||
|
|||||||
Reference in New Issue
Block a user