forked from pool/python-pytest-remotedata
- Update to 0.3.2:
* Fixed compatibility with pytest 4.2 and later. [#38, #40] - Remove pytest42.patch merged upstream OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-remotedata?expand=0&rev=7
This commit is contained in:
committed by
Git OBS Bridge
parent
2823af1157
commit
5f13d9d6e2
@@ -18,14 +18,13 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-pytest-remotedata
|
||||
Version: 0.3.1
|
||||
Version: 0.3.2
|
||||
Release: 0
|
||||
Summary: Pytest plugin for controlling remote data access
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/astropy/pytest-remotedata
|
||||
URL: https://github.com/astropy/pytest-remotedata
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pytest-remotedata/pytest-remotedata-%{version}.tar.gz
|
||||
Patch0: pytest42.patch
|
||||
BuildRequires: %{python_module pytest >= 3.1}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six}
|
||||
@@ -34,7 +33,6 @@ BuildRequires: python-rpm-macros
|
||||
Requires: python-pytest >= 3.1
|
||||
Requires: python-six
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -43,7 +41,6 @@ developers to control unit tests that require access to data from the internet.
|
||||
|
||||
%prep
|
||||
%setup -q -n pytest-remotedata-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -54,7 +51,7 @@ developers to control unit tests that require access to data from the internet.
|
||||
|
||||
%check
|
||||
# test_internet_access (test_default_behavior, test_strict_with_decorator) - needs network
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v -k 'not (test_default_behavior or test_strict_with_decorator)'
|
||||
%pytest -k 'not (test_default_behavior or test_strict_with_decorator)'
|
||||
|
||||
%files %{python_files}
|
||||
%doc CHANGES.rst README.rst
|
||||
|
||||
Reference in New Issue
Block a user