Accepting request 354717 from home:TheBlackCat:branches:devel:languages:python
- Run tests in -doc package to avoid dependency loops - Actually run the tests. They weren't previously being run. OBS-URL: https://build.opensuse.org/request/show/354717 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-six?expand=0&rev=42
This commit is contained in:
parent
7d448c46c2
commit
6dcd5708d8
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 19 09:07:19 UTC 2016 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Run tests in -doc package to avoid dependency loops
|
||||||
|
* python-setuptools -> python-six -> python-py -> python-setuptools
|
||||||
|
* python-setuptools -> python-six -> python-pytest -> python-setuptools
|
||||||
|
- Actually run the tests. They weren't previously being run.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Oct 9 08:17:49 UTC 2015 - mcihar@suse.cz
|
Fri Oct 9 08:17:49 UTC 2015 - mcihar@suse.cz
|
||||||
|
|
||||||
|
@ -25,8 +25,12 @@ License: MIT
|
|||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
Source: http://pypi.python.org/packages/source/s/six/six-%{version}.tar.gz
|
Source: http://pypi.python.org/packages/source/s/six/six-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildRequires: python-six
|
||||||
|
# Documentation requirements:
|
||||||
BuildRequires: python-Sphinx
|
BuildRequires: python-Sphinx
|
||||||
BuildRequires: python-devel
|
# Test requirements:
|
||||||
|
BuildRequires: python-py
|
||||||
|
BuildRequires: python-pytest
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -45,6 +49,16 @@ what is provided.
|
|||||||
cd documentation && make html && rm _build/html/.buildinfo
|
cd documentation && make html && rm _build/html/.buildinfo
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
# only build documentation
|
||||||
|
|
||||||
|
# Run tests here to avoid dependency loop
|
||||||
|
%check
|
||||||
|
mkdir test
|
||||||
|
cp test_six.py test
|
||||||
|
pushd test
|
||||||
|
py.test test_six.py
|
||||||
|
popd
|
||||||
|
rm -rf test
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 19 09:07:19 UTC 2016 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Run tests in -doc package to avoid dependency loops
|
||||||
|
* python-setuptools -> python-six -> python-py -> python-setuptools
|
||||||
|
* python-setuptools -> python-six -> python-pytest -> python-setuptools
|
||||||
|
- Actually run the tests. They weren't previously being run.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Oct 9 08:17:49 UTC 2015 - mcihar@suse.cz
|
Fri Oct 9 08:17:49 UTC 2015 - mcihar@suse.cz
|
||||||
|
|
||||||
|
@ -15,11 +15,6 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
# NOTE(saschpe): git invocation and pythonpath issues with testrepository
|
|
||||||
# enable testing with a build conditional (off by default):
|
|
||||||
%bcond_with test
|
|
||||||
|
|
||||||
Name: python-six
|
Name: python-six
|
||||||
Version: 1.10.0
|
Version: 1.10.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -30,19 +25,12 @@ Group: Development/Libraries/Python
|
|||||||
Source: http://pypi.python.org/packages/source/s/six/six-%{version}.tar.gz
|
Source: http://pypi.python.org/packages/source/s/six/six-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
%if %{with test}
|
|
||||||
# Test requirements:
|
|
||||||
BuildRequires: python-py
|
|
||||||
BuildRequires: python-pytest
|
|
||||||
%endif
|
|
||||||
%if 0%{?suse_version} <= 1110
|
%if 0%{?suse_version} <= 1110
|
||||||
BuildRequires: python-argparse
|
BuildRequires: python-argparse
|
||||||
Requires: python-argparse
|
Requires: python-argparse
|
||||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
||||||
%else
|
|
||||||
BuildArch: noarch
|
|
||||||
%py_requires
|
|
||||||
%endif
|
%endif
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Six is a Python 2 and 3 compatibility library. It provides utility
|
Six is a Python 2 and 3 compatibility library. It provides utility
|
||||||
@ -62,10 +50,9 @@ python setup.py build
|
|||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
|
|
||||||
%if %{with test}
|
# Run tests in -doc package to avoid dependency loop
|
||||||
%check
|
# %check
|
||||||
python test_six.py
|
# python test_six.py
|
||||||
%endif
|
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
# previous versions of the package installed .egg-info as a directory,
|
# previous versions of the package installed .egg-info as a directory,
|
||||||
@ -78,6 +65,6 @@ fi
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc LICENSE README
|
%doc LICENSE README
|
||||||
%{python_sitelib}/six.py*
|
%{python_sitelib}/six.py*
|
||||||
%{python_sitelib}/six-%{version}-py%{py_ver}.egg-info
|
%{python_sitelib}/six-%{version}-py*.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user