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:
parent
1fc04818f5
commit
0ba5a3e9ed
@ -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>
|
Sun Nov 29 16:15:12 UTC 2020 - Kyrill Detinov <lazy.kent@opensuse.org>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package i18nspector
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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
|
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
|
Source1: https://github.com/jwilk/i18nspector/releases/download/%{version}/%{name}-%{version}.tar.gz.asc
|
||||||
Source2: %{name}.keyring
|
Source2: %{name}.keyring
|
||||||
|
# PATCH-FIX-UPSTREAM Adapted from gh#jwilk/i18nspector/pull/8
|
||||||
|
Patch0: switch-to-pytest.patch
|
||||||
BuildRequires: python3-devel >= 3.4
|
BuildRequires: python3-devel >= 3.4
|
||||||
# Requires for tests.
|
# Requires for tests.
|
||||||
BuildRequires: python3-curses
|
BuildRequires: python3-curses
|
||||||
BuildRequires: python3-nose
|
|
||||||
BuildRequires: python3-polib
|
BuildRequires: python3-polib
|
||||||
|
BuildRequires: python3-pytest
|
||||||
BuildRequires: python3-rply
|
BuildRequires: python3-rply
|
||||||
#
|
#
|
||||||
Requires: python3-polib
|
Requires: python3-polib
|
||||||
@ -51,6 +53,7 @@ headers, incorrect language codes and improper plural forms.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%autopatch -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
@ -62,7 +65,7 @@ cd %{buildroot}%{_datadir}/%{name}/
|
|||||||
%py3_compile .
|
%py3_compile .
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%make_build test
|
pytest -v
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license doc/LICENSE
|
%license doc/LICENSE
|
||||||
|
4672
switch-to-pytest.patch
Normal file
4672
switch-to-pytest.patch
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user