mirror of
https://github.com/onyx-and-iris/xair-api-python.git
synced 2026-03-03 17:09:10 +00:00
Compare commits
No commits in common. "deb298537f120638fd8e9320b2b77d752d28bd17" and "39f3a9dd98b255b727c39c8e15adace957034fc7" have entirely different histories.
deb298537f
...
39f3a9dd98
53
.github/workflows/publish.yml
vendored
53
.github/workflows/publish.yml
vendored
@ -1,53 +0,0 @@
|
|||||||
name: Publish to PyPI
|
|
||||||
|
|
||||||
on:
|
|
||||||
release:
|
|
||||||
types: [published]
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- 'v*.*.*'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: '3.11'
|
|
||||||
|
|
||||||
- name: Install Poetry
|
|
||||||
run: |
|
|
||||||
pip install poetry==2.3.1
|
|
||||||
poetry --version
|
|
||||||
|
|
||||||
- name: Build package
|
|
||||||
run: |
|
|
||||||
poetry install --only-root
|
|
||||||
poetry build
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: dist
|
|
||||||
path: ./dist
|
|
||||||
|
|
||||||
pypi-publish:
|
|
||||||
needs: build
|
|
||||||
name: Upload release to PyPI
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
environment:
|
|
||||||
name: pypi
|
|
||||||
url: https://pypi.org/p/xair-api
|
|
||||||
permissions:
|
|
||||||
id-token: write
|
|
||||||
steps:
|
|
||||||
- uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
name: dist
|
|
||||||
path: ./dist
|
|
||||||
|
|
||||||
- name: Publish package distributions to PyPI
|
|
||||||
uses: pypa/gh-action-pypi-publish@release/v1
|
|
||||||
with:
|
|
||||||
packages-dir: ./dist
|
|
||||||
19
.github/workflows/ruff.yml
vendored
19
.github/workflows/ruff.yml
vendored
@ -1,19 +0,0 @@
|
|||||||
name: Ruff
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
pull_request:
|
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
ruff:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: astral-sh/ruff-action@v3
|
|
||||||
with:
|
|
||||||
args: 'format --check --diff'
|
|
||||||
@ -1,18 +1,20 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "xair-api"
|
name = "xair-api"
|
||||||
version = "2.4.2"
|
version = "2.4.1"
|
||||||
description = "Remote control Behringer X-Air | Midas MR mixers through OSC"
|
description = "Remote control Behringer X-Air | Midas MR mixers through OSC"
|
||||||
authors = [{ name = "Onyx and Iris", email = "code@onyxandiris.online" }]
|
authors = [
|
||||||
license = { text = "MIT" }
|
{name = "Onyx and Iris",email = "code@onyxandiris.online"}
|
||||||
|
]
|
||||||
|
license = {text = "MIT"}
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.10"
|
requires-python = ">=3.10"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"python-osc (>=1.9.3,<2.0.0)",
|
"python-osc (>=1.9.3,<2.0.0)",
|
||||||
"tomli (>=2.0.1,<3.0) ; python_version < '3.11'",
|
"tomli (>=2.0.1,<3.0) ; python_version < '3.11'"
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.poetry.requires-plugins]
|
[tool.poetry.requires-plugins]
|
||||||
poethepoet = "^0.35.0"
|
poethepoet = "^0.32.1"
|
||||||
|
|
||||||
[tool.poetry.group.dev.dependencies]
|
[tool.poetry.group.dev.dependencies]
|
||||||
pytest = "^8.3.4"
|
pytest = "^8.3.4"
|
||||||
@ -135,4 +137,7 @@ docstring-code-line-length = "dynamic"
|
|||||||
max-complexity = 10
|
max-complexity = 10
|
||||||
|
|
||||||
[tool.ruff.lint.per-file-ignores]
|
[tool.ruff.lint.per-file-ignores]
|
||||||
"__init__.py" = ["E402", "F401"]
|
"__init__.py" = [
|
||||||
|
"E402",
|
||||||
|
"F401",
|
||||||
|
]
|
||||||
|
|||||||
@ -525,8 +525,7 @@ class EQ:
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def quality(self) -> float:
|
def quality(self) -> float:
|
||||||
raw_value = self.getter('q')[0]
|
retval = util.log_get(0.3, 10, self.getter('q')[0])
|
||||||
retval = util.log_get(0.3, 10, 1.0 - raw_value)
|
|
||||||
return round(retval, 1)
|
return round(retval, 1)
|
||||||
|
|
||||||
@quality.setter
|
@quality.setter
|
||||||
@ -535,7 +534,7 @@ class EQ:
|
|||||||
self.logger.warning(
|
self.logger.warning(
|
||||||
f'quality got {val}, expected value in range 0.3 to 10.0'
|
f'quality got {val}, expected value in range 0.3 to 10.0'
|
||||||
)
|
)
|
||||||
self.setter('q', 1.0 - util.log_set(0.3, 10, val))
|
self.setter('q', util.log_set(0.3, 10, val))
|
||||||
|
|
||||||
|
|
||||||
class GEQ:
|
class GEQ:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user