From b47d7a3473a09d1b6718c3f6c6c4dc1a0c2d519d242792f654ef6daa9ab2eb12 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 2 Jan 2024 17:40:44 +0000 Subject: [PATCH] - run "mypy" as testsuite for the typing OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-types-humanfriendly?expand=0&rev=2 --- python-types-humanfriendly.changes | 5 +++++ python-types-humanfriendly.spec | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/python-types-humanfriendly.changes b/python-types-humanfriendly.changes index e97ca1d..892433d 100644 --- a/python-types-humanfriendly.changes +++ b/python-types-humanfriendly.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jan 2 17:39:52 UTC 2024 - Dirk Müller + +- run "mypy" as testsuite for the typing + ------------------------------------------------------------------- Fri Dec 15 08:12:26 UTC 2023 - ecsos diff --git a/python-types-humanfriendly.spec b/python-types-humanfriendly.spec index f15cf7b..c4c3b00 100644 --- a/python-types-humanfriendly.spec +++ b/python-types-humanfriendly.spec @@ -1,7 +1,7 @@ # # spec file for package python-types-humanfriendly # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,8 +26,8 @@ Group: Development/Languages/Python URL: https://github.com/python/typeshed Source: https://files.pythonhosted.org/packages/source/t/types-humanfriendly/types-humanfriendly-%{version}.tar.gz BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module mypy} BuildRequires: %{python_module pip} -BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -48,7 +48,7 @@ Collection of library stubs for Python, with static types. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pyunittest -v +%python_exec -m mypy humanfriendly-stubs %files %{python_files} %doc CHANGELOG.md