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
41 lines
1.3 KiB
Diff
41 lines
1.3 KiB
Diff
From 79d3c156d6d49d277d4a4014e78f84b02aac978b Mon Sep 17 00:00:00 2001
|
|
From: Cary <hawkinscary23@gmail.com>
|
|
Date: Sat, 27 Sep 2025 14:07:34 -0700
|
|
Subject: [PATCH] Fix failing tests, handle subprocess buffering causing output
|
|
issues on terminal (#2061)
|
|
|
|
Co-authored-by: Ofek Lev <ofekmeister@gmail.com>
|
|
|
|
diff --git a/tests/cli/config/test_set.py b/tests/cli/config/test_set.py
|
|
index cd576feb4..73bb9bc03 100644
|
|
--- a/tests/cli/config/test_set.py
|
|
+++ b/tests/cli/config/test_set.py
|
|
@@ -184,6 +184,7 @@ def test_project_location_basic_set_first_project(hatch, config_file, helpers, t
|
|
f"""
|
|
New setting:
|
|
project = "foo"
|
|
+
|
|
[projects]
|
|
foo = "{path}"
|
|
"""
|
|
@@ -205,6 +206,7 @@ def test_project_location_complex_set_first_project(hatch, config_file, helpers,
|
|
f"""
|
|
New setting:
|
|
project = "foo"
|
|
+
|
|
[projects.foo]
|
|
location = "{path}"
|
|
"""
|
|
diff --git a/tests/cli/self/test_self.py b/tests/cli/self/test_self.py
|
|
index cd1a4aed1..3059905f5 100644
|
|
--- a/tests/cli/self/test_self.py
|
|
+++ b/tests/cli/self/test_self.py
|
|
@@ -2,6 +2,6 @@
|
|
|
|
|
|
def test(hatch):
|
|
- result = hatch(os.environ['PYAPP_COMMAND_NAME'])
|
|
+ result = hatch(os.environ['PYAPP_COMMAND_NAME'], '-h')
|
|
|
|
assert result.exit_code == 0, result.output
|