14
0
forked from pool/python-hatch

23 Commits

Author SHA256 Message Date
801a037b63 Accepting request 1318435 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1318435
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hatch?expand=0&rev=22
2025-11-18 14:41:11 +00:00
d9e7c758c1 - Update to 1.15.1
* Fix compatibility with cached default CPython distributions
    that were sourced from GitHub releases of the old owner

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hatch?expand=0&rev=56
2025-11-18 11:37:17 +00:00
de564ccb8f Accepting request 1316725 from devel:languages:python
- Use python-uv for Requires, so it explicitly matches the Python version.

OBS-URL: https://build.opensuse.org/request/show/1316725
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hatch?expand=0&rev=21
2025-11-10 18:16:26 +00:00
8c7c14b217 - Use python-uv for Requires, so it explicitly matches the Python version.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hatch?expand=0&rev=54
2025-11-10 01:25:14 +00:00
5afa4ad643 Accepting request 1311764 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1311764
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hatch?expand=0&rev=20
2025-10-17 15:25:47 +00:00
278d105ff3 - Update to 1.15.0
* Drop support for Python 3.8
  * Support Python 3.14
  * Upgrade default CPython distributions to 20251014
  * Upgrade default PyPy distributions to 7.3.20
- Update to 1.14.2
  * Fix compatibility with recent versions of Click
- drop click-8.2.patch, fixed upstream
- Add fix-tests.patch to fix tests

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hatch?expand=0&rev=52
2025-10-16 16:30:42 +00:00
af30307b3d Accepting request 1300712 from devel:languages:python
- Convert to libalternatives on SLE-16-based and newer systems only

OBS-URL: https://build.opensuse.org/request/show/1300712
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hatch?expand=0&rev=19
2025-08-21 14:59:53 +00:00
a69038991c - Convert to libalternatives on SLE-16-based and newer systems only
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hatch?expand=0&rev=50
2025-08-21 08:23:45 +00:00
44eaca2d21 Accepting request 1291688 from devel:languages:python
- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1291688
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hatch?expand=0&rev=18
2025-07-10 20:13:51 +00:00
ccab063ddf - Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hatch?expand=0&rev=48
2025-07-10 12:34:37 +00:00
37ac5b1d70 Accepting request 1288662 from devel:languages:python
- Add click-8.2.patch to fix tests with click >= 8.2
  gh#pypa/hatch#2013

OBS-URL: https://build.opensuse.org/request/show/1288662
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hatch?expand=0&rev=17
2025-06-27 21:02:06 +00:00
c1bc58a546 - Add click-8.2.patch to fix tests with click >= 8.2
gh#pypa/hatch#2013

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hatch?expand=0&rev=46
2025-06-26 09:39:19 +00:00
5148097abd Accepting request 1269788 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1269788
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hatch?expand=0&rev=16
2025-04-16 18:41:33 +00:00
157deda1a5 - Update to 1.14.1
* Remove uses of the deprecated --no-python-version-warning
    flag when using pip

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hatch?expand=0&rev=44
2025-04-16 07:57:04 +00:00
4c508e2cf2 Accepting request 1232669 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1232669
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hatch?expand=0&rev=15
2024-12-19 20:42:21 +00:00
11e9834751 - Add fix-with-latest-hatchling.patch to restore compatibility with
hatchling >= 1.26.0
- actually remove fix-test.patch from tracked files
- Update to 1.14.0:
  * Upgrade default CPython distributions to 20241206
  * Bump the minimum supported version of Hatchling to 1.26.3
  * Update virtualenv dependency

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hatch?expand=0&rev=42
2024-12-19 18:48:28 +00:00
eb3bdaccb7 - actually remove fix-test.patch from tracked files
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hatch?expand=0&rev=41
2024-12-19 15:41:12 +00:00
dbbf8b2f2e - Upgrade to 1.13.0:
- Remove upstreamed patches:
  - fix-tests.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hatch?expand=0&rev=40
2024-12-11 18:33:50 +00:00
931bfca499 Accepting request 1193629 from devel:languages:python
- Add new patch to fix tests: fix-tests.patch
- Remove upstreamed patch: support-hatchling-1.22.patch
- update to 1.12.0:
  - The run/env run and test commands now treat inclusion variable
    options as an intersection rather than a union to allow for
    specific targeting of environments
  - Add ability to control the source of Python distributions
  - Upgrade Ruff to 0.4.5
  - Upgrade PyApp to 0.22.0 for binary builds
  - The fmt command no longer hides the commands that are being
    executed
  - Add default timeout for network requests, useful when installing
    Python distributions
  - Fix syntax highlighting contrast for the config show command
- 1.11.1:
  - Add official GitHub Action for installing Hatch
  - Fix terminal.styles.spinner configuration
  - Fix entry points in the pre-built distributions that binaries use
- 1.11.0:
  - Upgrade PyApp to 0.21.1 for binary builds
  - On Linux, install the highest compatible Python distribution
    variant based on CPU architecture rather than assuming recent
    hardware
- 1.10.0:
  - The run/env run, fmt and shell commands now only change the
    current working directory to the project root if not already
    inside the project
  - The shell command now accepts a single argument to specify the
    environment to enter which overrides the standard choice
    mechanisms. The arguments determining shell options have been

OBS-URL: https://build.opensuse.org/request/show/1193629
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hatch?expand=0&rev=14
2024-08-13 11:25:25 +00:00
b480155513 - Add new patch to fix tests: fix-tests.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hatch?expand=0&rev=38
2024-08-13 06:34:01 +00:00
3b7e29dcd9 - Remove upstreamed patch: support-hatchling-1.22.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hatch?expand=0&rev=37
2024-08-12 09:31:07 +00:00
3954783633 - Ignore some broken tests for non x86_64
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hatch?expand=0&rev=36
2024-08-08 11:59:38 +00:00
bdc84c90cb - update to 1.12.0:
- The run/env run and test commands now treat inclusion variable
    options as an intersection rather than a union to allow for
    specific targeting of environments
  - Add ability to control the source of Python distributions
  - Upgrade Ruff to 0.4.5
  - Upgrade PyApp to 0.22.0 for binary builds
  - The fmt command no longer hides the commands that are being
    executed
  - Add default timeout for network requests, useful when installing
    Python distributions
  - Fix syntax highlighting contrast for the config show command
- 1.11.1:
  - Add official GitHub Action for installing Hatch
  - Fix terminal.styles.spinner configuration
  - Fix entry points in the pre-built distributions that binaries use
- 1.11.0:
  - Upgrade PyApp to 0.21.1 for binary builds
  - On Linux, install the highest compatible Python distribution
    variant based on CPU architecture rather than assuming recent
    hardware
- 1.10.0:
  - The run/env run, fmt and shell commands now only change the
    current working directory to the project root if not already
    inside the project
  - The shell command now accepts a single argument to specify the
    environment to enter which overrides the standard choice
    mechanisms. The arguments determining shell options have been
    converted to flags.
  - Add test command

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hatch?expand=0&rev=35
2024-08-08 11:43:47 +00:00
7 changed files with 73 additions and 51 deletions

View File

@@ -1,29 +0,0 @@
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

40
fix-tests.patch Normal file
View File

@@ -0,0 +1,40 @@
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

View File

@@ -3,19 +3,6 @@ From: Ofek Lev <ofekmeister@gmail.com>
Date: Sat, 9 Nov 2024 11:35:16 -0500
Subject: [PATCH] Bump `packaging` to 24.2 (#1788)
---
hatch.toml | 4 -
pyproject.toml | 2 +-
src/hatch/template/default.py | 2 +-
tests/backend/licenses/__init__.py | 0
tests/backend/licenses/test_parse.py | 56 --
tests/backend/licenses/test_supported.py | 31 -
tests/backend/metadata/test_core.py | 2 +-
15 files changed, 11 insertions(+), 974 deletions(-)
delete mode 100644 tests/backend/licenses/__init__.py
delete mode 100644 tests/backend/licenses/test_parse.py
delete mode 100644 tests/backend/licenses/test_supported.py
Index: hatch-hatch-v1.14.0/hatch.toml
===================================================================
--- hatch-hatch-v1.14.0.orig/hatch.toml

BIN
hatch-v1.14.1.tar.gz (Stored with Git LFS)

Binary file not shown.

3
hatch-v1.15.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a32e3dff30f0ca4d510de38a248bcc6125dbd2dac7e8b6435e14a29d6dd3e018
size 5275641

View File

@@ -1,3 +1,28 @@
-------------------------------------------------------------------
Mon Nov 17 08:20:59 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 1.15.1
* Fix compatibility with cached default CPython distributions
that were sourced from GitHub releases of the old owner
-------------------------------------------------------------------
Mon Nov 10 01:24:10 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Use python-uv for Requires, so it explicitly matches the Python version.
-------------------------------------------------------------------
Thu Oct 16 07:47:48 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
- Update to 1.15.0
* Drop support for Python 3.8
* Support Python 3.14
* Upgrade default CPython distributions to 20251014
* Upgrade default PyPy distributions to 7.3.20
- Update to 1.14.2
* Fix compatibility with recent versions of Click
- drop click-8.2.patch, fixed upstream
- Add fix-tests.patch to fix tests
-------------------------------------------------------------------
Thu Aug 21 08:22:26 UTC 2025 - Markéta Machová <mmachova@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-hatch
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -31,7 +31,7 @@
%endif
%{?sle15_python_module_pythons}
Name: python-hatch%{psuffix}
Version: 1.14.1
Version: 1.15.1
Release: 0
Summary: Modern, extensible Python project management
License: MIT
@@ -40,8 +40,8 @@ URL: https://hatch.pypa.io/latest/
Source: https://github.com/pypa/hatch/archive/refs/tags/hatch-v%{version}.tar.gz
# PATCH-FIX-UPSTREAM fix-with-latest-hatchling.patch gh#f8a2eaa gh#28f233c gh#fc25690
Patch0: fix-with-latest-hatchling.patch
# PATCH-FIX-UPSTREAM click-8.2.patch gh#pypa/hatch#2013
Patch1: click-8.2.patch
# PATCH-FIX-UPSTREAM fix-tests.patch gh#79d3c15
Patch1: fix-tests.patch
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module hatch-vcs >= 0.3}
BuildRequires: %{python_module hatchling >= 1.26.3}
@@ -60,9 +60,9 @@ Requires: python-rich >= 11.2.0
Requires: python-shellingham >= 1.4.0
Requires: python-tomli-w >= 1.0
Requires: python-tomlkit >= 0.11.1
Requires: python-uv >= 0.5.23
Requires: python-virtualenv >= 20.16.2
Requires: python-zstandard < 1
Requires: uv
Requires: (python-pexpect >= 4.8 with python-pexpect < 5)
Requires: (python-userpath >= 1.7 with python-userpath < 2)
%if %{with libalternatives}
@@ -82,7 +82,6 @@ BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module trustme}
BuildRequires: cargo
BuildRequires: uv
%else
BuildArch: noarch
%endif