1
0
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:
Jan Matejek 2016-05-23 15:48:05 +00:00 committed by Git OBS Bridge
parent 5eaf2d6627
commit 91212fa830
5 changed files with 46 additions and 21 deletions

View File

@ -2,14 +2,3 @@
setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: pyudev-0.17/setup.py
===================================================================
--- pyudev-0.17.orig/setup.py
+++ pyudev-0.17/setup.py
@@ -52,5 +52,5 @@ setuptools.setup(
'Topic :: System :: Hardware',
'Topic :: System :: Operating System Kernels :: Linux',
],
- packages=setuptools.find_packages(),
+ packages=setuptools.find_packages(exclude=['tests.*', 'tests']),
)

View File

@ -1,3 +1,40 @@
-------------------------------------------------------------------
Mon May 23 14:49:16 UTC 2016 - tbechtold@suse.com
- 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
* Numerous testing infrastructure changes
- Remove do_not_install_tests.patch . No longer needed.
- Require libudev1 . Needed to use python-pyudev
-------------------------------------------------------------------
Wed Sep 23 18:44:41 UTC 2015 - asterios.dramis@gmail.com

View File

@ -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

View File

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

3
pyudev-0.20.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:14d85bc9611dbf798732996cb7107858f58a3a1b9d246e4063c7a20ade65842a
size 93217