SHA256
1
0
forked from pool/i18nspector

Accepting request 932847 from home:StevenK:branches:M17N

- Add patch switch-to-pytest.patch:
  * Use pytest to run tests, rather than nose.

OBS-URL: https://build.opensuse.org/request/show/932847
OBS-URL: https://build.opensuse.org/package/show/M17N/i18nspector?expand=0&rev=59
This commit is contained in:
Kyrill Detinov 2021-11-22 23:05:17 +00:00 committed by Git OBS Bridge
parent 1fc04818f5
commit 0ba5a3e9ed
3 changed files with 4684 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Nov 22 05:39:58 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
- Add patch switch-to-pytest.patch:
* Use pytest to run tests, rather than nose.
-------------------------------------------------------------------
Sun Nov 29 16:15:12 UTC 2020 - Kyrill Detinov <lazy.kent@opensuse.org>

View File

@ -1,7 +1,7 @@
#
# spec file for package i18nspector
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -26,11 +26,13 @@ URL: https://jwilk.net/software/i18nspector
Source0: https://github.com/jwilk/i18nspector/releases/download/%{version}/%{name}-%{version}.tar.gz
Source1: https://github.com/jwilk/i18nspector/releases/download/%{version}/%{name}-%{version}.tar.gz.asc
Source2: %{name}.keyring
# PATCH-FIX-UPSTREAM Adapted from gh#jwilk/i18nspector/pull/8
Patch0: switch-to-pytest.patch
BuildRequires: python3-devel >= 3.4
# Requires for tests.
BuildRequires: python3-curses
BuildRequires: python3-nose
BuildRequires: python3-polib
BuildRequires: python3-pytest
BuildRequires: python3-rply
#
Requires: python3-polib
@ -51,6 +53,7 @@ headers, incorrect language codes and improper plural forms.
%prep
%setup -q
%autopatch -p1
%build
@ -62,7 +65,7 @@ cd %{buildroot}%{_datadir}/%{name}/
%py3_compile .
%check
%make_build test
pytest -v
%files
%license doc/LICENSE

4672
switch-to-pytest.patch Normal file

File diff suppressed because it is too large Load Diff