forked from pool/python-setuptools_scm
Accepting request 507869 from devel:languages:python
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/507869 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-setuptools_scm?expand=0&rev=8
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 26 14:09:51 UTC 2017 - jmatejek@suse.com
|
||||||
|
|
||||||
|
- also do not buildrequire mercurial unless specified
|
||||||
|
- bcond_with test to run the test suite
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed May 17 22:32:38 UTC 2017 - dimstar@opensuse.org
|
Wed May 17 22:32:38 UTC 2017 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
@@ -16,6 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%bcond_with test
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-setuptools_scm
|
Name: python-setuptools_scm
|
||||||
Version: 1.15.0
|
Version: 1.15.0
|
||||||
@@ -30,9 +31,12 @@ Patch0: no-generic-python.patch
|
|||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
%if %{with test}
|
||||||
# Testing requirements
|
# Testing requirements
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
|
BuildRequires: git
|
||||||
BuildRequires: mercurial
|
BuildRequires: mercurial
|
||||||
|
%endif
|
||||||
Requires: python-setuptools
|
Requires: python-setuptools
|
||||||
Recommends: git
|
Recommends: git
|
||||||
Recommends: mecurial
|
Recommends: mecurial
|
||||||
@@ -48,9 +52,6 @@ in scm metadata. It also handles file finders for the supperted scm's.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n setuptools_scm-%{version}
|
%setup -q -n setuptools_scm-%{version}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
# We can't pull in git into the build root, as this causes a nasty build cycle
|
|
||||||
# git - curl - nghttp2 - setuptools - git
|
|
||||||
rm testing/test_{git,regressions}.py
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@@ -58,8 +59,10 @@ rm testing/test_{git,regressions}.py
|
|||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
|
||||||
|
%if %{with test}
|
||||||
%check
|
%check
|
||||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix}
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix}
|
||||||
|
%endif
|
||||||
|
|
||||||
%files %python_files
|
%files %python_files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
Reference in New Issue
Block a user