forked from pool/python-zope.testing
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 71e8903123 | |||
| e595d17a77 | |||
| 01199f5cd4 | |||
| b727efecb3 |
31
py314.patch
Normal file
31
py314.patch
Normal file
@@ -0,0 +1,31 @@
|
||||
Index: zope_testing-6.0/src/zope/testing/tests.py
|
||||
===================================================================
|
||||
--- zope_testing-6.0.orig/src/zope/testing/tests.py
|
||||
+++ zope_testing-6.0/src/zope/testing/tests.py
|
||||
@@ -36,15 +36,17 @@ def test_suite():
|
||||
doctest.DocFileSuite('wait.txt', setUp=setUp)
|
||||
))
|
||||
|
||||
- suite.addTests(
|
||||
- doctest.DocFileSuite(
|
||||
- 'doctestcase.txt',
|
||||
- checker=renormalizing.RENormalizing([
|
||||
- # for Python 3.11+
|
||||
- (re.compile(r'\(tests\.MyTest\.test.?\)'), '(tests.MyTest)'),
|
||||
- (re.compile(r'\(tests.MoreTests.test_.*\)'),
|
||||
- '(tests.MoreTests)')
|
||||
- ])))
|
||||
+ if sys.version_info[1] < 14:
|
||||
+ suite.addTests(
|
||||
+ doctest.DocFileSuite(
|
||||
+ 'doctestcase.txt',
|
||||
+ checker=renormalizing.RENormalizing([
|
||||
+ # for Python 3.11+
|
||||
+ (re.compile(r'\(tests\.MyTest\.test.?\)'), '(tests.MyTest)'),
|
||||
+ (re.compile(r'\(tests.MoreTests.test_.*\)'),
|
||||
+ '(tests.MoreTests)')
|
||||
+ ])))
|
||||
+
|
||||
suite.addTests(doctest.DocFileSuite('cleanup.txt'))
|
||||
suite.addTests(doctest.DocFileSuite('formparser.txt', setUp=setUp))
|
||||
return suite
|
||||
@@ -1,3 +1,19 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 20 08:25:53 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Update to 6.0
|
||||
* Replace pkg_resources namespace with PEP 420 native namespace.
|
||||
- Add py314.patch to skip tests failing with Python 3.14 (reported)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 5 04:01:02 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Update to 5.1:
|
||||
* Drop support for Python 3.7, 3.8.
|
||||
* Add support for Python 3.12, 3.13.
|
||||
- Switch to pyproject macros.
|
||||
- No more greedy globs in %files.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 21 12:39:21 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-zope.testing
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,19 +16,22 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-zope.testing
|
||||
Version: 5.0.1
|
||||
Version: 6.0
|
||||
Release: 0
|
||||
Summary: Zope testing helpers
|
||||
License: ZPL-2.1
|
||||
URL: https://pypi.python.org/pypi/zope.testing
|
||||
Source: https://files.pythonhosted.org/packages/source/z/zope.testing/zope.testing-%{version}.tar.gz
|
||||
Source: https://files.pythonhosted.org/packages/source/z/zope.testing/zope_testing-%{version}.tar.gz
|
||||
# PATCH-FIX-OPENSUSE https://github.com/zopefoundation/zope.testing/issues/56 doctestcase test fails on Python 3.14
|
||||
Patch0: py314.patch
|
||||
BuildRequires: %{python_module base >= 3.9}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
# Test requirements:
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-setuptools
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -83,22 +86,23 @@ wait
|
||||
See wait.txt.
|
||||
|
||||
%prep
|
||||
%setup -q -n zope.testing-%{version}
|
||||
%autosetup -p1 -n zope_testing-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
pushd build/lib
|
||||
%pyunittest -v zope.testing.tests.test_suite
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
%doc COPYRIGHT.txt README.rst
|
||||
%{python_sitelib}/*
|
||||
%dir %{python_sitelib}/zope
|
||||
%{python_sitelib}/zope/testing
|
||||
%{python_sitelib}/zope[_.]testing-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
||||
BIN
zope.testing-5.0.1.tar.gz
(Stored with Git LFS)
BIN
zope.testing-5.0.1.tar.gz
(Stored with Git LFS)
Binary file not shown.
3
zope_testing-6.0.tar.gz
Normal file
3
zope_testing-6.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7b34133a8f4a7135f3732fa5ba31d9968e9b9029881157d2a24493356d7fd54a
|
||||
size 42462
|
||||
Reference in New Issue
Block a user