forked from pool/python-bibtexparser
Accepting request 794185 from devel:languages:python
- Switch from using nosetest runner to pytest OBS-URL: https://build.opensuse.org/request/show/794185 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bibtexparser?expand=0&rev=2
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 15 10:00:08 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Switch from using nosetest runner to pytest
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 2 17:40:45 UTC 2019 - Todd R <toddrme2178@gmail.com>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user