forked from pool/python-pytest-remotedata
- Update to 0.3.1:
* Fix warnings that occur with pytest-3.7 and later. [#34] - Enable tests - Add patch from upstream to build with pytest-4.2+: * pytest42.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-remotedata?expand=0&rev=5
This commit is contained in:
committed by
Git OBS Bridge
parent
931e9abe05
commit
2823af1157
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:cb0a6e22ba07ff870edeb17d5d38c495e8f37e2db741cd15e723fb8e609909eb
|
|
||||||
size 7959
|
|
||||||
3
pytest-remotedata-0.3.1.tar.gz
Normal file
3
pytest-remotedata-0.3.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:15b75a38431da96a4da5e48b20a18e4dcc40d191abc199b17cb969f818530481
|
||||||
|
size 10367
|
||||||
23
pytest42.patch
Normal file
23
pytest42.patch
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
From b395fca12d392e433b19844d14d014a481ff52fe Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= <tomas.chvatal@gmail.com>
|
||||||
|
Date: Fri, 15 Feb 2019 10:26:59 +0100
|
||||||
|
Subject: [PATCH] Use [tool:pytest] to fix build on pytest 4.2
|
||||||
|
|
||||||
|
[pytest] marking is deprecated and errors out on 4.2+ version.
|
||||||
|
---
|
||||||
|
tests/test_strict_check.py | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/tests/test_strict_check.py b/tests/test_strict_check.py
|
||||||
|
index 79b6073..8527c25 100644
|
||||||
|
--- a/tests/test_strict_check.py
|
||||||
|
+++ b/tests/test_strict_check.py
|
||||||
|
@@ -18,7 +18,7 @@ def test_internet_access():
|
||||||
|
def _write_config_file(testdir, entry):
|
||||||
|
config = testdir.tmpdir.join('setup.cfg')
|
||||||
|
config.write("""
|
||||||
|
-[pytest]
|
||||||
|
+[tool:pytest]
|
||||||
|
{}
|
||||||
|
""".format(entry))
|
||||||
|
|
||||||
@@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Feb 15 09:20:39 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Update to 0.3.1:
|
||||||
|
* Fix warnings that occur with pytest-3.7 and later. [#34]
|
||||||
|
- Enable tests
|
||||||
|
- Add patch from upstream to build with pytest-4.2+:
|
||||||
|
* pytest42.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Aug 14 20:03:36 UTC 2018 - toddrme2178@gmail.com
|
Tue Aug 14 20:03:36 UTC 2018 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pytest-remotedata
|
# spec file for package python-pytest-remotedata
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -12,20 +12,23 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# 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-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-pytest-remotedata
|
Name: python-pytest-remotedata
|
||||||
Version: 0.3.0
|
Version: 0.3.1
|
||||||
Release: 0
|
Release: 0
|
||||||
License: BSD-3-Clause
|
|
||||||
Summary: Pytest plugin for controlling remote data access
|
Summary: Pytest plugin for controlling remote data access
|
||||||
Url: https://github.com/astropy/pytest-remotedata
|
License: BSD-3-Clause
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
|
Url: https://github.com/astropy/pytest-remotedata
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/pytest-remotedata/pytest-remotedata-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/pytest-remotedata/pytest-remotedata-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module devel}
|
Patch0: pytest42.patch
|
||||||
|
BuildRequires: %{python_module pytest >= 3.1}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module six}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-pytest >= 3.1
|
Requires: python-pytest >= 3.1
|
||||||
@@ -40,6 +43,7 @@ developers to control unit tests that require access to data from the internet.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pytest-remotedata-%{version}
|
%setup -q -n pytest-remotedata-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@@ -48,6 +52,10 @@ developers to control unit tests that require access to data from the internet.
|
|||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
|
%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)'
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc CHANGES.rst README.rst
|
%doc CHANGES.rst README.rst
|
||||||
%license LICENSE.rst
|
%license LICENSE.rst
|
||||||
|
|||||||
Reference in New Issue
Block a user