Hello community,

here is the log from the commit of package python-astropy for openSUSE:Factory 
checked in at 2020-07-10 14:13:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-astropy (Old)
 and      /work/SRC/openSUSE:Factory/.python-astropy.new.3060 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-astropy"

Fri Jul 10 14:13:29 2020 rev:12 rq:819886 version:4.0.1.post1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-astropy/python-astropy.changes    
2020-07-06 16:34:10.112061173 +0200
+++ /work/SRC/openSUSE:Factory/.python-astropy.new.3060/python-astropy.changes  
2020-07-10 14:13:31.987657887 +0200
@@ -1,0 +2,10 @@
+Thu Jul  9 23:14:09 UTC 2020 - Benjamin Greiner <[email protected]>
+
+- Switch from pytest macro back to astropy.test()
+  This avoids compiling a second time inplace and obsoletes the
+  necessary deprecation warningsfilters. New deprecation warnings
+  from numpy 1.19 started to fail the test multibuild again.
+  Can now drop astropy-openSUSE-ignore-warnings.patch
+- Fix update-alternatives warnings by expanding the loop early 
+
+-------------------------------------------------------------------

Old:
----
  astropy-openSUSE-ignore-warnings.patch

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

Other differences:
------------------
++++++ python-astropy.spec ++++++
--- /var/tmp/diff_new_pack.zHEl1x/_old  2020-07-10 14:13:33.635663300 +0200
+++ /var/tmp/diff_new_pack.zHEl1x/_new  2020-07-10 14:13:33.639663314 +0200
@@ -34,7 +34,6 @@
 License:        BSD-3-Clause
 URL:            https://astropy.org
 Source:         
https://files.pythonhosted.org/packages/source/a/astropy/astropy-%{version}.tar.gz
-Patch0:         astropy-openSUSE-ignore-warnings.patch
 # Mark wcs headers as false positives for devel-file-in-non-devel-package
 # These are used by the python files so they must be available.
 Source100:      python-astropy-rpmlintrc
@@ -81,6 +80,7 @@
 BuildRequires:  %{python_module Jinja2}
 BuildRequires:  %{python_module PyYAML}
 BuildRequires:  %{python_module asdf >= 2.5}
+BuildRequires:  %{python_module astropy}
 BuildRequires:  %{python_module beautifulsoup4}
 BuildRequires:  %{python_module bleach}
 BuildRequires:  %{python_module h5py}
@@ -108,9 +108,9 @@
 Python. It also provides an index for other astronomy packages and tools for
 managing them.
 
+%if !%{with test}
 %prep
 %setup -q -n astropy-%{version}
-%patch0 -p1
 
 # Make sure bundled libs are not used
 rm -rf cextern/expat
@@ -122,12 +122,9 @@
 echo "use_system_libraries=1" >> setup.cfg
 
 %build
-%if !%{with test}
 %python_build --use-system-libraries --offline
-%endif
 
 %install
-%if !%{with test}
 %python_install --use-system-libraries --offline
 for b in %{binaries}; do
   %python_clone -a %{buildroot}%{_bindir}/$b
@@ -153,43 +150,28 @@
 }
 %endif
 
-%check
 %if %{with test}
-# http://docs.astropy.org/en/latest/development/testguide.html#running-tests
-%python_exec setup.py build_ext --inplace --offline
-# import from local source dir for proper conftest.py collection 
-# and using above inplace built extensions
-export PYTHONPATH=$(pwd)
+%check
 %ifarch aarch64
 # doctest failure because of precision errors
-  %define skippytest -k 'not bayesian_info_criterion_lsq'
+  %define skip_pytest -k 'not bayesian_info_criterion_lsq'
 %endif
-%pytest_arch --ignore 'docs/whatsnew' %{?skippytest}
+# http://docs.astropy.org/en/latest/development/testguide.html#running-tests
+# running pytest directly would require building the extensions inplace
+%python_exec -B -c "import astropy; astropy.test(args=\"-v %{?skip_pytest}\")"
 %endif
 
 %if !%{with test}
 %post
-for b in %{binaries}; do
-  %python_install_alternative $b
-done
+%{expand:%(for b in %{binaries}; do echo "%%python_install_alternative $b"; 
done)}
 
 %postun
-for b in %{binaries}; do
-  %python_uninstall_alternative $b
-done
+%{expand:%(for b in %{binaries}; do echo "%%python_uninstall_alternative $b"; 
done)}
 
 %files %{python_files}
 %doc CHANGES.rst README.rst
 %license licenses/*
-%python_alternative %{_bindir}/fitsdiff
-%python_alternative %{_bindir}/fitsheader
-%python_alternative %{_bindir}/fitscheck
-%python_alternative %{_bindir}/fitsinfo
-%python_alternative %{_bindir}/fits2bitmap
-%python_alternative %{_bindir}/samp_hub
-%python_alternative %{_bindir}/showtable
-%python_alternative %{_bindir}/volint
-%python_alternative %{_bindir}/wcslint
+%{expand:%(for b in %{binaries}; do echo "%%python_alternative 
%%{_bindir}/$b"; done)}
 %{python_sitearch}/astropy/
 %{python_sitearch}/astropy-%{version}-py*.egg-info
 %endif


Reply via email to