Hello community,

here is the log from the commit of package python-photutils for 
openSUSE:Factory checked in at 2020-07-16 12:15:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-photutils (Old)
 and      /work/SRC/openSUSE:Factory/.python-photutils.new.3592 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-photutils"

Thu Jul 16 12:15:39 2020 rev:6 rq:820967 version:0.7.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-photutils/python-photutils.changes        
2020-01-25 13:25:15.516065438 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-photutils.new.3592/python-photutils.changes  
    2020-07-16 12:17:01.970878581 +0200
@@ -1,0 +2,7 @@
+Mon Jul 13 18:40:46 UTC 2020 - Benjamin Greiner <c...@bnavigator.de>
+
+- fix failing tests: use astropy's test suite logic to call pytest 
+- add URL for 0001-aperture-mask-test-assert-almost-equal.patch
+  gh#astropy/photutils#1014
+
+-------------------------------------------------------------------

Old:
----
  _service

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

Other differences:
------------------
++++++ python-photutils.spec ++++++
--- /var/tmp/diff_new_pack.NSABYK/_old  2020-07-16 12:17:02.722879340 +0200
+++ /var/tmp/diff_new_pack.NSABYK/_new  2020-07-16 12:17:02.726879345 +0200
@@ -26,7 +26,7 @@
 Group:          Productivity/Scientific/Astronomy
 URL:            https://github.com/astropy/photutils
 Source:         
https://files.pythonhosted.org/packages/source/p/photutils/photutils-%{version}.tar.gz
-Patch0:         0001-aperture-mask-test-assert-almost-equal.patch
+Patch0:         
https://github.com/astropy/photutils/pull/1014.patch#/0001-aperture-mask-test-assert-almost-equal.patch
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module numpy-devel >= 1.13}
 BuildRequires:  %{python_module setuptools}
@@ -42,7 +42,6 @@
 # SECTION test requirements
 BuildRequires:  %{python_module astropy >= 2.0}
 BuildRequires:  %{python_module astropy-helpers >= 2.0}
-BuildRequires:  %{python_module coverage}
 BuildRequires:  %{python_module pytest-astropy >= 0.7}
 BuildRequires:  %{python_module scikit-image >= 0.14.2}
 BuildRequires:  %{python_module scikit-learn >= 0.19}
@@ -69,7 +68,13 @@
 %python_expand %fdupes %{buildroot}%{$python_sitearch}
 
 %check
-%python_exec setup.py test --skip-docs
+# do not import source dir without extensions
+cd .. 
+# Use astropy test suite logic. Calling pytest directly would require
+# duplicate in-place building of extensions.
+%{python_expand export PYTHONPATH="%{buildroot}%{$python_sitearch}"
+$python -B -c "import photutils; photutils.test(args=\"-v\")"
+}
 
 %files %{python_files}
 %doc CHANGES.rst README.rst

++++++ 0001-aperture-mask-test-assert-almost-equal.patch ++++++
--- /var/tmp/diff_new_pack.NSABYK/_old  2020-07-16 12:17:02.742879361 +0200
+++ /var/tmp/diff_new_pack.NSABYK/_new  2020-07-16 12:17:02.746879365 +0200
@@ -8,10 +8,10 @@
  1 file changed, 3 insertions(+), 3 deletions(-)
 
 diff --git a/photutils/aperture/tests/test_mask.py 
b/photutils/aperture/tests/test_mask.py
-index fb9bff9a..47f64bf7 100644
+index fb9bff9a3..47f64bf71 100644
 --- a/photutils/aperture/tests/test_mask.py
 +++ b/photutils/aperture/tests/test_mask.py
-@@ -5,7 +5,7 @@ Tests for the mask module.
+@@ -5,7 +5,7 @@
  
  import astropy.units as u
  import numpy as np
@@ -38,6 +38,3 @@
  
      # test that multiply() returns a copy
      data[25, 25] = 100. * u.adu
--- 
-2.25.0
-


Reply via email to