Hello community,

here is the log from the commit of package python-requirementslib for 
openSUSE:Factory checked in at 2020-08-25 12:38:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-requirementslib (Old)
 and      /work/SRC/openSUSE:Factory/.python-requirementslib.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-requirementslib"

Tue Aug 25 12:38:11 2020 rev:6 rq:827758 version:1.5.12

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-requirementslib/python-requirementslib.changes
    2020-07-17 20:45:13.384563718 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-requirementslib.new.3399/python-requirementslib.changes
  2020-08-25 12:38:13.765408385 +0200
@@ -1,0 +2,10 @@
+Wed Aug 19 04:42:13 UTC 2020 - John Vandenberg <[email protected]>
+
+- Remove build dependency on pytest-xdist
+- Add runtime dependency on python2-backports.tempfile
+- Fix injected conftest.py to support older hypothesis
+- Disable running test suite on Python 2 due to hypothesis version
+  incompatibility
+- Re-add LANG in %check
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-requirementslib.spec ++++++
--- /var/tmp/diff_new_pack.r5Vt0g/_old  2020-08-25 12:38:14.517408527 +0200
+++ /var/tmp/diff_new_pack.r5Vt0g/_new  2020-08-25 12:38:14.521408527 +0200
@@ -53,6 +53,7 @@
 Requires:       python-vistir >= 0.3.0
 BuildArch:      noarch
 %ifpython2
+Requires:       python-backports.tempfile
 Requires:       python-scandir
 Requires:       python-typing
 %endif
@@ -72,7 +73,6 @@
 BuildRequires:  %{python_module pip-shims}
 BuildRequires:  %{python_module plette}
 BuildRequires:  %{python_module pytest-timeout}
-BuildRequires:  %{python_module pytest-xdist}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module requests}
 BuildRequires:  %{python_module six >= 1.11.0}
@@ -80,6 +80,7 @@
 BuildRequires:  %{python_module twine}
 BuildRequires:  %{python_module vistir >= 0.3.0}
 %if %{with python2}
+BuildRequires:  python-backports.tempfile
 BuildRequires:  python-scandir
 BuildRequires:  python-typing
 %endif
@@ -110,6 +111,8 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
+export LANG=en_US.UTF-8
+
 # many tests need internet 
https://github.com/sarugaku/requirementslib/issues/145
 # most tests are marked properly
 skip_tests="needs_internet"
@@ -124,9 +127,15 @@
 cat >> tests/conftest.py <<EOF
 
 from hypothesis import settings
-settings.register_profile("obs", deadline=1000)
+try:
+    settings.register_profile("obs", deadline=1000)
+except TypeError:
+    settings.register_profile("obs", settings(deadline=1000))
 EOF
-%pytest tests -k "not ($skip_tests)" --hypothesis-profile=obs
+%{python_expand PYTHON_VERSION=%{$python_version}
+if [[ ${PYTHON_VERSION:0:1} -eq 3 ]]; then
+  PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m pytest tests -k "not 
($skip_tests)" --hypothesis-profile=obs
+fi}
 
 %files %{python_files}
 %doc CHANGELOG.rst README.rst docs/quickstart.rst


Reply via email to