forked from pool/python-setuptools_scm
- Update the add-rpmfail-pytest-markers.patch to not have
pin on old pytest OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools_scm?expand=0&rev=55
This commit is contained in:
committed by
Git OBS Bridge
parent
e87ea9f10e
commit
278eb16148
@@ -6,7 +6,7 @@ Index: setuptools_scm-3.3.3/testing/test_regressions.py
|
||||
assert get_version(root=p.strpath, fallback_root=p.strpath) == "1.0"
|
||||
|
||||
|
||||
+@pytest.mark.rpmfail_github_connect
|
||||
+@pytest.mark.xfail(reason="github connection")
|
||||
@pytest.mark.issue(164)
|
||||
def test_pip_download(tmpdir, monkeypatch):
|
||||
monkeypatch.chdir(tmpdir)
|
||||
@@ -18,14 +18,14 @@ Index: setuptools_scm-3.3.3/testing/test_setuptools_support.py
|
||||
)
|
||||
|
||||
|
||||
+@pytest.mark.rpmfail_github_connect
|
||||
+@pytest.mark.xfail(reason="github connection")
|
||||
def test_old_setuptools_fails(get_setuptools_packagedir):
|
||||
packagedir = get_setuptools_packagedir("0.9.8")
|
||||
with pytest.raises(subprocess.CalledProcessError):
|
||||
check(packagedir, "0.9.8")
|
||||
|
||||
|
||||
+@pytest.mark.rpmfail_github_connect
|
||||
+@pytest.mark.xfail(reason="github connection")
|
||||
def test_old_setuptools_allows_with_warnings(get_setuptools_packagedir):
|
||||
|
||||
packagedir = get_setuptools_packagedir("0.9.8")
|
||||
@@ -33,7 +33,7 @@ Index: setuptools_scm-3.3.3/testing/test_setuptools_support.py
|
||||
check(packagedir, "0.9.8", PYTHONWARNINGS="once::Warning")
|
||||
|
||||
|
||||
+@pytest.mark.rpmfail_github_connect
|
||||
+@pytest.mark.xfail(reason="github connection")
|
||||
def test_distlib_setuptools_works(get_setuptools_packagedir):
|
||||
packagedir = get_setuptools_packagedir("12.0.1")
|
||||
check(packagedir, "12.0.1")
|
||||
|
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 1 08:54:02 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Update the add-rpmfail-pytest-markers.patch to not have
|
||||
pin on old pytest
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 18 09:21:17 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
@@ -30,7 +30,6 @@ Version: 3.3.3
|
||||
Release: 0
|
||||
Summary: Python setuptools handler for SCM tags
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/pypa/setuptools_scm
|
||||
Source: https://files.pythonhosted.org/packages/source/s/setuptools_scm/setuptools_scm-%{version}.tar.gz
|
||||
Patch0: add-rpmfail-pytest-markers.patch
|
||||
@@ -42,7 +41,7 @@ BuildArch: noarch
|
||||
%if %{with test}
|
||||
# Testing requirements
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest < 4.0}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools_scm = %{version}}
|
||||
BuildRequires: git-core
|
||||
%endif
|
||||
@@ -70,7 +69,7 @@ in SCM metadata. It also handles file finders for the supperted SCMs.
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
%python_expand PYTHONPATH=%{$python_sitelib} py.test-%{$python_bin_suffix} -v -k 'not (rpmfail_github_connect or test_mercurial or hg)'
|
||||
%pytest -k 'not (test_mercurial or hg)'
|
||||
%endif
|
||||
|
||||
%if !%{with test}
|
||||
|
Reference in New Issue
Block a user