forked from pool/python-hatch
* Properly send informational output to stderr instead of stdout
* Implement documented support for sbom-files as build data for
the wheel build target
* Fix regression where environments no longer acknowledged the
project.optional-dependencies field
- Release 1.16.1
* Handle special characters correctly in path for editable
installs.
* Fix multiple calls to install on sync_dependencies to become a
single call.
* Fix context variable formatting in project dependencies to
prevent crashes when using variables like {root:parent:uri} in
the [project] section.
* Fix environment overrides for dependency-groups field to
properly support matrix and conditional configurations.
- Release 1.16.0
## Changed:
* Drop support for 3.9
* Environment type plugins are now no longer expected to support
a pseudo-build environment as any environment now may be used
for building. The following methods have been removed:
build_environment, build_environment_exists, run_builder,
construct_build_command
## Added:
* Support for workspaces inspired by Cargo Workspaces
* Dependency group support.
* The version and project metadata commands now support projects
that do not use Hatchling as the build backend
* The version command accepts a --force option, allowing for
downgrades when an explicit version number is given.
* Build environments can now be configured, the default build
environment is hatch-build
* The environment interface now has the following methods and
properties in order to better support builds on remote
machines: project_root, sep, pathsep, fs_context
* Bump the minimum supported version of packaging to 24.2
* Upgrade Ruff to 0.13.2
## Fixed:
* All HTTP requests now set an identifiable User-Agent header.
* Fix issue where terminal output would be out of sync during
build.
* Fix for Click Sentinel value when using run command
- Drop fix-with-latest-hatchling.patch
- Drop fix-tests.patch
- Provide some wheels for the test suite gh#pypa/hatch#2123
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hatch?expand=0&rev=58
30 lines
913 B
Diff
30 lines
913 B
Diff
From df295583784427214324b974c75901da12931ec1 Mon Sep 17 00:00:00 2001
|
|
From: Daniel Garcia Moreno <daniel.garcia@suse.com>
|
|
Date: Thu, 26 Jun 2025 11:32:54 +0200
|
|
Subject: [PATCH] Fix test_self with click >= 8.2.0
|
|
|
|
https://click.palletsprojects.com/en/stable/changes/#version-8-2-0
|
|
---
|
|
tests/cli/self/test_self.py | 8 +++++++-
|
|
1 file changed, 7 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/tests/cli/self/test_self.py b/tests/cli/self/test_self.py
|
|
index cd1a4aed1..f727b87f4 100644
|
|
--- a/tests/cli/self/test_self.py
|
|
+++ b/tests/cli/self/test_self.py
|
|
@@ -1,7 +1,13 @@
|
|
import os
|
|
+import importlib
|
|
|
|
|
|
def test(hatch):
|
|
result = hatch(os.environ['PYAPP_COMMAND_NAME'])
|
|
+ exit_code = 2
|
|
|
|
- assert result.exit_code == 0, result.output
|
|
+ click_version = importlib.metadata.version('click')
|
|
+ if click_version <= '8.1.8':
|
|
+ exit_code = 0
|
|
+
|
|
+ assert result.exit_code == exit_code, result.output
|