Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-hatch for openSUSE:Factory checked in at 2026-09-04 12:40:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-hatch (Old) and /work/SRC/openSUSE:Factory/.python-hatch.new.1265 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-hatch" Fri Sep 4 12:40:43 2026 rev:28 rq:1375551 version:1.18.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-hatch/python-hatch.changes 2026-08-01 18:35:05.403727204 +0200 +++ /work/SRC/openSUSE:Factory/.python-hatch.new.1265/python-hatch.changes 2026-09-04 12:41:50.773610535 +0200 @@ -1,0 +2,19 @@ +Wed Aug 26 09:06:23 UTC 2026 - Markéta Machová <[email protected]> + +- Update to 0.18.0 + * Add the sources environment option, which redirects dependencies + to a local path, Git repository, URL, alternate index, or workspace + member at install time without altering published metadata + * Add the --all/-a flag to the build command to build the workspace + root and every workspace member defined by the selected environment + * Add the tool.hatch.requires-hatch field + * Add first-class support for free-threaded distribution names such as + 3.13t and 3.14t to the python commands and environment python option, + rather than requiring the HATCH_PYTHON_VARIANT_GIL environment variable + * The version command can now bump versions that are statically defined + by the project.version field, updating pyproject.toml in place. + Pass --force to allow an explicit downgrade + * Support managing Python 3.15 distributions, currently 3.15.0rc1 +- Add change-python-to-python3.patch to fix tests on our systems + +------------------------------------------------------------------- Old: ---- hatch-v1.17.1.tar.gz New: ---- change-python-to-python3.patch hatch-v1.18.0.tar.gz ----------(New B)---------- New: * Support managing Python 3.15 distributions, currently 3.15.0rc1 - Add change-python-to-python3.patch to fix tests on our systems ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-hatch.spec ++++++ --- /var/tmp/diff_new_pack.TlNmiL/_old 2026-09-04 12:41:51.566638383 +0200 +++ /var/tmp/diff_new_pack.TlNmiL/_new 2026-09-04 12:41:51.568638453 +0200 @@ -31,7 +31,7 @@ %endif %{?sle15_python_module_pythons} Name: python-hatch%{psuffix} -Version: 1.17.1 +Version: 1.18.0 Release: 0 Summary: Modern, extensible Python project management License: MIT @@ -53,6 +53,8 @@ Source22: https://files.pythonhosted.org/packages/py3/s/setuptools/setuptools-80.9.0-py3-none-any.whl Source23: https://files.pythonhosted.org/packages/py3/t/trove_classifiers/trove_classifiers-2025.12.1.14-py3-none-any.whl Source24: https://files.pythonhosted.org/packages/py3/u/urllib3/urllib3-2.6.2-py3-none-any.whl +# PATCH-FIX-UPSTREAM https://github.com/pypa/hatch/pull/2399 Fix a couple of tests when no “python” in path +Patch0: change-python-to-python3.patch BuildRequires: %{python_module base >= 3.10} BuildRequires: %{python_module hatch-vcs >= 0.3} BuildRequires: %{python_module hatchling >= 1.27} @@ -147,19 +149,10 @@ donttest="(test_install and test_already_installed_update_prompt)" donttest="$donttest or (test_install and test_already_installed_update_flag)" donttest="$donttest or (test_install and test_all)" -# platform distribution selection errors: https://github.com/pypa/hatch/issues/1145 -%ifnarch x86_64 -donttest="$donttest or (test_resolve and test_resolution_error)" -donttest="$donttest or (test_resolve and test_legacy_option)" -donttest="$donttest or (test_resolve and test_compatib)" -donttest="$donttest or test_custom_source or test_pypy_custom" -%endif %ifarch s390x # Console width different donttest="$donttest or test_context_formatting" %endif -# This requires a hatchling not released yet (hatchling > 1.28) -donttest+=" or test_sbom_from_build_data" %if 0%{?suse_version} < 1699 # Wants to create a Python 3.9 environment and would download the interpreter donttest+=" or test_workspace_overrides_matrix_conditional_members" ++++++ change-python-to-python3.patch ++++++ >From 9eeb6f4564b80bbe4a97adf82727c71456665097 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" <[email protected]> Date: Wed, 19 Aug 2026 06:59:22 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20a=20couple=20of=20tests=20when=20no=20?= =?UTF-8?q?=E2=80=9Cpython=E2=80=9D=20in=20path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These CLI tests assume a “python” executable is available outside of a virtualenv, which is not necessarily true (e.g. Fedora has only “python3” if the `python-unversioned-command` package is not installed). Use the basename from `sys.executable` in the script configs for these tests instead. --- tests/cli/run/test_run.py | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/tests/cli/run/test_run.py b/tests/cli/run/test_run.py index 5323fd7b9..4b9074a7a 100644 --- a/tests/cli/run/test_run.py +++ b/tests/cli/run/test_run.py @@ -1,4 +1,5 @@ import os +import pathlib import signal import sys import sysconfig @@ -722,7 +723,14 @@ def test_scripts_no_environment(hatch, helpers, temp_dir, config_file): project = Project(project_path) config = dict(project.raw_config) - config["tool"]["hatch"]["scripts"] = {"py": "python -c {args}"} + # Try to handle testing on systems where there is no "python", only e.g. + # "python3". Ideally we would use the absolute path from sys.executable + # path, but then we are much more likely to have problems due to things + # like whitespace in the directory path, considering we are not attempting + # shell escaping. Even the executable name could have these issues, but + # this should be good enough for testing purposes. + py = pathlib.Path(sys.executable).name + config["tool"]["hatch"]["scripts"] = {"py": f"{py} -c {{args}}"} project.save_config(config) with project_path.as_cwd(env_vars={ConfigEnvVars.DATA: str(data_path)}): @@ -761,7 +769,14 @@ def test_interrupt_signal_not_inherited(hatch, temp_dir, config_file): project = Project(project_path) config = dict(project.raw_config) - config["tool"]["hatch"]["scripts"] = {"py": "python -c {args}"} + # Try to handle testing on systems where there is no "python", only e.g. + # "python3". Ideally we would use the absolute path from sys.executable + # path, but then we are much more likely to have problems due to things + # like whitespace in the directory path, considering we are not attempting + # shell escaping. Even the executable name could have these issues, but + # this should be good enough for testing purposes. + py = pathlib.Path(sys.executable).name + config["tool"]["hatch"]["scripts"] = {"py": f"{py} -c {{args}}"} project.save_config(config) original_handler = signal.getsignal(signal.SIGINT) ++++++ hatch-v1.17.1.tar.gz -> hatch-v1.18.0.tar.gz ++++++ ++++ 5556 lines of diff (skipped)
