Skip to content

Commit 6968e19

Browse files
feat: update python-libevdev to 0.13.1-1
1 parent 894e9af commit 6968e19

39 files changed

+5287
-1719
lines changed

.gitlab-ci.yml

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
# vim: set expandtab shiftwidth=2 tabstop=8 textwidth=0:
2+
3+
.templates_sha: &templates_sha aec7a6ce7bb38902c70641526f6611e27141784a
4+
5+
include:
6+
- project: 'freedesktop/ci-templates'
7+
ref: *templates_sha
8+
file: '/templates/fedora.yml'
9+
- project: 'freedesktop/ci-templates'
10+
ref: *templates_sha
11+
file: '/templates/ci-fairy.yml'
12+
13+
14+
workflow:
15+
rules:
16+
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
17+
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
18+
when: never
19+
- if: $CI_COMMIT_BRANCH
20+
21+
variables:
22+
FDO_UPSTREAM_REPO: 'libevdev/python-libevdev'
23+
24+
25+
stages:
26+
- prep
27+
- test
28+
- deploy
29+
30+
.policy:
31+
retry:
32+
max: 2
33+
when:
34+
- runner_system_failure
35+
- stuck_or_timeout_failure
36+
# cancel run when a newer version is pushed to the branch
37+
interruptible: true
38+
dependencies: []
39+
40+
.fedora:
41+
extends:
42+
- .policy
43+
variables:
44+
FDO_DISTRIBUTION_VERSION: 42
45+
FDO_DISTRIBUTION_TAG: '2025-11-14.0'
46+
FDO_DISTRIBUTION_PACKAGES: 'git python3 python3.9 python3.10 python3.11 python3-pytest python3-pytest-timeout libevdev virtme-ng qemu-img qemu-system-x86-core binutils file systemd-udev uv python3-hatchling'
47+
48+
#
49+
# Verify that commit messages are as expected, etc.
50+
#
51+
52+
check-commit:
53+
extends:
54+
- .fdo.ci-fairy
55+
stage: prep
56+
script:
57+
- ci-fairy check-commits --junit-xml=results.xml
58+
except:
59+
- master@libevdev/python-libevdev
60+
variables:
61+
GIT_DEPTH: 100
62+
artifacts:
63+
reports:
64+
junit: results.xml
65+
66+
container-prep:
67+
extends:
68+
- .fedora
69+
- .fdo.container-build@fedora
70+
stage: prep
71+
variables:
72+
GIT_STRATEGY: none
73+
74+
pre-commit-hooks:
75+
extends:
76+
- .fdo.ci-fairy
77+
stage: prep
78+
script:
79+
- python3 -m venv venv
80+
- source venv/bin/activate
81+
- pip3 install pre-commit
82+
- pre-commit run --all-files
83+
- git diff --exit-code || (echo "ERROR - Code style errors found, please fix" && false)
84+
85+
pytest:
86+
extends:
87+
- .fedora
88+
- .fdo.distribution-image@fedora
89+
stage: test
90+
tags:
91+
- kvm
92+
parallel:
93+
matrix:
94+
# We tests the ones most likely to break and the current default
95+
- PYTHON_VERSION: ["3", "3.9", "3.10", "3.11"]
96+
variables:
97+
VNG_KERNEL: https://gitlab.freedesktop.org/api/v4/projects/libevdev%2Fhid-tools/packages/generic/kernel-x86_64/v6.14/bzImage
98+
script:
99+
- curl -LO $VNG_KERNEL
100+
- export -p > .vngenv
101+
- uv sync --python $PYTHON_VERSION
102+
- uv add --dev pytest-timeout
103+
- |
104+
vng --exec "source $PWD/.vngenv; rm $PWD/.vngenv; uv run --python $PYTHON_VERSION pytest --verbose --junit-xml=results.xml --session-timeout=600" \
105+
--run ./bzImage \
106+
--user root \
107+
--overlay-rwdir=$HOME \
108+
--append HOME=$HOME \
109+
--overlay-rwdir=$(pwd)
110+
artifacts:
111+
when: always
112+
reports:
113+
junit: results.xml
114+
115+
install:
116+
extends:
117+
- .fedora
118+
- .fdo.distribution-image@fedora
119+
stage: test
120+
needs:
121+
- container-prep
122+
script:
123+
- uv pip install --system .

.pre-commit-config.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v6.0.0
4+
hooks:
5+
- id: end-of-file-fixer
6+
- id: trailing-whitespace
7+
- repo: https://github.com/astral-sh/ruff-pre-commit
8+
rev: v0.14.5
9+
hooks:
10+
- id: ruff-check
11+
- id: ruff-format

.readthedocs.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Read the Docs configuration file
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
# Required
5+
version: 2
6+
7+
# Set the version of Python and other tools you might need
8+
build:
9+
os: ubuntu-22.04
10+
tools:
11+
python: "3.11"
12+
13+
# Build documentation in the docs/ directory with Sphinx
14+
sphinx:
15+
configuration: doc/source/conf.py
16+
17+
# We recommend specifying your dependencies to enable reproducible builds:
18+
# https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
19+
python:
20+
install:
21+
- requirements: doc/requirements.txt

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Source code
1818
-----------
1919

2020
The source code of python-libevdev can be found at:
21-
http://github.com/whot/python-libevdev
21+
https://gitlab.freedesktop.org/libevdev/python-libevdev
2222

2323
License
2424
-------
@@ -32,5 +32,5 @@ python-libevdev is licensed under the MIT license.
3232
> and/or sell copies of the Software, and to permit persons to whom the
3333
> Software is furnished to do so, subject to the following conditions: [...]
3434
35-
See the [COPYING](http://github.com/whot/python-libevdev/blob/master/COPYING)
35+
See the [COPYING](https://gitlab.freedesktop.org/libevdev/python-libevdev/blob/master/COPYING)
3636
file for the full license information.

debian/changelog

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
1+
python-libevdev (0.13.1-1) unstable; urgency=medium
2+
3+
* New upstream release, switching to pyproject (with hatchling) and
4+
pytest.
5+
* Drop “Rules-Requires-Root: no” since it’s now the default.
6+
7+
-- Stephen Kitt <[email protected]> Mon, 17 Nov 2025 19:14:13 +0100
8+
9+
python-libevdev (0.12-1) unstable; urgency=medium
10+
11+
* New upstream release, merging intersphinx-mapping.patch.
12+
* Add “Built-Using” information to track the Sphinx version used to
13+
build the documentation package.
14+
* Standards-Version 4.7.2, no change required.
15+
16+
-- Stephen Kitt <[email protected]> Tue, 02 Sep 2025 18:58:35 +0200
17+
18+
python-libevdev (0.11-2) unstable; urgency=medium
19+
20+
* Fix the intersphinx mapping declaration. Closes: #1090147.
21+
* Update debian/watch to handle recent GitLab changes.
22+
* Standards-Version 4.7.0, no change required.
23+
24+
-- Stephen Kitt <[email protected]> Tue, 17 Dec 2024 13:42:01 +0100
25+
26+
python-libevdev (0.11-1) unstable; urgency=medium
27+
28+
* New upstream release.
29+
* Track new upstream location.
30+
* Standards-Version 4.6.2, no change required.
31+
32+
-- Stephen Kitt <[email protected]> Thu, 07 Mar 2024 13:07:44 +0100
33+
134
python-libevdev (0.5-3) unstable; urgency=low
235

336
[ Debian Janitor ]

debian/control

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@ Priority: optional
55
Build-Depends: debhelper-compat (= 13),
66
dh-python,
77
libevdev-dev,
8+
pybuild-plugin-pyproject,
89
python3-all,
9-
python3-setuptools,
10+
python3-hatchling,
11+
python3-pytest,
1012
python3-sphinx,
1113
python3-sphinx-rtd-theme
12-
Standards-Version: 4.5.1
14+
Standards-Version: 4.7.2
1315
Vcs-Browser: https://salsa.debian.org/debian/python-libevdev
1416
Vcs-Git: https://salsa.debian.org/debian/python-libevdev.git
15-
Homepage: https://github.com/whot/python-libevdev
17+
Homepage: https://gitlab.freedesktop.org/libevdev/python-libevdev
1618
Testsuite: autopkgtest-pkg-python
17-
Rules-Requires-Root: no
1819

1920
Package: python3-libevdev
2021
Architecture: all
@@ -42,6 +43,7 @@ Architecture: all
4243
Section: doc
4344
Depends: ${sphinxdoc:Depends},
4445
${misc:Depends}
46+
Built-Using: ${sphinxdoc:Built-Using}
4547
Description: Python wrapper for libevdev (common documentation)
4648
This is a Python wrapper around libevdev, a wrapper library for evdev
4749
devices. It provides a simpler API around evdev and takes advantage

debian/copyright

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
22
Upstream-Name: python-libevdev
3-
Source: https://github.com/whot/python-libevdev
3+
Source: https://gitlab.freedesktop.org/libevdev/python-libevdev
44

55
Files: *
6-
Copyright: 2016-2018 Red Hat, Inc.
6+
Copyright: 2016-2022 Red Hat, Inc.
77
License: MIT
88

99
Files: debian/*
10-
Copyright: 2018 Stephen Kitt <[email protected]>
10+
Copyright: 2018, 2020-2021, 2024-2025 Stephen Kitt <[email protected]>
1111
License: MIT
1212

1313
License: MIT

debian/gbp.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Configuration file for git-buildpackage and friends
2+
3+
[DEFAULT]
4+
pristine-tar = True
5+
upstream-vcs-tag = %(version)s

debian/upstream/metadata

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
Bug-Database: https://github.com/whot/python-libevdev/issues
3-
Bug-Submit: https://github.com/whot/python-libevdev/issues/new
4-
Repository: https://github.com/whot/python-libevdev.git
5-
Repository-Browse: https://github.com/whot/python-libevdev
2+
Bug-Database: https://gitlab.freedesktop.org/libevdev/python-libevdev/-/issues
3+
Bug-Submit: https://gitlab.freedesktop.org/libevdev/python-libevdev/-/issues/new
4+
Repository: https://gitlab.freedesktop.org/libevdev/python-libevdev.git
5+
Repository-Browse: https://gitlab.freedesktop.org/libevdev/python-libevdev

debian/watch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
version=4
22

3-
opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%python-libevdev-$1.tar.gz%" \
4-
https://github.com/whot/python-libevdev/tags \
5-
(?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate
3+
opts="searchmode=plain" \
4+
https://gitlab.freedesktop.org/libevdev/@PACKAGE@/tags?sort=updated_desc \
5+
-/archive/[^/]+/@PACKAGE@@ANY_VERSION@@ARCHIVE_EXT@

0 commit comments

Comments
 (0)