- Add patch support-new-mypy.patch:

* Support newer mypy than upstream.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-mypy-testing?expand=0&rev=5
This commit is contained in:
2025-08-04 02:27:47 +00:00
committed by Git OBS Bridge
parent 7703b1ec6d
commit a0c01be47d
3 changed files with 23 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
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>

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
@@ -24,6 +25,8 @@ 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
# 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

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