Hello community, here is the log from the commit of package python-astropy for openSUSE:Factory checked in at 2020-07-06 16:31:28 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-astropy (Old) and /work/SRC/openSUSE:Factory/.python-astropy.new.3060 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-astropy" Mon Jul 6 16:31:28 2020 rev:11 rq:818935 version:4.0.1.post1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-astropy/python-astropy.changes 2020-06-03 20:32:22.329146180 +0200 +++ /work/SRC/openSUSE:Factory/.python-astropy.new.3060/python-astropy.changes 2020-07-06 16:34:10.112061173 +0200 @@ -1,0 +2,9 @@ +Sun Jul 5 12:24:49 UTC 2020 - Benjamin Greiner <[email protected]> + +- Fix conftest collection error: import local source dir for tests +- Remove ignore pytest deprecation fixed by pytest-doctestplus >= 0.6 +- Ignore leap second expiry and dubious year warnings for + reproducible builds: gh#astropy/astropy#10228 + astropy-openSUSE-ignore-warnings.patch + +------------------------------------------------------------------- New: ---- astropy-openSUSE-ignore-warnings.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-astropy.spec ++++++ --- /var/tmp/diff_new_pack.3Y3kda/_old 2020-07-06 16:34:11.688066024 +0200 +++ /var/tmp/diff_new_pack.3Y3kda/_new 2020-07-06 16:34:11.692066036 +0200 @@ -34,6 +34,7 @@ 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 @@ -95,7 +96,7 @@ BuildRequires: %{python_module objgraph} BuildRequires: %{python_module pytest >= 3.1} BuildRequires: %{python_module pytest-astropy} -BuildRequires: %{python_module pytest-doctestplus} +BuildRequires: %{python_module pytest-doctestplus >= 0.6} BuildRequires: %{python_module pytest-mpl} # /SECTION %endif @@ -109,6 +110,7 @@ %prep %setup -q -n astropy-%{version} +%patch0 -p1 # Make sure bundled libs are not used rm -rf cextern/expat @@ -153,17 +155,16 @@ %check %if %{with test} -export PYTHONDONTWRITEBYTECODE=1 # 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) %ifarch aarch64 # doctest failure because of precision errors %define skippytest -k 'not bayesian_info_criterion_lsq' %endif -%{pytest_arch -W "ignore:the imp module is deprecated:DeprecationWarning" \ - -W "ignore:Unknown pytest.mark.openfiles_ignore:pytest.PytestUnknownMarkWarning" \ - --ignore "docs/whatsnew" %{?skippytest} -} +%pytest_arch --ignore 'docs/whatsnew' %{?skippytest} %endif %if !%{with test} ++++++ astropy-openSUSE-ignore-warnings.patch ++++++ From: Benjamin Greiner <[email protected]> Date: 2020-07-05 13:43:14 +0200 Subject: ignore test warnings for reproducible builds References: gh#astropy/astropy#10228 Upstream: discussed on github, but openSUSE specific Ignore leap-second and dubious year warnings for reproducible builds. Patching setup.cfg instead of -W option for python/pytest call because regular expressions do not work for the latter. --- astropy-4.0.1.post1.orig/setup.cfg 2020-04-02 03:18:04.000000000 +0200 +++ astropy-4.0.1.post1/setup.cfg 2020-07-05 13:43:14.132689750 +0200 @@ -120,6 +120,9 @@ ignore:PY_SSIZE_T_CLEAN will be required for '#' formats ignore:::astropy.tests.plugins.display ignore:::astropy.tests.disable_internet + ignore:the imp module is deprecated:DeprecationWarning + ignore:leap-second file is expired:astropy.utils.iers.iers.IERSStaleWarning + ignore:ERFA function.*dubious year:astropy.utils.exceptions.ErfaWarning [bdist_wininst] bitmap = static/wininst_background.bmp
