Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-sunpy for openSUSE:Factory 
checked in at 2022-04-05 19:55:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-sunpy (Old)
 and      /work/SRC/openSUSE:Factory/.python-sunpy.new.1900 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-sunpy"

Tue Apr  5 19:55:58 2022 rev:12 rq:967021 version:3.1.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-sunpy/python-sunpy.changes        
2022-04-04 19:26:58.856132425 +0200
+++ /work/SRC/openSUSE:Factory/.python-sunpy.new.1900/python-sunpy.changes      
2022-04-05 19:56:30.525527627 +0200
@@ -1,0 +2,9 @@
+Tue Apr  5 10:11:48 UTC 2022 - Ben Greiner <c...@bnavigator.de>
+
+- Add sunpy-test-ignore-warnings.patch
+  * Ignore Python 3.10 distutils usage
+  * Add hypothesis profile for slow obs test suite executions
+  * Ignore leap second warnings for reproducible tests
+    gh#sunpy/sunpy#6030
+
+-------------------------------------------------------------------

New:
----
  sunpy-test-ignore-warnings.patch

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

Other differences:
------------------
++++++ python-sunpy.spec ++++++
--- /var/tmp/diff_new_pack.8jxwWb/_old  2022-04-05 19:56:31.121520982 +0200
+++ /var/tmp/diff_new_pack.8jxwWb/_new  2022-04-05 19:56:31.125520938 +0200
@@ -26,6 +26,8 @@
 URL:            https://github.com/sunpy/sunpy
 Source0:        
https://files.pythonhosted.org/packages/source/s/sunpy/sunpy-%{version}.tar.gz
 Source100:      python-sunpy-rpmlintrc
+# PATCH-FIX-OPENSSUSE sunpy-test-ignore-warnings.patch -- g#sunpy/sunpy#6030
+Patch1:         sunpy-test-ignore-warnings.patch
 BuildRequires:  %{python_module aioftp}
 BuildRequires:  %{python_module asdf >= 2.6}
 BuildRequires:  %{python_module astropy >= 4.2}
@@ -120,8 +122,6 @@
 %prep
 %autosetup -p1 -n sunpy-%{version}
 sed -i -e '/^#!\//, 1d' sunpy/extern/appdirs.py
-# Ignore Python 3.10 deprecation warning about distutils
-sed -i '/ignore:Distutils/ a \    ignore:The distutils.sysconfig 
module:DeprecationWarning' setup.cfg
 chmod -x sunpy/data/test/cor1_20090615_000500_s4c1A.fts
 
 %build

++++++ sunpy-test-ignore-warnings.patch ++++++
Index: sunpy-3.1.5/setup.cfg
===================================================================
--- sunpy-3.1.5.orig/setup.cfg
+++ sunpy-3.1.5/setup.cfg
@@ -141,6 +141,9 @@ filterwarnings =
        ignore:invalid value encountered in less:RuntimeWarning
        ignore:Please use `gaussian_filter` from the `scipy.ndimage` 
namespace:DeprecationWarning
        ignore:Please use `laplace` from the `scipy.ndimage` 
namespace:DeprecationWarning
+       ignore:The distutils.sysconfig module:DeprecationWarning
+       ignore:leap-second file is 
expired:astropy.utils.iers.iers.IERSStaleWarning
+       ignore:ERFA function.*dubious year:astropy.utils.exceptions.ErfaWarning
 
 [pycodestyle]
 max_line_length = 110
Index: sunpy-3.1.5/sunpy/conftest.py
===================================================================
--- sunpy-3.1.5.orig/sunpy/conftest.py
+++ sunpy-3.1.5/sunpy/conftest.py
@@ -3,6 +3,7 @@ import logging
 import tempfile
 import importlib
 
+import hypothesis
 import pytest
 
 import astropy
@@ -32,6 +33,14 @@ collect_ignore = ["data/sample.py"]
 console_logger = logging.getLogger()
 console_logger.setLevel('INFO')
 
+hypothesis.settings.register_profile(
+    'obs',
+    deadline=5000,
+    suppress_health_check=[hypothesis.HealthCheck.too_slow]
+)
+# this loads the profile after the pytest header printout, so don't be 
confused by the
+# 'default' there.
+hypothesis.settings.load_profile('obs')
 
 @pytest.fixture(scope='session', autouse=True)
 def tmp_config_dir(request):

Reply via email to