From 91212fa830f339cd94b773c094a44263a35b46d19fa20d428266e8d16b486ee2 Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Mon, 23 May 2016 15:48:05 +0000 Subject: [PATCH 1/2] 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 --- do_not_install_tests.patch | 11 ----------- python-pyudev.changes | 37 +++++++++++++++++++++++++++++++++++++ python-pyudev.spec | 13 ++++++------- pyudev-0.17.tar.gz | 3 --- pyudev-0.20.0.tar.gz | 3 +++ 5 files changed, 46 insertions(+), 21 deletions(-) delete mode 100644 pyudev-0.17.tar.gz create mode 100644 pyudev-0.20.0.tar.gz diff --git a/do_not_install_tests.patch b/do_not_install_tests.patch index d1acd4c..89bc268 100644 --- a/do_not_install_tests.patch +++ b/do_not_install_tests.patch @@ -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']), - ) diff --git a/python-pyudev.changes b/python-pyudev.changes index 26808a8..4ca92a6 100644 --- a/python-pyudev.changes +++ b/python-pyudev.changes @@ -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 diff --git a/python-pyudev.spec b/python-pyudev.spec index 74abe3f..8eabc88 100644 --- a/python-pyudev.spec +++ b/python-pyudev.spec @@ -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 diff --git a/pyudev-0.17.tar.gz b/pyudev-0.17.tar.gz deleted file mode 100644 index dcb81a7..0000000 --- a/pyudev-0.17.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:eb6f3c1f231ab3d11d6afee6a4b925c855030314568d9c6760d138465a092e8d -size 81364 diff --git a/pyudev-0.20.0.tar.gz b/pyudev-0.20.0.tar.gz new file mode 100644 index 0000000..e6bc8ef --- /dev/null +++ b/pyudev-0.20.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:14d85bc9611dbf798732996cb7107858f58a3a1b9d246e4063c7a20ade65842a +size 93217 From a8928b4df6cb990a6053154e8283e7c9d513f154aaaf0cef61ecff280f88c2b0 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 24 May 2016 04:53:31 +0000 Subject: [PATCH 2/2] Accepting request 397545 from home:tbechtold:branches:devel:languages:python - Remove do_not_install_tests.patch - Require python-six OBS-URL: https://build.opensuse.org/request/show/397545 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyudev?expand=0&rev=22 --- do_not_install_tests.patch | 4 ---- python-pyudev.changes | 6 ++++++ python-pyudev.spec | 1 + 3 files changed, 7 insertions(+), 4 deletions(-) delete mode 100644 do_not_install_tests.patch diff --git a/do_not_install_tests.patch b/do_not_install_tests.patch deleted file mode 100644 index 89bc268..0000000 --- a/do_not_install_tests.patch +++ /dev/null @@ -1,4 +0,0 @@ ---- - setup.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - diff --git a/python-pyudev.changes b/python-pyudev.changes index 4ca92a6..4ae58d9 100644 --- a/python-pyudev.changes +++ b/python-pyudev.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon May 23 16:12:57 UTC 2016 - tbechtold@suse.com + +- Remove do_not_install_tests.patch +- Require python-six + ------------------------------------------------------------------- Mon May 23 14:49:16 UTC 2016 - tbechtold@suse.com diff --git a/python-pyudev.spec b/python-pyudev.spec index 8eabc88..18d52bf 100644 --- a/python-pyudev.spec +++ b/python-pyudev.spec @@ -35,6 +35,7 @@ BuildRequires: python-nose BuildRequires: python-py BuildRequires: python-pytest Requires: libudev1 +Requires: python-six # pyudev was last used in KDE:Unstable:Playground (pyudev-0.8) Provides: pyudev = %{version} Obsoletes: pyudev < %{version}