17
0

4 Commits

3 changed files with 30 additions and 2 deletions

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Mon Aug 4 02:27:17 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Add patch support-new-mypy.patch:
* Support newer mypy than upstream.
-------------------------------------------------------------------
Fri Sep 20 11:03:41 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- add sle15_python_module_pythons
-------------------------------------------------------------------
Tue Apr 2 03:55:42 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,8 @@
#
# spec file for package python-pytest-mypy-testing
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
# 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,6 +17,7 @@
#
%{?sle15_python_module_pythons}
Name: python-pytest-mypy-testing
Version: 0.1.3
Release: 0
@@ -23,9 +25,11 @@ Summary: Pytest plugin to check mypy output
License: Apache-2.0 OR MIT
URL: https://github.com/davidfritzsche/pytest-mypy-testing
Source: https://files.pythonhosted.org/packages/source/p/pytest-mypy-testing/pytest-mypy-testing-%{version}.tar.gz
BuildRequires: python-rpm-macros
# PATCH-FIX-OPENSUSE Support newer mypy
Patch0: support-new-mypy.patch
BuildRequires: %{python_module flit-core >= 2}
BuildRequires: %{python_module pip}
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module mypy >= 1.0}
BuildRequires: %{python_module pytest >= 7}

13
support-new-mypy.patch Normal file
View File

@@ -0,0 +1,13 @@
Index: pytest-mypy-testing-0.1.3/mypy.ini
===================================================================
--- pytest-mypy-testing-0.1.3.orig/mypy.ini
+++ pytest-mypy-testing-0.1.3/mypy.ini
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: CC0-1.0
[mypy]
-python_version = 3.8
+python_version = 3.9
mypy_path = src