15
0

- 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:
2020-06-05 14:38:14 +00:00
committed by Git OBS Bridge
parent b6b8f0f398
commit 1373cd5ea6
3 changed files with 53 additions and 3 deletions

View File

@@ -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