From 98d3270a465189fd9b587e88a05a72ea955895e244cf67f305ff66aa9a536408 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 15 Apr 2020 10:00:18 +0000 Subject: [PATCH] - Switch from using nosetest runner to pytest OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bibtexparser?expand=0&rev=3 --- python-bibtexparser.changes | 5 +++++ python-bibtexparser.spec | 15 ++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/python-bibtexparser.changes b/python-bibtexparser.changes index a2c97c2..87494cf 100644 --- a/python-bibtexparser.changes +++ b/python-bibtexparser.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Apr 15 10:00:08 UTC 2020 - Matej Cepl + +- Switch from using nosetest runner to pytest + ------------------------------------------------------------------- Thu May 2 17:40:45 UTC 2019 - Todd R diff --git a/python-bibtexparser.spec b/python-bibtexparser.spec index 1281d39..f9e8129 100644 --- a/python-bibtexparser.spec +++ b/python-bibtexparser.spec @@ -1,7 +1,7 @@ # # spec file for package python-bibtexparser # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,17 +12,18 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-bibtexparser Version: 1.1.0 Release: 0 -License: LGPL-3.0-only OR BSD-3-Clause Summary: Bibtex parser for python -Url: https://github.com/sciunto-org/python-bibtexparser +License: LGPL-3.0-only OR BSD-3-Clause Group: Development/Languages/Python +URL: https://github.com/sciunto-org/python-bibtexparser Source: https://github.com/sciunto-org/python-bibtexparser/archive/v%{version}.tar.gz#/python-bibtexparser-%{version}.tar.gz BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} @@ -30,8 +31,8 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros # SECTION test requirements BuildRequires: %{python_module future >= 0.16.0} -BuildRequires: %{python_module nose} BuildRequires: %{python_module pyparsing >= 2.0.3} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module unittest2} # /SECTION Requires: python-future >= 0.16.0 @@ -55,8 +56,8 @@ sed -i -e '/^#!\//, 1d' bibtexparser/*.py %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -export LANG=en_US.UTF-8 -%python_expand nosetests-%{$python_bin_suffix} +export LANG=C.utf8 +%pytest %files %{python_files} %doc README.rst CHANGELOG