forked from pool/python-pyudev
Accepting request 397540 from home:tbechtold:branches:devel:languages:python
- update to 0.20.0: * Remove parsing code added in previous release. * No longer do CI for Python 2.6. * Eliminate all wildcard imports and __all__ statements. * No longer use deprecated Device.from_sys_path() method. * Minor pylint induced changes. * Documentation fixes. * Restore raising KeyError by Attributes.as* methods when attribute not found. * Explicitly require six module. * Never raise a DeviceNotFoundError when iterating over a device enumeration. * Device.subsystem() now returns None if device has no subsystem. * Add DeprecationWarnings to deprecated Device methods. * Replace "/" with "!" in Device.from_name() sys_name parameter. * Add some unstable classes for parsing some kinds of values. * Make version info more like Python's including micro numbers and levels. * Refactor some internal modules into subdirectories. * Work on tests and reproducers. * DeviceNotFoundError is no longer a subtype of LookupError * Added support for pyqt5 monitor observer * Added discover module, which looks up a device on limited information * Attributes class no longer extends Mapping, extends object instead * Attributes class no longer inherits [] operator, Mapping methods * Attributes class objects are no longer iterable * Attributes.available_attributes property added * Attributes.get() method, with usual semantics, defined * Device.from_* methods are deprecated, uses Devices.from_* methods instead * Device.from_device_file() now raises DeviceNotFoundByFileError * Device.from_device_number() now raises DeviceNotFoundByNumberError * Devices.from_interface_index() method added * Devices.from_kernel_device() method added OBS-URL: https://build.opensuse.org/request/show/397540 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyudev?expand=0&rev=21
This commit is contained in:
committed by
Git OBS Bridge
parent
5eaf2d6627
commit
91212fa830
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pyudev
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,16 +17,15 @@
|
||||
|
||||
|
||||
Name: python-pyudev
|
||||
Version: 0.17
|
||||
Version: 0.20.0
|
||||
Release: 0
|
||||
Summary: Udev bindings for Python
|
||||
License: LGPL-2.1+
|
||||
Group: Development/Libraries/Python
|
||||
Url: http://pyudev.readthedocs.org/
|
||||
Source0: http://pypi.python.org/packages/source/p/pyudev/pyudev-%{version}.tar.gz
|
||||
# PATCH-FIX-OPENSUSE do_not_install_tests.patch asterios.dramis@gmail.com -- Do not install the tests as a module
|
||||
Patch0: do_not_install_tests.patch
|
||||
Source0: https://pypi.python.org/packages/78/6a/2fc9ed0ffbcdb480a026274ca221b959de6c549a67753ff4b3c790db0d8a/pyudev-%{version}.tar.gz
|
||||
BuildRequires: libudev-devel
|
||||
BuildRequires: libudev1
|
||||
BuildRequires: python-Sphinx
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
@@ -35,6 +34,7 @@ BuildRequires: python-mock
|
||||
BuildRequires: python-nose
|
||||
BuildRequires: python-py
|
||||
BuildRequires: python-pytest
|
||||
Requires: libudev1
|
||||
# pyudev was last used in KDE:Unstable:Playground (pyudev-0.8)
|
||||
Provides: pyudev = %{version}
|
||||
Obsoletes: pyudev < %{version}
|
||||
@@ -51,13 +51,12 @@ in modern linux systems.
|
||||
|
||||
%prep
|
||||
%setup -q -n pyudev-%{version}
|
||||
%patch0 -p1
|
||||
# Disable intersphinx and issuetracker, we don't want to access the web during doc build:
|
||||
sed -i -e "s|'sphinx.ext.intersphinx',\\?||" -e "s|'sphinxcontrib.issuetracker',\\?||" doc/conf.py
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
python setup.py build_sphinx
|
||||
PYTHONPATH=src/ python setup.py build_sphinx
|
||||
rm build/sphinx/html/.buildinfo
|
||||
|
||||
%install
|
||||
|
Reference in New Issue
Block a user