- Really run the tests
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testtools?expand=0&rev=57
This commit is contained in:
parent
5962f9135b
commit
1b3076928a
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Aug 11 08:04:56 UTC 2018 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Really run the tests
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 4 04:07:32 UTC 2017 - tbechtold@suse.com
|
Tue Jul 4 04:07:32 UTC 2017 - tbechtold@suse.com
|
||||||
|
|
||||||
|
@ -23,21 +23,16 @@ Release: 0
|
|||||||
Summary: Documentation for python-testtools
|
Summary: Documentation for python-testtools
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Documentation/HTML
|
Group: Documentation/HTML
|
||||||
Url: https://launchpad.net/testtools
|
URL: https://launchpad.net/testtools
|
||||||
Source: https://pypi.io/packages/source/t/testtools/testtools-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/t/testtools/testtools-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module testtools = %{version}}
|
Patch0: testtools-py37.patch
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: %{python_module testscenarios}
|
||||||
%if %{with tests}
|
BuildRequires: %{python_module testtools = %{version}}
|
||||||
# Test requirement
|
|
||||||
BuildRequires: %{python_module testscenarios = %{version}}
|
|
||||||
BuildRequires: %{python_module unittest2 >= 0.8.0}
|
|
||||||
%endif
|
|
||||||
# Documentation requirements:
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python3-Sphinx
|
BuildRequires: python3-Sphinx
|
||||||
Provides: python2-testtools-doc = %{version}
|
Provides: python2-testtools-doc = %{version}
|
||||||
Provides: python3-testtools-doc = %{version}
|
Provides: python3-testtools-doc = %{version}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -45,6 +40,7 @@ Documentation and help files for python-testtools.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n testtools-%{version}
|
%setup -q -n testtools-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||||
@ -54,16 +50,11 @@ mkdir -p %{buildroot}%{_docdir}/python-testtools/
|
|||||||
cp -r build/sphinx/html %{buildroot}%{_docdir}/python-testtools/
|
cp -r build/sphinx/html %{buildroot}%{_docdir}/python-testtools/
|
||||||
%fdupes %{buildroot}%{_docdir}
|
%fdupes %{buildroot}%{_docdir}
|
||||||
|
|
||||||
# A build cycle exists between python-extras and python-testtools.
|
|
||||||
# Doing the tests in a separate package avoids this cycle.
|
|
||||||
%if %{with tests}
|
|
||||||
%check
|
%check
|
||||||
%{python_exec} -m testtools.run testtools.tests.test_suite
|
%python_exec -m testtools.run testtools.tests.test_suite
|
||||||
%endif
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%license LICENSE
|
||||||
%doc LICENSE
|
|
||||||
%{_docdir}/python-testtools/
|
%{_docdir}/python-testtools/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -3,7 +3,6 @@ Fri Aug 10 11:27:08 UTC 2018 - tchvatal@suse.com
|
|||||||
|
|
||||||
- Add patch to build with python 3.7:
|
- Add patch to build with python 3.7:
|
||||||
* testtools-py37.patch
|
* testtools-py37.patch
|
||||||
- Remove unittest2 dependency, it is needed only on python2.6
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Mar 8 10:17:39 UTC 2018 - aplanas@suse.com
|
Thu Mar 8 10:17:39 UTC 2018 - aplanas@suse.com
|
||||||
|
@ -36,6 +36,7 @@ Requires: python-pbr >= 0.11
|
|||||||
Requires: python-python-mimeparse
|
Requires: python-python-mimeparse
|
||||||
Requires: python-six >= 1.4.0
|
Requires: python-six >= 1.4.0
|
||||||
Requires: python-traceback2
|
Requires: python-traceback2
|
||||||
|
Requires: python-unittest2
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if 0%{?suse_version} >= 1000 || 0%{?fedora_version} >= 24
|
%if 0%{?suse_version} >= 1000 || 0%{?fedora_version} >= 24
|
||||||
Recommends: python-fixtures >= 1.3.0
|
Recommends: python-fixtures >= 1.3.0
|
||||||
@ -51,6 +52,7 @@ also ports recent unittest changes all the way back to Python 2.4.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n testtools-%{version}
|
%setup -q -n testtools-%{version}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user