chore(repo): baseline du fork input-remapper (upstream v2.2.1)

Le dépôt ne contenait que README.md ; ajout de l'intégralité du code
fonctionnel du fork comme socle stable de la branche de release.
L'état runtime d'orchestration (.ideai/) est exclu du suivi.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-18 00:47:12 +02:00
parent 1d790a78fb
commit 0ab77d2a64
257 changed files with 51859 additions and 0 deletions

32
scripts/badges.sh Executable file
View File

@ -0,0 +1,32 @@
#!/usr/bin/env bash
# pip install git+https://github.com/jongracecox/anybadge
coverage_badge() {
python3 -m coverage erase
python3 -m coverage run -m unittest discover -s ./tests/
python3 -m coverage combine
rating=$(python3 -m coverage report | tail -n 1 | ack "\d+%" -o | ack "\d+" -o)
echo "coverage rating: $rating"
rm readme/coverage.svg
python3 -m anybadge -l coverage -v $rating -f readme/coverage.svg coverage
python3 -m coverage report -m
echo "coverage badge created"
}
pylint_badge() {
pylint_output=$(python3 -m pylint inputremapper --extension-pkg-whitelist=evdev)
rating=$(echo $pylint_output | grep -Po "rated at .+?/" | grep -Po "\d+.\d+")
rm readme/pylint.svg
python3 -m anybadge -l pylint -v $rating -f readme/pylint.svg pylint
echo "pylint rating: $rating"
echo "pylint badge created"
}
pylint_badge &
coverage_badge &
# wait for all badges to be created
wait

17
scripts/build-deb.sh Executable file
View File

@ -0,0 +1,17 @@
#!/usr/bin/env bash
build_deb() {
# https://www.devdungeon.com/content/debian-package-tutorial-dpkgdeb
# that was really easy actually
rm build -r
mkdir dist | true
python3 -m install --root build/deb
find ./build -name "*.pyc" -delete
find ./build -empty -delete
cp ./DEBIAN build/deb -r
dpkg-deb -Z gzip -b build/deb dist/input-remapper-2.2.1.deb
}
build_deb

15
scripts/ci-install-deps.sh Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env bash
# Called from multiple CI pipelines in .github/workflows
set -xeuo pipefail
sudo apt update
# native deps
# gettext required to generate translations, others are python deps
sudo apt-get install -y gettext python3-evdev python3-dasbus python3-pydantic python3-gi gir1.2-gtk-3.0 gir1.2-gtksource-4
# ensure pip and setuptools/wheel up to date so can install all pip modules
sudo apt-get install python3-pip python3-wheel
# install test deps which aren't in pyproject.toml
python -m pip install psutil pylint-pydantic