Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-yt for openSUSE:Factory checked in at 2024-02-16 21:42:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-yt (Old) and /work/SRC/openSUSE:Factory/.python-yt.new.1815 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-yt" Fri Feb 16 21:42:54 2024 rev:8 rq:1147119 version:4.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-yt/python-yt.changes 2023-10-04 22:32:50.590659241 +0200 +++ /work/SRC/openSUSE:Factory/.python-yt.new.1815/python-yt.changes 2024-02-16 21:43:00.483112598 +0100 @@ -1,0 +2,77 @@ +Wed Feb 14 20:49:08 UTC 2024 - Ben Greiner <[email protected]> + +- Update to 4.3.0 + * This is the first version with support to CPython 3.12. + * We've resolved all remaining compatibility issues with Cython + 3. + ## New features + * #4449 Add support for symlog colorbars with arbitrary bases, by + @neutrinoceros (issue #4448) + * #4455 Add support for passing field keys for colors and + linewidth in streamline plot annotations, by @neutrinoceros + (issue #4454) + * #4527 Add QuadrilinearFieldInterpolator, by @brittonsmith + * #4553 Store basic software info in png metadata, by @Xarthisius + * #4556 Add option to include min/max limits on the color field + for export_sketchfab, by @evenoconnor + * #4658 Allow annotate_grids to force cmap to respect max_levels, + by @zingale + * #4642 + #4662 Make unused pixels actually transparent in all + imshow-based 2D visualisations, by @neutrinoceros (issue #4639 + by @vdbma) + * #4481 Add the ability to set the transfer function label + fontsize, by @zingale + ## Frontends + * #4562 Athena++ stretched grids support, by @jzuhone (issues + #1585 by @Yurlungur, #3389 by @smressle, #3619 by + @neutrinoceros and #4557 by @matthewturk) + * #4572 Species handling for the stream frontend, by @jzuhone + * #4470 + #4605 Update GIZMO frontend to handle newer GIZMO + versions, by @mtryan83 + * #4424 Support for sinks in csv format for RAMSES frontend, by + @Lenoble-lab +- Release 4.2.x + * This is the second feature release in the yt 4.x series. It + also comes with some important bug fixes. + * Some deprecations are now expired, some minor backward + incompatibilities are expected. Anything broken on purpose in + this version should correspond to a warning in yt 4.1.x, + anything beyond that should be considered a regression; please + report any unexpected breaking change. + ## Highlights + * Multiple improvements (detection, validation, uage) for EWAH + files (#4307, #4426) + * yt can now be installed with frontend specific optional + dependencies with pip (#4272) + * Plugin frontends can now seamlessly hook into yt.load() (#4285) + * Off-axis projections are now supported for non-SPH particle + (#4440) + ## New features + * #4175 Improvements to field_to_include specifications in + create_firefly_object, by @mtryan83 (issue #4174) + * #4198 + #4249 Automatically find EWAH files with increased + index_order2, by @jzuhone (issue #3487 by @chummels) + * #4205 Add upward directory lookup for local configuration file, + by @neutrinoceros (issue #3953) + * #4222 Two new features for writing FITS images, by @jzuhone + * #4272 Add support for installing yt with cherry-picked, + frontend specific optional dependencies with pip, by + @neutrinoceros (issue #4272) + * #4285 Automatically load external frontends in yt.load(), by + @Xarthisius + * #4307 Allow to store multiple bitmap indices in the + ewah-sidecar, by @Xarthisius + * #4343 Add reusable matplotlib stylesheet, by @neutrinoceros + (issue #4342) + * #4363 Add basename for loaders, by @jisuoqing + * #4397 Allow hint keyword for yt.load to select superclasses, by + @yut23 + * #4410 Export standard deviation to pandas DataFrames and + AstroPy QTables, by @jzuhone + * #4446 Whitelist the SPH star_formation_rate field, by @jzuhone + * #4440 Off-axis (non-SPH) particle projections, by @jzuhone +- Add yt-pr4727-unpin-unyt.patch gh#yt-project/yt#4727 +- Enable multibuild test flavor +- Add yt-ignore-pytestdepr.patch + +------------------------------------------------------------------- Old: ---- yt-4.1.4.tar.gz New: ---- _multibuild yt-4.3.0.tar.gz yt-ignore-pytestdepr.patch yt-pr4727-unpin-unyt.patch BETA DEBUG BEGIN: New:- Enable multibuild test flavor - Add yt-ignore-pytestdepr.patch New: * #4440 Off-axis (non-SPH) particle projections, by @jzuhone - Add yt-pr4727-unpin-unyt.patch gh#yt-project/yt#4727 - Enable multibuild test flavor BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-yt.spec ++++++ --- /var/tmp/diff_new_pack.T1F6GW/_old 2024-02-16 21:43:01.563151566 +0100 +++ /var/tmp/diff_new_pack.T1F6GW/_new 2024-02-16 21:43:01.563151566 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-yt # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,10 +16,20 @@ # -%define skip_python2 1 -%define skip_python36 1 -Name: python-yt -Version: 4.1.4 +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%bcond_without test +%define psuffix -test +%else +%bcond_with test +%define psuffix %{nil} +%endif + +# avoid "lto1: internal compiler error" during build +%global _lto_cflags %{nil} + +Name: python-yt%{psuffix} +Version: 4.3.0 Release: 0 Summary: An analysis and visualization toolkit for volumetric data License: BSD-3-Clause @@ -27,33 +37,42 @@ URL: https://github.com/yt-project/yt Source0: https://files.pythonhosted.org/packages/source/y/yt/yt-%{version}.tar.gz Source100: python-yt-rpmlintrc -BuildRequires: %{python_module Cython < 3} -BuildRequires: %{python_module numpy-devel >= 1.10.4} +# PATCH-FIX-UPSTREAM yt-pr4727-unpin-unyt.patch gh#yt-project/yt#4727 +Patch0: https://github.com/yt-project/yt/pull/4727.patch#/yt-pr4727-unpin-unyt.patch +# PATCH-FIX-OPENSUSE yt-ignore-pytestdepr.patch [email protected] -- ignore a pytest deprecation warning. Upstream is still working on the nose ot pytest transition +Patch1: yt-ignore-pytestdepr.patch +BuildRequires: %{python_module Cython > 3 with %python-Cython < 3.1} +BuildRequires: %{python_module ewah-bool-utils-devel >= 1.0.2} +BuildRequires: %{python_module numpy-devel >= 1.25 with %python-numpy-devel < 2} BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: python-rpm-macros -Requires: python-ipython >= 1.0 -Requires: python-matplotlib >= 2.0.2 +Requires: python-Pillow >= 8 +Requires: python-cmyt >= 1.1.2 +Requires: python-ewah-bool-utils >= 1.0.2 +Requires: python-ipywidgets >= 8.0.0 +Requires: python-matplotlib >= 3.5 Requires: python-more-itertools >= 8.4 -Requires: python-numpy >= 1.10.4 -Requires: python-setuptools >= 19.6 -Requires: python-sympy >= 1.2 -Requires: python-toml >= 0.10.2 +Requires: python-packaging >= 20.9 +Requires: python-tomli-w >= 0.4.0 Requires: python-tqdm >= 3.4.0 -Requires: python-unyt >= 2.7.2 +Requires: python-unyt >= 2.9.2 +Requires: (python-numpy >= 1.19.3 with python-numpy < 2) +Requires: (python-tomli >= 1.2.3 if python-base < 3.11) +Requires: (python-typing-extensions >= 4.4.0 if python-base < 3.12) Requires(post): update-alternatives -Requires(postun):update-alternatives -Recommends: python-bottle -Recommends: python-girder-client -# SECTION test requirements -BuildRequires: %{python_module bottle} -BuildRequires: %{python_module girder-client} -BuildRequires: %{python_module ipython >= 1.0} -BuildRequires: %{python_module matplotlib >= 2.0.2} -BuildRequires: %{python_module sympy >= 1.2} -# /SECTION +Requires(postun): update-alternatives +%if %{with test} +BuildRequires: %{python_module PyYAML} +BuildRequires: %{python_module pytest-mpl} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module sympy} +BuildRequires: %{python_module yt = %{version}} +# More optional modules for tests: scipy, pandas, h5py, xarray, glue, astropy, miniball, firefly, ... +%endif %python_subpackages %description @@ -62,32 +81,46 @@ unstructured meshes, and discrete or sampled data such as particles. %prep -%setup -q -n yt-%{version} +%autosetup -p1 -n yt-%{version} sed -i -e '/^#!\//, 1d' yt/utilities/lodgeit.py %build +%if !%{with test} export CFLAGS="%{optflags} -freport-bug" %pyproject_wheel +%endif %install +%if !%{with test} %pyproject_install %python_clone -a %{buildroot}%{_bindir}/yt -%python_clone -a %{buildroot}%{_bindir}/iyt %python_expand %fdupes %{buildroot}%{$python_sitearch} +%endif + +%if %{with test} +%check +mv yt yt.src +# incompatible API attributes +donttest="test_default_species_fields or test_stream_species" +%{python_expand # need to use the compiled modules in the current directory because of skips defined in pyproject.toml +cp -r %{$python_sitearch}/yt yt +$python -m pytest yt -k "not ($donttest)" +rm -r yt +} +%endif %post %python_install_alternative yt -%python_install_alternative iyt %postun %python_uninstall_alternative yt -%python_uninstall_alternative iyt +%if !%{with test} %files %{python_files} %doc README.md %license COPYING.txt -%python_alternative %{_bindir}/iyt %python_alternative %{_bindir}/yt -%{python_sitearch}/yt-%{version}*-info +%{python_sitearch}/yt-%{version}.dist-info %{python_sitearch}/yt +%endif ++++++ _multibuild ++++++ <multibuild> <package>test</package> </multibuild> ++++++ yt-4.1.4.tar.gz -> yt-4.3.0.tar.gz ++++++ /work/SRC/openSUSE:Factory/python-yt/yt-4.1.4.tar.gz /work/SRC/openSUSE:Factory/.python-yt.new.1815/yt-4.3.0.tar.gz differ: char 5, line 1 ++++++ yt-ignore-pytestdepr.patch ++++++ diff -ur yt-4.3.0.orig/conftest.py yt-4.3.0/conftest.py --- yt-4.3.0.orig/conftest.py 2024-02-14 23:52:48.222913273 +0100 +++ yt-4.3.0/conftest.py 2024-02-14 23:53:02.259984764 +0100 @@ -92,6 +92,7 @@ # >>> warnings emitted by testing frameworks, or in testing contexts # we still have some yield-based tests, awaiting for transition into pytest "ignore::pytest.PytestCollectionWarning", + "ignore::pytest.PytestReturnNotNoneWarning", # matplotlib warnings related to the Agg backend which is used in CI, not much we can do about it "ignore:Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.:UserWarning", r"ignore:tight_layout.+falling back to Agg renderer:UserWarning", ++++++ yt-pr4727-unpin-unyt.patch ++++++ >From b665ed7d38d63ec98f2a1d3ab21feb0f9fe0011a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= <[email protected]> Date: Fri, 3 Nov 2023 08:29:44 +0100 Subject: [PATCH] Backport PR #4724: DEP: fix remaining incompatibilities and declare compatibility with unyt 3.0 --- pyproject.toml | 2 +- yt/testing.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 521635bd1f3..6f246cd1af3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,7 @@ dependencies = [ "pillow>=8.0.0", "tomli-w>=0.4.0", "tqdm>=3.4.0", - "unyt>=2.9.2,<3.0", # see https://github.com/yt-project/yt/issues/4162 + "unyt>=2.9.2", "tomli>=1.2.3;python_version < '3.11'", "typing-extensions>=4.4.0;python_version < '3.12'", ] diff --git a/yt/testing.py b/yt/testing.py index f0a3b2fbcc9..201c64f0bac 100644 --- a/yt/testing.py +++ b/yt/testing.py @@ -1441,7 +1441,9 @@ def compare_dobj_selection(self, dobj): # NULP should be OK. This is mostly for stuff like Rockstar, where # the f32->f64 casting happens at different places depending on # which code path we use. - assert_array_almost_equal_nulp(sel_pos, obj_results, 5) + assert_array_almost_equal_nulp( + np.asarray(sel_pos), np.asarray(obj_results), 5 + ) def run_defaults(self): """
