14
0
forked from pool/python-evdev

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
This commit is contained in:
2018-06-06 11:44:21 +00:00
committed by Git OBS Bridge
parent 703277d85b
commit 7c5f09ab45
4 changed files with 33 additions and 9 deletions

View File

@@ -18,15 +18,15 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-evdev
Version: 0.7.0
Version: 1.0.0
Release: 0
Summary: Python bindings to the Linux input handling subsystem
License: BSD-3-Clause
Group: Development/Languages/Python
Url: https://pypi.python.org/pypi/evdev
#Git-Clone: https://github.com/gvalkov/python-evdev
Source: https://files.pythonhosted.org/packages/source/e/evdev/evdev-%version.tar.gz
Url: https://github.com/gvalkov/python-evdev
Source: %{name}-%version.tar.xz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -43,9 +43,9 @@ This package also comes with bindings to uinput, the userspace input
subsystem. Uinput allows userspace programs to create and handle
input devices that can inject events directly into the input
subsystem.
%prep
%setup -q -n evdev-%version
%setup -q
%build
%python_build
@@ -54,6 +54,9 @@ subsystem.
%python_install
%python_expand %fdupes %buildroot/%$python_sitearch
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} py.test-%{$python_version} tests -k 'not test_uinput'
%files %python_files
%python_sitearch/evdev*
%license LICENSE