22 Commits

Author SHA256 Message Date
Matthias Bach
7c7bb5b64a - Update to 1.9.2
* Use Generic to set precise type for InputDevice.path.
  * Allow supressing build-dependent information in ecodes.c.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evdev?expand=0&rev=40
2025-05-01 20:30:56 +00:00
Matthias Bach
14904a1655 - Update to 1.9.1
* Fix fox missing UI_FF constants in generated ecodes.py.
  * More type annotations.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evdev?expand=0&rev=38
2025-02-22 11:51:41 +00:00
Matthias Bach
4a6af80651 - Update to 1.9.0
* Slightly faster reading of events in device.read() and
    device.read_one().
  * Drop deprecated InputDevice.fn (use InputDevice.path instead).
  * Improve type hint coverage and add a py.typed file.
- Remove fix-tests.patch as it was included upstream.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evdev?expand=0&rev=36
2025-02-10 19:09:55 +00:00
Matthias Bach
03a4238387 - Update to 1.8.0
* The evdev.ecodes module is now generated at install time and
    contains only constants. This allows type checking and
    introspection of the evdev.ecodes module, without having to
    execute it first. The old module is available as
    evdev.ecodes_runtime.
  * Reverse mappings in evdev.ecodes that point to more than one
    value are now tuples instead of lists.
  * Fix keyboard delay and repeat being swapped.
  * Move the syn() convenience method from InputDevice to EventIO.
- Add fix-tests.patch to pull in test fixes that upstream only
  included after tagging their release.
- Switch source download during packaging from disabledrun to
  manualrun.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evdev?expand=0&rev=34
2025-01-29 19:57:20 +00:00
Matthias Bach
9ed0e70e66 - Update to 1.7.1
* Wait up to two seconds for uinput devices to appear.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evdev?expand=0&rev=32
2024-05-09 09:21:16 +00:00
Matthias Bach
3d1e4e4172 - Drop obsolete Leap 15.3 compatiblity handling in spec file.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evdev?expand=0&rev=30
2024-02-19 22:13:11 +00:00
Matthias Bach
bd119b3f49 - Update to 1.7.0
* Add the uniq address to the string representation of InputDevice.
  * Improved method for finding the device node corresponding to a
    uinput device
- Adjust package build to upstream's switch to pyproject.toml.
- Switch package to modern Python
  * On Python 3.6 there is no new enough setuptools anyhow.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evdev?expand=0&rev=29
2024-02-19 21:20:43 +00:00
686331202b Accepting request 1098361 from home:ecsos:python
- Add %{?sle15_python_module_pythons}

OBS-URL: https://build.opensuse.org/request/show/1098361
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evdev?expand=0&rev=27
2023-07-12 15:25:12 +00:00
Matthias Bach
e6c62eaf68 - Update to 1.6.1
* No changelog was made available.
- Fix source URL as upstream no longer creates Github releases but
  only tags.
- Add a _service file for easier source download.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evdev?expand=0&rev=25
2023-01-23 14:51:25 +00:00
Matthias Bach
e6ef68902c - Drop packaging for Python 2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evdev?expand=0&rev=23
2022-07-20 20:41:29 +00:00
Matthias Bach
34bb86038e - Update to 1.6.0
* Fix Python 3.11 compatibility

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evdev?expand=0&rev=22
2022-07-20 20:14:28 +00:00
Matthias Bach
c78fc088df Accepting request 965007 from home:theMarix:branches:devel:languages:python
- Update to 1.5.0
  * Input device is now closed from main thread in
    InputDevice.close()
  * util.find_ecodes_by_regex now works across all Python versions
- Drop evdev-re-Pattern.patch now included upstream

OBS-URL: https://build.opensuse.org/request/show/965007
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evdev?expand=0&rev=20
2022-03-26 11:33:33 +00:00
Matthias Bach
a29dc2eb4b - Work around broken pytest macro on Leap 15.3
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evdev?expand=0&rev=19
2022-01-10 20:22:47 +00:00
Matthias Bach
70a2cf9e7e Accepting request 884132 from home:bnavigator:branches:devel:languages:python
- Add evdev-re-Pattern.patch -- gh#gvalkov/python-evdev#152

OBS-URL: https://build.opensuse.org/request/show/884132
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evdev?expand=0&rev=17
2021-04-10 08:46:57 +00:00
94718b3f10 - update to 1.4.0:
- Fix ``InputDevice.set_absinfo`` to allow setting parameters to zero.
- Fix off-by-one in ``ioctl_EVIOCG_bits``, which causes value at the end of the
  list to not be reported back
- Fix ``set_absinfo`` to allow setting parameters to zero
- Fix leak when returning ``BlockingIOError`` from a read
- Fix "There is no current event loop in thread" error for non asyncio code
- Prevent ``InputDevice`` destructor from blocking
- Add missing return codes to ``os.strerror()`` calls and fix force feedback
- Add the ``util.find_ecodes_by_regex()`` helper function.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evdev?expand=0&rev=16
2021-01-23 01:06:13 +00:00
Matthias Bach
dfec42a212 - Modernise spec file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evdev?expand=0&rev=14
2020-12-24 18:17:56 +00:00
Tomáš Chvátal
c789a7d27d Accepting request 763675 from home:theMarix:branches:devel:languages:python
- Update to 1.3.0
  * Fix build on 32bit arches with 64bit time_t.
  * Add functionality to query device properties. See
    InputDevice.input_props and the input_props argument to Uinput.
  * KeyEvent received an allow_unknown constructor argument, which
    determines what will happen when an event code cannot be mapped
    to a keycode. The default and behavior so far has been to raise
    KeyError. If set to True, the keycode will be set to the event
    code formatted as a hex number.
  * Add InputDevice.set_absinfo() and InputDevice.absinfo().
  * Instruct the asyncio event loop to stop monitoring the fd of
    the input device when the device is closed.

OBS-URL: https://build.opensuse.org/request/show/763675
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evdev?expand=0&rev=12
2020-01-13 08:36:57 +00:00
4057a3364f - update to 1.2.0
* Add UInput support for the resolution parameter in AbsInfo
  * Vendor and product identifiers can be greater or equal to 0x8000

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evdev?expand=0&rev=10
2019-05-14 07:10:29 +00:00
Tomáš Chvátal
06fb6bb4da - Update to 1.1.2:
* Fix handling of absinfo capabilities
  * Fix invalid example
  * Check if FF_MAX_EFFECTS is defined

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evdev?expand=0&rev=8
2019-03-01 11:03:17 +00:00
Tomáš Chvátal
c073a94f08 Accepting request 631917 from home:theMarix:branches:devel:languages:python
- Update to version 1.1.0
  * Add support for handling force-feedback effect uploads.
  * Fix typo preventing force-feedback effects that need left
    coefficients from working.
- Add _service file to fetch source from Git.

OBS-URL: https://build.opensuse.org/request/show/631917
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evdev?expand=0&rev=6
2018-08-28 08:27:43 +00:00
0a80188fd6 Accepting request 614382 from home:theMarix:branches:devel:languages:python
- Run tests during packaging.
  * This runs only those tests which do not require /dev/uinput.
- Changed to source taken directly from Git instead of PyPI.

- Update to version 1.0.0
  * Fixed asyncio support in Python 3.5+.
  * Fixed handling of missing data.
  * Fixed device comparison.
  * Deprecated the InputDevice.fn attribute in favour of
    InputDevice.path
  * Add a context manager for grabbing access to a device -
    InputDevice.grab_context.
  * Add the InputDevice.uniq attribute, which contains the unique
    identifier of the device.

OBS-URL: https://build.opensuse.org/request/show/614382
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evdev?expand=0&rev=3
2018-06-06 11:44:21 +00:00
Tomáš Chvátal
b60d7e553a Accepting request 570777 from home:jengelh:dev
OBS-URL: https://build.opensuse.org/request/show/570777
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evdev?expand=0&rev=1
2018-01-29 22:31:32 +00:00