Compare commits
No commits in common. "b41cac2a27af05a6a3a3237564f1def448e2fad5" and "5288b7c102974aeeb1426256d2fc204ea6fe24e2" have entirely different histories.
b41cac2a27
...
5288b7c102
@ -1,45 +0,0 @@
|
|||||||
From f9c10f84cb60abb87d2240c15fee8c82e643fbf8 Mon Sep 17 00:00:00 2001
|
|
||||||
From: mulhern <amulhern@redhat.com>
|
|
||||||
Date: Wed, 21 Dec 2022 19:20:22 -0500
|
|
||||||
Subject: [PATCH] Drop a flaky test
|
|
||||||
|
|
||||||
Signed-off-by: mulhern <amulhern@redhat.com>
|
|
||||||
---
|
|
||||||
tests/_device_tests/_attributes_tests.py | 24 ------------------------
|
|
||||||
1 file changed, 24 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/tests/_device_tests/_attributes_tests.py b/tests/_device_tests/_attributes_tests.py
|
|
||||||
index ba211e6..02c9a43 100644
|
|
||||||
--- a/tests/_device_tests/_attributes_tests.py
|
|
||||||
+++ b/tests/_device_tests/_attributes_tests.py
|
|
||||||
@@ -124,27 +124,3 @@ def test_asbool(self, a_context, device_datum):
|
|
||||||
device.attributes.asbool(key)
|
|
||||||
except KeyError:
|
|
||||||
pass
|
|
||||||
-
|
|
||||||
- @_UDEV_TEST(167, "test_available_attributes")
|
|
||||||
- @given(strategies.sampled_from(_DEVICES))
|
|
||||||
- @settings(max_examples=5)
|
|
||||||
- def test_available_attributes(self, a_device):
|
|
||||||
- """
|
|
||||||
- Test that the available attributes are exactly the names of files
|
|
||||||
- in the sysfs directory that are regular files or softlinks.
|
|
||||||
- """
|
|
||||||
- available_attributes = sorted(a_device.attributes.available_attributes)
|
|
||||||
-
|
|
||||||
- attribute_filenames = []
|
|
||||||
- sys_path = a_device.sys_path
|
|
||||||
- for filename in sorted(os.listdir(sys_path)):
|
|
||||||
- filepath = os.path.join(sys_path, filename)
|
|
||||||
- status = os.lstat(filepath)
|
|
||||||
- mode = status.st_mode
|
|
||||||
- if not stat.S_ISLNK(mode) and not stat.S_ISREG(mode):
|
|
||||||
- continue
|
|
||||||
- if not stat.S_IRUSR & mode:
|
|
||||||
- continue
|
|
||||||
- attribute_filenames.append(filename)
|
|
||||||
-
|
|
||||||
- assert available_attributes == attribute_filenames
|
|
||||||
--
|
|
||||||
2.27.0
|
|
||||||
|
|
||||||
@ -1,15 +1,13 @@
|
|||||||
%global srcname pyudev
|
%global srcname pyudev
|
||||||
Name: python-%{srcname}
|
Name: python-%{srcname}
|
||||||
Version: 0.24.0
|
Version: 0.21.0
|
||||||
Release: 2
|
Release: 10
|
||||||
Summary: A libudev binding
|
Summary: A libudev binding
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: http://pypi.python.org/pypi/pyudev
|
URL: http://pypi.python.org/pypi/pyudev
|
||||||
Source0: https://pypi.io/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
|
Source0: https://pypi.io/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
Patch6000: backport-Drop-a-flaky-test.patch
|
|
||||||
|
|
||||||
%global _description\
|
%global _description\
|
||||||
This package supports almost all libudev functionality.The lisence\
|
This package supports almost all libudev functionality.The lisence\
|
||||||
is LGPL.It is a python 2/3 binding to libudev which is a linux\
|
is LGPL.It is a python 2/3 binding to libudev which is a linux\
|
||||||
@ -18,11 +16,18 @@ and you can use it after a quick learning.
|
|||||||
|
|
||||||
%description %_description
|
%description %_description
|
||||||
|
|
||||||
|
%package -n python2-%{srcname}
|
||||||
|
Summary: %summary
|
||||||
|
BuildRequires: python2-devel python2-setuptools
|
||||||
|
Requires: glibc systemd python2-six
|
||||||
|
Provides: python2-%{srcname}-glib python2-%{srcname}-qt4 python2-%{srcname}-qt5 python2-%{srcname}-pyside python2-%{srcname}-wx
|
||||||
|
Obsoletes: python2-%{srcname}-glib python2-%{srcname}-qt4 python2-%{srcname}-qt5 python2-%{srcname}-pyside python2-%{srcname}-wx
|
||||||
|
%description -n python2-%{srcname} %_description
|
||||||
|
%{?python_provide:%python_provide python2-%{srcname}}
|
||||||
|
|
||||||
%package -n python3-%{srcname}
|
%package -n python3-%{srcname}
|
||||||
Summary: A libudev binding
|
Summary: A libudev binding
|
||||||
BuildRequires: python3-devel python3-setuptools
|
BuildRequires: python3-devel python3-setuptools
|
||||||
# Test requires
|
|
||||||
BuildRequires: python3-hypothesis python3-pytest python3-pyudev
|
|
||||||
Requires: systemd python3-six
|
Requires: systemd python3-six
|
||||||
Provides: python3-%{srcname}-qt4 python3-%{srcname}-qt5
|
Provides: python3-%{srcname}-qt4 python3-%{srcname}-qt5
|
||||||
Obsoletes: python3-%{srcname}-qt4 python3-%{srcname}-qt5
|
Obsoletes: python3-%{srcname}-qt4 python3-%{srcname}-qt5
|
||||||
@ -30,17 +35,22 @@ Obsoletes: python3-%{srcname}-qt4 python3-%{srcname}-qt5
|
|||||||
%{?python_provide:%python_provide python3-%{srcname}}
|
%{?python_provide:%python_provide python3-%{srcname}}
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{srcname}-%{version} -p1
|
%autosetup -n %{srcname}-%{version}
|
||||||
rm -rf pyudev.egg-info
|
rm -rf pyudev.egg-info
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%py2_build
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%py2_install
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
%check
|
%files -n python2-%{srcname}
|
||||||
pytest -v --ignore=./tests/test_device.py --ignore=./tests/test_core.py --ignore=./tests/test_enumerate.py --ignore=./tests/test_monitor.py -k 'not (test_get_device_type_character_device or test_get_device_type_block_device or test_fake_monitor)'
|
%license COPYING
|
||||||
|
%doc README.rst CHANGES.rst
|
||||||
|
%{python2_sitelib}/pyudev/
|
||||||
|
%{python2_sitelib}/pyudev-%{version}-*.egg-info
|
||||||
|
|
||||||
%files -n python3-%{srcname}
|
%files -n python3-%{srcname}
|
||||||
%license COPYING
|
%license COPYING
|
||||||
@ -56,21 +66,6 @@ pytest -v --ignore=./tests/test_device.py --ignore=./tests/test_core.py --ignore
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Jun 07 2023 renhongxun <renhongxun@h-partners.com> - 0.24.0-2
|
|
||||||
- enable check
|
|
||||||
|
|
||||||
* Thu Nov 03 2022 zhuofeng <zhuofeng2@huawei.com> - 0.24.0-1
|
|
||||||
- update to 0.21.0
|
|
||||||
|
|
||||||
* Thu Oct 27 2022 zhangruifang <zhangruifang1@h-partners.com> - 0.22.0-3
|
|
||||||
- Rebuild for next release
|
|
||||||
|
|
||||||
* Fri Oct 30 2020 tianwei <tianwei12@huawei.com> - 0.22.0-2
|
|
||||||
- remove python2
|
|
||||||
|
|
||||||
* Fri Jul 24 2020 tianwei <tianwei12@huawei.com> - 0.22.0-1
|
|
||||||
- update to release 0.22.0
|
|
||||||
|
|
||||||
* Fri Sep 27 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.21.0-10
|
* Fri Sep 27 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.21.0-10
|
||||||
- modify requires
|
- modify requires
|
||||||
|
|
||||||
|
|||||||
BIN
pyudev-0.22.0.tar.gz
Normal file
BIN
pyudev-0.22.0.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user