diff --git a/add-rpmfail-pytest-markers.patch b/add-rpmfail-pytest-markers.patch index 3b749e6..565f64d 100644 --- a/add-rpmfail-pytest-markers.patch +++ b/add-rpmfail-pytest-markers.patch @@ -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") diff --git a/python-setuptools_scm.changes b/python-setuptools_scm.changes index 08f99af..009a0c5 100644 --- a/python-setuptools_scm.changes +++ b/python-setuptools_scm.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Nov 1 08:54:02 UTC 2019 - Tomáš Chvátal + +- 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 diff --git a/python-setuptools_scm.spec b/python-setuptools_scm.spec index 3dc6814..5934478 100644 --- a/python-setuptools_scm.spec +++ b/python-setuptools_scm.spec @@ -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}