14
0

- fix singlespec build

- no-generic-python.patch - run tests with the right python executable
  to prevent stray pyc files where they don't belong

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools_scm?expand=0&rev=15
This commit is contained in:
Jan Matejek
2017-03-03 17:12:33 +00:00
committed by Git OBS Bridge
parent 21cda41eba
commit 086506b428
3 changed files with 45 additions and 2 deletions

View File

@@ -25,6 +25,8 @@ 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
# PATCH-FIX-UPSTREAM use sys.executable for running python in test_regressions.py
Patch0: no-generic-python.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
@@ -32,7 +34,7 @@ BuildRequires: python-rpm-macros
BuildRequires: %{python_module pytest}
BuildRequires: git
BuildRequires: mercurial
Requires: %{python_module setuptools}
Requires: python-setuptools
Recommends: git
Recommends: mecurial
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -46,6 +48,7 @@ in scm metadata. It also handles file finders for the supperted scm's.
%prep
%setup -q -n setuptools_scm-%{version}
%patch0 -p1
%build
%python_build
@@ -54,7 +57,7 @@ in scm metadata. It also handles file finders for the supperted scm's.
%python_install
%check
%python_expand PYTHONPATH=%{buildroot}%{python_sitelib} py.test-%{python_version}
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix}
%files %python_files
%defattr(-,root,root,-)