Hello community, here is the log from the commit of package python-hypothesis for openSUSE:Factory checked in at 2018-09-07 15:35:03 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-hypothesis (Old) and /work/SRC/openSUSE:Factory/.python-hypothesis.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-hypothesis" Fri Sep 7 15:35:03 2018 rev:27 rq:633460 version:3.66.6 Changes: -------- --- /work/SRC/openSUSE:Factory/python-hypothesis/python-hypothesis.changes 2018-09-04 22:49:28.103623215 +0200 +++ /work/SRC/openSUSE:Factory/.python-hypothesis.new/python-hypothesis.changes 2018-09-07 15:35:06.126819355 +0200 @@ -1,0 +2,12 @@ +Wed Sep 5 10:02:37 UTC 2018 - Matěj Cepl <mc...@suse.com> + +- Precompile Python files to avoid troubles with mtime and magic values. + +------------------------------------------------------------------- +Tue Sep 4 16:01:22 UTC 2018 - Matěj Cepl <mc...@suse.com> + +- Clean up SPEC +- Add %check section, but make it disabled per default (circular + dependency on pytest) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-hypothesis.spec ++++++ --- /var/tmp/diff_new_pack.w5Pn23/_old 2018-09-07 15:35:06.958818418 +0200 +++ /var/tmp/diff_new_pack.w5Pn23/_new 2018-09-07 15:35:06.958818418 +0200 @@ -23,6 +23,9 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python %bcond_without python2 +# Unfortunately we cannot test by default, because of the circular +# dependency on pytest +%bcond_with test Name: python-hypothesis Version: 3.66.6 Release: 0 @@ -43,12 +46,14 @@ Recommends: python-pytest >= 2.8.0 Recommends: python-pytz BuildArch: noarch +%if %{with test} # SECTION test requirements BuildRequires: %{python_module attrs >= 16.0.0} BuildRequires: %{python_module coverage} BuildRequires: %{python_module flaky} BuildRequires: %{python_module mock} BuildRequires: %{python_module pytest >= 2.8.0} +%endif # /SECTION %if %{with python2} BuildRequires: python-enum34 @@ -78,7 +83,18 @@ %install %python_install -%python_expand %fdupes %{buildroot}%{$python_sitelib} +%{python_expand \ +$python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/hypothesis/ +$python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/hypothesis/ +%fdupes %{buildroot}%{$python_sitelib} +} + +%if %{with test} +%check +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} +py.test-%{$python_bin_suffix} test +} +%endif %files %{python_files} %doc ../CITATION README.rst