14
0
forked from pool/python-evdev

Accepting request 619208 from devel:languages:python

- Run tests during packaging.
- Changed to source taken directly from Git instead of PyPI.
  (PyPI tarballs don't carry tests)

- 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/619208
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-evdev?expand=0&rev=2
This commit is contained in:
2018-06-29 20:34:40 +00:00
committed by Git OBS Bridge
4 changed files with 34 additions and 9 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:57edafc469a414f58b51af1bfb9ee2babb9f626dd2df530d71c1176871850aa1
size 22623

View File

@@ -1,3 +1,24 @@
-------------------------------------------------------------------
Tue Jun 5 20:06:40 UTC 2018 - marix@marix.org
- 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.
-------------------------------------------------------------------
Mon Jun 4 20:07:15 UTC 2018 - marix@marix.org
- 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.
-------------------------------------------------------------------
Mon Jan 29 15:33:32 UTC 2018 - jengelh@inai.de

View File

@@ -16,17 +16,18 @@
#
%define modname evdev
%{?!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: https://github.com/gvalkov/%{name}/archive/v%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -43,9 +44,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 +55,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

3
v1.0.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:71341d2189374e1dd9b56948e9c9ba71c9ec2ed09d80c0d37f7e420547d0ffb4
size 81804