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..2aa1ee9 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,32 +12,32 @@ # 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} 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 unittest2} -# /SECTION Requires: python-future >= 0.16.0 Requires: python-pyparsing >= 2.0.3 BuildArch: noarch - +# SECTION test requirements +BuildRequires: %{python_module future >= 0.16.0} +BuildRequires: %{python_module pyparsing >= 2.0.3} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module unittest2} +# /SECTION %python_subpackages %description @@ -55,8 +55,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