Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-astropy for openSUSE:Factory checked in at 2025-10-03 16:46:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-astropy (Old) and /work/SRC/openSUSE:Factory/.python-astropy.new.11973 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-astropy" Fri Oct 3 16:46:44 2025 rev:64 rq:1308856 version:7.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-astropy/python-astropy.changes 2025-07-24 18:46:22.835774125 +0200 +++ /work/SRC/openSUSE:Factory/.python-astropy.new.11973/python-astropy.changes 2025-10-03 16:46:48.015946309 +0200 @@ -1,0 +2,5 @@ +Fri Oct 3 11:29:10 UTC 2025 - Ben Greiner <[email protected]> + +- Add astropy-pr18335-jplephem.patch gh#astropy/astropy#18335 + +------------------------------------------------------------------- New: ---- astropy-pr18335-jplephem.patch ----------(New B)---------- New: - Add astropy-pr18335-jplephem.patch gh#astropy/astropy#18335 ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-astropy.spec ++++++ --- /var/tmp/diff_new_pack.TOLf08/_old 2025-10-03 16:46:50.044031397 +0200 +++ /var/tmp/diff_new_pack.TOLf08/_new 2025-10-03 16:46:50.048031565 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-astropy # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2025 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -59,6 +59,8 @@ # 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 +# PATCH-FIX-UPSTREAM astropy-pr18335-jplephem.patch gh#astropy/astropy#18335 +Patch1: https://github.com/astropy/astropy/pull/18335.patch#/astropy-pr18335-jplephem.patch # https://docs.astropy.org/en/stable/install.html#requirements BuildRequires: %{python_module Cython >= 3 with %python-Cython < 4} BuildRequires: %{python_module devel >= 3.11} ++++++ astropy-pr18335-jplephem.patch ++++++ >From e1b7efbee34a6393bcfbc313ce81d4b5a06c6113 Mon Sep 17 00:00:00 2001 From: "P. L. Lim" <[email protected]> Date: Mon, 23 Jun 2025 22:39:44 -0700 Subject: [PATCH] Backport PR #18331 on branch v7.1.x (TST: simplify `jplephem` test case for newer versions) TST: simplify `jplephem` test case for newer versions --- astropy/coordinates/tests/test_solar_system.py | 10 ++++++---- pyproject.toml | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/astropy/coordinates/tests/test_solar_system.py b/astropy/coordinates/tests/test_solar_system.py index 06acc1756c94..781e5c590357 100644 --- a/astropy/coordinates/tests/test_solar_system.py +++ b/astropy/coordinates/tests/test_solar_system.py @@ -24,6 +24,7 @@ from astropy.tests.helper import CI, assert_quantity_allclose from astropy.time import Time from astropy.units import allclose as quantity_allclose +from astropy.utils import minversion from astropy.utils.compat.optional_deps import HAS_JPLEPHEM, HAS_SKYFIELD from astropy.utils.data import download_file, get_pkg_data_filename @@ -395,12 +396,13 @@ def test_ephemeris_wrong_input(ephemeris, expected_error): get_body("earth", Time("1960-01-12 00:00"), ephemeris=ephemeris) +# jplephem<2.23 leaves the file open (a ResourceWarning is emitted) [email protected]( + "error" if minversion("jplephem", "2.23") else "ignore", category=ResourceWarning +) @pytest.mark.skipif(not HAS_JPLEPHEM, reason="requires jplephem") def test_ephemeris_local_file_not_ephemeris(): - # NOTE: This test currently leaves the file open (ResourceWarning). - # To fix this issue, an upstream fix is required in jplephem - # package. - with pytest.warns(ResourceWarning), pytest.raises(ValueError, match="^file starts"): + with pytest.raises(ValueError, match="^file starts"): get_body("earth", Time("1960-01-12 00:00"), ephemeris=__file__) diff --git a/pyproject.toml b/pyproject.toml index 745a6bf823f5..c25cf2310cfa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,6 +53,7 @@ dependencies = [ # Recommended run-time dependencies to enable a lot of functionality within Astropy. recommended = [ "scipy>=1.9.2", + "scipy<1.16 ; platform_system=='Windows'", # temp, https://github.com/astropy/astropy/issues/18333 "matplotlib>=3.6.0", ] # Optional IPython-related behavior is in many places in Astropy. IPython is a complex
