forked from pool/python-URLObject
- Add remove_nose.patch replacing use of nose with the standard
library. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-URLObject?expand=0&rev=10
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-URLObject
|
||||
#
|
||||
# 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
|
||||
@@ -24,12 +24,15 @@ Summary: Python library for manipulating URLs (and some URIs) in a more n
|
||||
License: SUSE-Public-Domain
|
||||
URL: https://github.com/zacharyvoase/urlobject
|
||||
Source: https://files.pythonhosted.org/packages/source/U/URLObject/URLObject-%{version}.tar.gz
|
||||
# PATCH-FEATURE-UPSTREAM remove_nose.patch bsc#[0-9]+ mcepl@suse.com
|
||||
# Remove the need for nose and use the standard library.
|
||||
Patch0: remove_nose.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module nose}
|
||||
BuildRequires: %{python_module pytest}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
@@ -51,7 +54,7 @@ test-driven manner, and has full Sphinx documentation.
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_expand nosetests-%{$python_bin_suffix}
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
|
||||
Reference in New Issue
Block a user