14
0

Accepting request 690649 from home:mcepl:branches:devel:languages:python

- Original patch by John Vandenberg, modified:
    - Move pytest -k test exclusions into add-rpmfail-pytest-markers.patch
      to clarify the reason for those failures
    - Refine runtime Recommends from git to git-core

OBS-URL: https://build.opensuse.org/request/show/690649
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools_scm?expand=0&rev=45
This commit is contained in:
Tomáš Chvátal
2019-04-02 15:43:53 +00:00
committed by Git OBS Bridge
parent 7091e00550
commit 0ebc7619d7
3 changed files with 50 additions and 3 deletions

View File

@@ -36,6 +36,7 @@ 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
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -46,10 +47,10 @@ BuildArch: noarch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools_scm = %{version}}
BuildRequires: git
BuildRequires: git-core
%endif
%if 0%{?suse_version} || 0%{?fedora_version} >= 24
Recommends: git
Recommends: git-core
%endif
%python_subpackages
@@ -59,6 +60,7 @@ in SCM metadata. It also handles file finders for the supperted SCMs.
%prep
%setup -q -n setuptools_scm-%{version}
%autopatch -p1
rm tox.ini
%build
@@ -72,7 +74,7 @@ rm tox.ini
%if %{with test}
%check
%python_expand PYTHONPATH=%{$python_sitelib} py.test-%{$python_bin_suffix} -v -k 'not (test_pip_download or test_old_setuptools_fails or test_old_setuptools_allows_with_warnings or test_distlib_setuptools_works or test_mercurial or hg)'
%python_expand PYTHONPATH=%{$python_sitelib} py.test-%{$python_bin_suffix} -v -k 'not rpmfail_github_connect'
%endif
%files %{python_files}