[packages/python-testresources] - updated to 2.0.2; fixtures and testtools are only test, not runtime dependencies
qboosh
qboosh at pld-linux.org
Mon Jul 7 20:30:56 CEST 2025
commit d6908960dc8bcc85bc9f7815c0901c509b681aec
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Jul 7 20:32:27 2025 +0200
- updated to 2.0.2; fixtures and testtools are only test, not runtime dependencies
python-testresources-tests.patch | 18 ------------------
python-testresources.spec | 22 +++++++++-------------
2 files changed, 9 insertions(+), 31 deletions(-)
---
diff --git a/python-testresources.spec b/python-testresources.spec
index 4489e3e..1444a3b 100644
--- a/python-testresources.spec
+++ b/python-testresources.spec
@@ -7,18 +7,18 @@
Summary: Testresources - pyunit extension for managing expensive test resources
Summary(pl.UTF-8): Testresources - rozszerzenie pyunit do zarządzania kosztownymi zasobami dla testów
Name: python-testresources
-Version: 2.0.1
-Release: 9
+Version: 2.0.2
+Release: 1
License: Apache v2.0 or BSD
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/testresources/
Source0: https://files.pythonhosted.org/packages/source/t/testresources/testresources-%{version}.tar.gz
-# Source0-md5: 8873ab443db5569528964f524228a2d7
+# Source0-md5: 4162baee9afbee0c176754534145ef3d
Patch0: %{name}-tests.patch
URL: https://launchpad.net/testresources
%if %{with python2}
-BuildRequires: python-modules >= 1:2.6
-BuildRequires: python-pbr >= 1.3
+BuildRequires: python-modules >= 1:2.7
+BuildRequires: python-pbr >= 1.8
BuildRequires: python-setuptools
%if %{with tests}
BuildRequires: python-docutils
@@ -27,8 +27,8 @@ BuildRequires: python-testtools
%endif
%endif
%if %{with python3}
-BuildRequires: python3-modules >= 1:3.3
-BuildRequires: python3-pbr >= 1.3
+BuildRequires: python3-modules >= 1:3.4
+BuildRequires: python3-pbr >= 1.8
BuildRequires: python3-setuptools
%if %{with tests}
BuildRequires: python3-docutils
@@ -38,9 +38,7 @@ BuildRequires: python3-testtools
%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
-Requires: python-fixtures
-Requires: python-modules >= 1:2.6
-Requires: python-testtools
+Requires: python-modules >= 1:2.7
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -61,9 +59,7 @@ aplikacji biznesowych albo serwerów WWW.
Summary: Testresources - pyunit extension for managing expensive test resources
Summary(pl.UTF-8): Testresources - rozszerzenie pyunit do zarządzania kosztownymi zasobami dla testów
Group: Libraries/Python
-Requires: python3-fixtures
-Requires: python3-modules >= 1:3.3
-Requires: python3-testtools
+Requires: python3-modules >= 1:3.4
%description -n python3-testresources
testresources extends unittest with a clean and simple API to provide
diff --git a/python-testresources-tests.patch b/python-testresources-tests.patch
index 9d46ba9..d4ac4d7 100644
--- a/python-testresources-tests.patch
+++ b/python-testresources-tests.patch
@@ -12,21 +12,3 @@
clean:
find . -name '*.pyc' -print0 | xargs -0 rm -f
---- testresources-2.0.1/testresources/tests/test_resourced_test_case.py.orig 2015-12-04 02:22:16.000000000 +0100
-+++ testresources-2.0.1/testresources/tests/test_resourced_test_case.py 2025-03-22 11:37:50.090961915 +0100
-@@ -129,7 +129,7 @@ class TestResourcedTestCase(testtools.Te
- self.resourced_case.resources = [("foo", self.resource_manager)]
- self.resourced_case.setUpResources()
- self.resourced_case.tearDownResources()
-- self.failIf(hasattr(self.resourced_case, "foo"))
-+ self.assertFalse(hasattr(self.resourced_case, "foo"))
-
- def testTearDownResourcesStopsUsingResource(self):
- # tearDownResources records that there is one less use of each
-@@ -158,5 +158,5 @@ class TestResourcedTestCase(testtools.Te
- self.assertEqual(self.resourced_case.foo, self.resource)
- self.assertEqual(self.resource_manager._uses, 1)
- self.resourced_case.tearDown()
-- self.failIf(hasattr(self.resourced_case, "foo"))
-+ self.assertFalse(hasattr(self.resourced_case, "foo"))
- self.assertEqual(self.resource_manager._uses, 0)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-testresources.git/commitdiff/d6908960dc8bcc85bc9f7815c0901c509b681aec
More information about the pld-cvs-commit
mailing list