public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/hatch] f44: Update to 1.18.2 (close RHBZ#2562564)
Date: Wed, 28 Oct 2026 10:59:21 GMT [thread overview]
Message-ID: <179318516130.1.6688835133773350170.rpms-hatch-4e6ef09fb76c@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/hatch
Branch : f44
Commit : 4e6ef09fb76c040e450e19bd99c67909c35b00b6
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-10-28T10:22:09+00:00
Stats : +44/-14 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/hatch/c/4e6ef09fb76c040e450e19bd99c67909c35b00b6?branch=f44
Log:
Update to 1.18.2 (close RHBZ#2562564)
- Backport to Fedora 44
Be even more precise about which tests to skip and on what releases to
skip them.
---
diff --git a/hatch.spec b/hatch.spec
index fa27f24..7a648c1 100644
--- a/hatch.spec
+++ b/hatch.spec
@@ -4,7 +4,7 @@
#global snapdate YYYYMMDD
Name: hatch
-Version: 1.18.1%{?commit:^%{snapdate}.%{sub %{commit} 1 7}}
+Version: 1.18.2%{?commit:^%{snapdate}.%{sub %{commit} 1 7}}
Release: %autorelease
Summary: A modern project, package, and virtual env manager
@@ -145,6 +145,17 @@ export SETUPTOOLS_SCM_PRETEND_VERSION='%{scmversion}'
tomcli get hatch.toml -F newline-list envs.hatch-test.extra-dependencies |
tee _envs.hatch-test.extra-dependencies.txt
+%if %{defined fc44}
+# Upstream raised the virtualenv requirement from >=20.13.1 to >=21 in
+# https://github.com/pypa/hatch/commit/49aa8528750a7dc3c854a7d2ef501188d25b70c1
+# at the same time they switched to python-discovery. This makes sense in
+# principle, because this is the version in which discovery was split out from
+# virtualenv, but it turns out that we can still provide python-discovery on
+# F44 with virtualenv 20.35.4, and there are good reasons (particuarly, updated
+# managed Python interpreters) to backport a current hatch release to F44.
+%pyproject_patch_dependency virtualenv:set_lower:20.13.1
+%endif
+
%if %{defined commit}
%build -p
@@ -188,7 +199,7 @@ install -D --preserve-timestamps --mode=0644 \
# These tests are actually for hatchling, and may fail due to small differences
# between the state of hatchling in the hatch release tag and in the latest
# actual hatchling release.
-ignore="${ignore-} --ignore=tests/backend/"
+x="${x-} --ignore=tests/backend/"
# FAILED tests/cli/test/test_test.py::TestCustomScripts::test_single -
# AssertionError: assert [call('test hatch-test.py3.12', shell=True)] ==
@@ -196,7 +207,7 @@ ignore="${ignore-} --ignore=tests/backend/"
# This appears to be due to an expectation that the tests are run via “hatch
# test” on one of Hatch’s “standard” Python interpreters, rather than on the
# system Python.
-k="${k-}${k+ and }not (TestCustomScripts and test_single)"
+x="${x-} --deselect=tests/cli/test/test_test.py::TestCustomScripts::test_single"
# https://github.com/pypa/hatch/issues/1670
# hatch.errors.PythonDistributionResolutionError: Could not find a default
@@ -209,17 +220,17 @@ missing_dists='3.7 3.8 pypy2.7 pypy3.9 pypy3.10 pypy3.11'
# For aarch64, missing_dists='3.7', and for x86_64, missing_dists=''.
for param in ${missing_dists}
do
- k="${k-}${k+ and }not test_custom_source[${param}]"
+ x="${x-} --deselect=tests/python/test_core.py::test_custom_source[${param}]"
# Requires network (but does fail when it is enabled)
- k="${k-}${k+ and }not test_installation[${param}]"
+ x="${x-} --deselect=tests/python/test_core.py::test_installation[${param}]"
done
# Also, for ppc64le and s390x:
-k="${k-}${k+ and }not (TestDistributionPaths and test_pypy_custom)"
-k="${k-}${k+ and }not (TestDistributionVersions and test_pypy_custom)"
+x="${x-} --deselect=tests/python/test_resolve.py::TestDistributionPaths::test_pypy_custom"
+x="${x-} --deselect=tests/python/test_resolve.py::TestDistributionVersions::test_pypy_custom"
# Trivial whitespace differences in TOML
-k="${k-}${k+ and }not test_project_location_basic_set_first_project"
-k="${k-}${k+ and }not test_project_location_complex_set_first_project"
+x="${x-} --deselect=tests/cli/config/test_set.py::test_project_location_basic_set_first_project"
+x="${x-} --deselect=tests/cli/config/test_set.py::test_project_location_complex_set_first_project"
# This is already gated by pytest.mark.requires_internet, so it won’t be
# attempted while offline, but skipping it explicitly preserves our ability to
@@ -228,14 +239,33 @@ k="${k-}${k+ and }not test_project_location_complex_set_first_project"
# When there is no pre-compiled wheel for pydantic-core, this would try to
# compile it, which needs at least a C compiler installed. (Rust/cargo would be
# downloaded magically via rustup.)
-k="${k-}${k+ and }not (TestWorkspaceConfiguration and test_workspace_multi_service_application)"
+#k="${k-}${k+ and }not (TestWorkspaceConfiguration and test_workspace_multi_service_application)"
+
+# This only runs when network access is enabled. It then fails because the
+# downloaded Python 3.7 interpreter requires libcrypt.so.1, from
+# libxcrypt-compat (“Compatibility library providing legacy API functions”). We
+# prefer to skip the test rather than adding a BuildRequires on
+# libxcrypt-compat.
+x="${x-} --deselect=tests/cli/python/test_install.py::test_installation"
+%if %{defined fc45} || %{defined fc44}
# When using flit-core, project metadata lacks "'import-names': [ 'foo' ]"
# from PEP 794 / Core Metadata 2.5 until python-flit-core is updated to 4.x.
-k="${k-}${k+ and }not (TestPrepareMetadata and test_editable[flit-core])"
-k="${k-}${k+ and }not (TestPrepareMetadata and test_wheel[flit-core])"
+x="${x-} --deselect=tests/project/test_frontend.py::TestPrepareMetadata::test_editable[flit-core]"
+x="${x-} --deselect=tests/project/test_frontend.py::TestPrepareMetadata::test_wheel[flit-core]"
+%endif
+
+%if %{defined fc44}
+# Minor tabular-format output differences
+x="${x-} --deselect=tests/cli/env/test_show.py::test_context_formatting"
+x="${x-} --deselect=tests/env/plugin/test_interface.py::TestDependencies::test_context_formatting"
+x="${x-} --deselect=tests/env/plugin/test_interface.py::TestDependencies::test_project_dependencies_context_formatting"
+# Differences in whether and how the license text has been line-wrapped. These
+# tests require network access.
+x="${x-} --deselect=tests/cli/new/test_new.py::test_default_no_license_cache"
+%endif
-%pytest -k "${k-}" ${ignore-} --verbosity=2
+%pytest ${x-} --verbosity=2
%endif
diff --git a/sources b/sources
index 0a08544..b6f97f7 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (hatch-hatch-v1.18.1.tar.gz) = 3425dc8aed50c87acee16c4c092121ebf21d9351fb3659d5ab655eda17697575946c23fac9a588e1836f935ebff39a41d61c724e5fd0ebc64d60a284ac0206bd
+SHA512 (hatch-hatch-v1.18.2.tar.gz) = c0abc464de9a4493a28783c9d3123ae1696436db1acfa2092178b60b1611a68221cec20419b8d732318f8ed93eef605a588b2f3ef6601f516642b27d49113e58
reply other threads:[~2026-10-28 10:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179318516130.1.6688835133773350170.rpms-hatch-4e6ef09fb76c@fedoraproject.org \
--to=code@musicinmybrain.net \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox