forked from pool/python-hatch
Compare commits
55 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| f3aff5d3d6 | |||
| 75e6f9ec33 | |||
| 801a037b63 | |||
| d9e7c758c1 | |||
| de564ccb8f | |||
| 8c7c14b217 | |||
| 5afa4ad643 | |||
| 278d105ff3 | |||
| af30307b3d | |||
| a69038991c | |||
| 44eaca2d21 | |||
| ccab063ddf | |||
| 37ac5b1d70 | |||
| c1bc58a546 | |||
| 5148097abd | |||
| 157deda1a5 | |||
| 4c508e2cf2 | |||
| 11e9834751 | |||
| eb3bdaccb7 | |||
| dbbf8b2f2e | |||
| 931bfca499 | |||
| 61123d7067 | |||
| 3594b54ee9 | |||
| 1108f1d30f | |||
| 44f5c15be1 | |||
| 0a99352653 | |||
| 200f9c2ef4 | |||
| e873d67eb1 | |||
| 931b454696 | |||
| 6cd47e5a49 | |||
| 27ab38807c | |||
| f5c2bdfee2 | |||
| 433fc1d858 | |||
| 73b436a6a2 | |||
| 0e89333e0e | |||
| c5cf20c607 | |||
| dc112c19ff | |||
| bf1c206c2f | |||
| d318249e4b | |||
| 244b96836e | |||
| 7892c0913f | |||
| 3f35c6d07e | |||
| fcd053b419 | |||
| 8e32bb0b75 | |||
|
|
044cbdde33 | ||
|
|
ddf43c21a0 | ||
| e742487e1d | |||
|
|
8016ec84a9 | ||
| 3df40cf8e7 | |||
|
|
0f272e08b3 | ||
|
|
fb612fedf5 | ||
|
|
b15350b4cc | ||
|
|
781676957e | ||
| fa6a27e1e9 | |||
|
|
aceb204284 |
3
binary-1.0.2-py3-none-any.whl
Normal file
3
binary-1.0.2-py3-none-any.whl
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:e79bba085cddfb9d3beefe138464506d2ef0c0f5f68c69e27fc9f82d4ac85470
|
||||||
|
size 9568
|
||||||
3
certifi-2025.11.12-py3-none-any.whl
Normal file
3
certifi-2025.11.12-py3-none-any.whl
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:97de8790030bbd5c2d96b7ec782fc2f7820ef8dba6db909ccf95449f2d062d4b
|
||||||
|
size 159438
|
||||||
3
charset_normalizer-3.4.4-py3-none-any.whl
Normal file
3
charset_normalizer-3.4.4-py3-none-any.whl
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:7a32c560861a02ff789ad905a2fe94e3f840803362c84fecf1851cb4cf3dc37f
|
||||||
|
size 53402
|
||||||
3
click-8.3.1-py3-none-any.whl
Normal file
3
click-8.3.1-py3-none-any.whl
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:981153a64e25f12d547d3426c367a4857371575ee7ad18df2a6183ab0545b2a6
|
||||||
|
size 108274
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
Index: hatch-hatch-v1.12.0/tests/conftest.py
|
|
||||||
===================================================================
|
|
||||||
--- hatch-hatch-v1.12.0.orig/tests/conftest.py
|
|
||||||
+++ hatch-hatch-v1.12.0/tests/conftest.py
|
|
||||||
@@ -95,11 +95,12 @@ def isolation(uv_on_path) -> Generator[P
|
|
||||||
'GIT_AUTHOR_EMAIL': 'foo@bar.baz',
|
|
||||||
'COLUMNS': '80',
|
|
||||||
'LINES': '24',
|
|
||||||
+ 'HATCH_ENV_TYPE_VIRTUAL_UV_PATH': '',
|
|
||||||
}
|
|
||||||
if PLATFORM.windows:
|
|
||||||
default_env_vars['COMSPEC'] = 'cmd.exe'
|
|
||||||
else:
|
|
||||||
- default_env_vars['SHELL'] = 'sh'
|
|
||||||
+ default_env_vars['SHELL'] = 'bash'
|
|
||||||
|
|
||||||
with d.as_cwd(default_env_vars):
|
|
||||||
os.environ.pop(AppEnvVars.ENV_ACTIVE, None)
|
|
||||||
3
flit_core-3.10.1-py3-none-any.whl
Normal file
3
flit_core-3.10.1-py3-none-any.whl
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:cb31a76e8b31ad3351bb89e531f64ef2b05d1e65bd939183250bf81ddf4922a8
|
||||||
|
size 36389
|
||||||
BIN
hatch-v1.12.0.tar.gz
LFS
BIN
hatch-v1.12.0.tar.gz
LFS
Binary file not shown.
3
hatch-v1.16.2.tar.gz
Normal file
3
hatch-v1.16.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ce130f1e7b91f562c61932289146575e253e47affb2e018eb81fa6f9fcb08c4b
|
||||||
|
size 5297697
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:1cafce05e853e9a878e24ab519a18863cf27e21a3aa11a8f6d92b0a3606ca583
|
|
||||||
size 768420
|
|
||||||
3
hatchling-1.28.0-py3-none-any.whl
Normal file
3
hatchling-1.28.0-py3-none-any.whl
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:dc48722b68b3f4bbfa3ff618ca07cdea6750e7d03481289ffa8be1521d18a961
|
||||||
|
size 76075
|
||||||
3
idna-3.11-py3-none-any.whl
Normal file
3
idna-3.11-py3-none-any.whl
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:771a87f49d9defaf64091e6e6fe9c18d4833f140bd19464795bc32d966ca37ea
|
||||||
|
size 71008
|
||||||
3
packaging-25.0-py3-none-any.whl
Normal file
3
packaging-25.0-py3-none-any.whl
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:29572ef2b1f17581046b3a2227d5c611fb25ec70ca1ba8554b24b0e69331a484
|
||||||
|
size 66469
|
||||||
3
pathspec-0.12.1-py3-none-any.whl
Normal file
3
pathspec-0.12.1-py3-none-any.whl
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:a0d503e138a4c123b27490a4f7beda6a01c6f288df0e4a8b79c7eb0dc7b4cc08
|
||||||
|
size 31191
|
||||||
3
pluggy-1.6.0-py3-none-any.whl
Normal file
3
pluggy-1.6.0-py3-none-any.whl
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746
|
||||||
|
size 20538
|
||||||
@@ -1,3 +1,128 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 2 17:06:04 UTC 2026 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Update to 1.16.2
|
||||||
|
* 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
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
||||||
|
|
||||||
|
- Convert to libalternatives on SLE-16-based and newer systems only
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jul 10 12:33:57 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jun 26 09:36:32 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- Add click-8.2.patch to fix tests with click >= 8.2
|
||||||
|
gh#pypa/hatch#2013
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 16 07:11:55 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Update to 1.14.1
|
||||||
|
* Remove uses of the deprecated --no-python-version-warning
|
||||||
|
flag when using pip
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 19 17:05:14 UTC 2024 - Nico Krapp <nico.krapp@suse.com>
|
||||||
|
|
||||||
|
- Add fix-with-latest-hatchling.patch to restore compatibility with
|
||||||
|
hatchling >= 1.26.0
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 19 15:40:19 UTC 2024 - Nico Krapp <nico.krapp@suse.com>
|
||||||
|
|
||||||
|
- actually remove fix-test.patch from tracked files
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 16 13:26:27 UTC 2024 - Nico Krapp <nico.krapp@suse.com>
|
||||||
|
|
||||||
|
- 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
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Dec 11 18:31:58 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- Upgrade to 1.13.0:
|
||||||
|
|
||||||
|
- Remove upstreamed patches:
|
||||||
|
- fix-tests.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 8 11:20:24 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
Thu Aug 8 11:20:24 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-hatch
|
# spec file for package python-hatch
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2026 SUSE LLC and contributors
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -24,45 +24,70 @@
|
|||||||
%define psuffix %{nil}
|
%define psuffix %{nil}
|
||||||
%bcond_with test
|
%bcond_with test
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
%bcond_without libalternatives
|
||||||
|
%else
|
||||||
|
%bcond_with libalternatives
|
||||||
|
%endif
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-hatch%{psuffix}
|
Name: python-hatch%{psuffix}
|
||||||
Version: 1.12.0
|
Version: 1.16.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Modern, extensible Python project management
|
Summary: Modern, extensible Python project management
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://hatch.pypa.io/latest/
|
URL: https://hatch.pypa.io/latest/
|
||||||
# SourceRepository: https://github.com/pypa/hatch
|
# SourceRepository: https://github.com/pypa/hatch
|
||||||
Source: https://github.com/pypa/hatch/archive/refs/tags/hatch-v%{version}.tar.gz
|
Source0: https://github.com/pypa/hatch/archive/refs/tags/hatch-v%{version}.tar.gz
|
||||||
# PATCH-FIX-OPENSUSE fix-tests.patch
|
# For the tests gh#pypa/hatch#2123
|
||||||
Patch0: fix-tests.patch
|
Source11: https://files.pythonhosted.org/packages/py3/b/binary/binary-1.0.2-py3-none-any.whl
|
||||||
BuildRequires: %{python_module base >= 3.8}
|
Source12: https://files.pythonhosted.org/packages/py3/c/certifi/certifi-2025.11.12-py3-none-any.whl
|
||||||
|
Source13: https://files.pythonhosted.org/packages/py3/c/charset_normalizer/charset_normalizer-3.4.4-py3-none-any.whl
|
||||||
|
Source14: https://files.pythonhosted.org/packages/py3/c/click/click-8.3.1-py3-none-any.whl
|
||||||
|
Source15: https://files.pythonhosted.org/packages/py3/f/flit_core/flit_core-3.10.1-py3-none-any.whl
|
||||||
|
Source16: https://files.pythonhosted.org/packages/py3/h/hatchling/hatchling-1.28.0-py3-none-any.whl
|
||||||
|
Source17: https://files.pythonhosted.org/packages/py3/i/idna/idna-3.11-py3-none-any.whl
|
||||||
|
Source18: https://files.pythonhosted.org/packages/py3/p/packaging/packaging-25.0-py3-none-any.whl
|
||||||
|
Source19: https://files.pythonhosted.org/packages/py3/p/pathspec/pathspec-0.12.1-py3-none-any.whl
|
||||||
|
Source20: https://files.pythonhosted.org/packages/py3/p/pluggy/pluggy-1.6.0-py3-none-any.whl
|
||||||
|
Source21: https://files.pythonhosted.org/packages/py3/r/requests/requests-2.32.5-py3-none-any.whl
|
||||||
|
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
|
||||||
|
BuildRequires: %{python_module base >= 3.10}
|
||||||
BuildRequires: %{python_module hatch-vcs >= 0.3}
|
BuildRequires: %{python_module hatch-vcs >= 0.3}
|
||||||
BuildRequires: %{python_module hatchling >= 1.19}
|
BuildRequires: %{python_module hatchling >= 1.27}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(postun): update-alternatives
|
|
||||||
Requires: git-core
|
Requires: git-core
|
||||||
Requires: python-click >= 8.0.6
|
Requires: python-click >= 8.0.6
|
||||||
Requires: python-hatchling >= 1.21.0
|
Requires: python-hatchling >= 1.27.0
|
||||||
Requires: python-httpx >= 0.22.0
|
Requires: python-httpx >= 0.22.0
|
||||||
Requires: python-hyperlink >= 21.0.0
|
Requires: python-hyperlink >= 21.0.0
|
||||||
Requires: python-keyring >= 23.5.0
|
Requires: python-keyring >= 23.5.0
|
||||||
Requires: python-packaging >= 21.3
|
Requires: python-packaging >= 24.2
|
||||||
Requires: python-platformdirs >= 2.5.0
|
Requires: python-platformdirs >= 2.5.0
|
||||||
|
Requires: python-pyproject-hooks
|
||||||
Requires: python-rich >= 11.2.0
|
Requires: python-rich >= 11.2.0
|
||||||
Requires: python-shellingham >= 1.4.0
|
Requires: python-shellingham >= 1.4.0
|
||||||
Requires: python-tomli-w >= 1.0
|
Requires: python-tomli-w >= 1.0
|
||||||
Requires: python-tomlkit >= 0.11.1
|
Requires: python-tomlkit >= 0.11.1
|
||||||
Requires: python-virtualenv >= 20.16.2
|
Requires: python-uv >= 0.5.23
|
||||||
Requires: python-zstandard < 1
|
Requires: python-virtualenv >= 20.26.1
|
||||||
Requires: uv
|
Requires: (python-backports.zstd > 1 if python-base < 3.14)
|
||||||
Requires: (python-pexpect >= 4.8 with python-pexpect < 5)
|
Requires: (python-pexpect >= 4.8 with python-pexpect < 5)
|
||||||
Requires: (python-userpath >= 1.7 with python-userpath < 2)
|
Requires: (python-userpath >= 1.7 with python-userpath < 2)
|
||||||
|
%if %{with libalternatives}
|
||||||
|
BuildRequires: alts
|
||||||
|
Requires: alts
|
||||||
|
%else
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
|
%endif
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
BuildRequires: %{python_module editables}
|
BuildRequires: %{python_module editables}
|
||||||
BuildRequires: %{python_module filelock >= 3.7.1}
|
BuildRequires: %{python_module filelock >= 3.7.1}
|
||||||
|
BuildRequires: %{python_module flit-core}
|
||||||
BuildRequires: %{python_module hatch = %{version}}
|
BuildRequires: %{python_module hatch = %{version}}
|
||||||
BuildRequires: %{python_module pyfakefs}
|
BuildRequires: %{python_module pyfakefs}
|
||||||
BuildRequires: %{python_module pytest-mock}
|
BuildRequires: %{python_module pytest-mock}
|
||||||
@@ -70,7 +95,9 @@ BuildRequires: %{python_module pytest-xdist}
|
|||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module trustme}
|
BuildRequires: %{python_module trustme}
|
||||||
BuildRequires: cargo
|
BuildRequires: cargo
|
||||||
BuildRequires: uv
|
%if 0%{?suse_version} >= 1699
|
||||||
|
BuildRequires: python39-base
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%endif
|
||||||
@@ -89,6 +116,11 @@ Features
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n hatch-hatch-v%{version}
|
%autosetup -p1 -n hatch-hatch-v%{version}
|
||||||
|
%if 0%{?suse_version} >= 1699
|
||||||
|
sed -e 's/Source: pip$/Source: system/' \
|
||||||
|
-e 's/Source: Pyenv$/Source: system/' \
|
||||||
|
-i tests/cli/self/test_report.py
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if !%{with test}
|
%if !%{with test}
|
||||||
@@ -108,6 +140,9 @@ export LANG=en_US.UTF-8
|
|||||||
# tests expect this to be unset and use their own reproducible value. Nothing installed from here.
|
# tests expect this to be unset and use their own reproducible value. Nothing installed from here.
|
||||||
# https://hatch.pypa.io/latest/config/build/#reproducible-builds
|
# https://hatch.pypa.io/latest/config/build/#reproducible-builds
|
||||||
unset SOURCE_DATE_EPOCH
|
unset SOURCE_DATE_EPOCH
|
||||||
|
# Need to provide some wheels offline: gh#pypa/hatch#2123
|
||||||
|
export UV_FIND_LINKS=%{_sourcedir}
|
||||||
|
export UV_OFFLINE=1
|
||||||
# finds bash instead of expected sh as default shell inside obs
|
# finds bash instead of expected sh as default shell inside obs
|
||||||
donttest="(test_install and test_already_installed_update_prompt)"
|
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_already_installed_update_flag)"
|
||||||
@@ -115,19 +150,29 @@ donttest="$donttest or (test_install and test_all)"
|
|||||||
# platform distribution selection errors: https://github.com/pypa/hatch/issues/1145
|
# platform distribution selection errors: https://github.com/pypa/hatch/issues/1145
|
||||||
%ifnarch x86_64
|
%ifnarch x86_64
|
||||||
donttest="$donttest or (test_resolve and test_resolution_error)"
|
donttest="$donttest or (test_resolve and test_resolution_error)"
|
||||||
donttest+=" or test_custom_source or test_pypy_custom"
|
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
|
%endif
|
||||||
%ifarch s390x
|
%ifarch s390x
|
||||||
# Console width different
|
# Console width different
|
||||||
donttest="$donttest or test_context_formatting"
|
donttest="$donttest or test_context_formatting"
|
||||||
%endif
|
%endif
|
||||||
|
# This requires a hatchling not released yet (hatchling > 1.28)
|
||||||
# Requires network
|
donttest+=" or test_sbom_from_build_data"
|
||||||
donttest+=" or test_uv_env"
|
%if 0%{?suse_version} < 1699
|
||||||
# Fails with python 3.12
|
# Wants to create a Python 3.9 environment and would download the interpreter
|
||||||
donttest+=" or test_pyenv or test_no_open or test_open"
|
donttest+=" or test_workspace_overrides_matrix_conditional_members"
|
||||||
|
donttest+=" or test_workspace_overrides_combined_conditions"
|
||||||
%pytest -v -k "not ($donttest)"
|
%endif
|
||||||
|
# Would need to provide too many offline wheels
|
||||||
|
donttest+=" or test_workspace_member_features"
|
||||||
|
donttest+=" or test_workspace_library_with_plugins"
|
||||||
|
donttest+=" or test_workspace_multi_service_application"
|
||||||
|
donttest+=" or test_workspace_documentation_generation"
|
||||||
|
donttest+=" or test_workspace_development_workflow"
|
||||||
|
donttest+=" or test_workspace_overrides_matrix_conditional_members"
|
||||||
|
%pytest -n auto -v -k "not ($donttest)"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%post
|
%post
|
||||||
@@ -136,6 +181,9 @@ donttest+=" or test_pyenv or test_no_open or test_open"
|
|||||||
%postun
|
%postun
|
||||||
%python_uninstall_alternative hatch
|
%python_uninstall_alternative hatch
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%python_libalternatives_reset_alternative hatch
|
||||||
|
|
||||||
%if !%{with test}
|
%if !%{with test}
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.md
|
%doc README.md
|
||||||
|
|||||||
3
requests-2.32.5-py3-none-any.whl
Normal file
3
requests-2.32.5-py3-none-any.whl
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:2462f94637a34fd532264295e186976db0f5d453d1cdd31473c85a6a161affb6
|
||||||
|
size 64738
|
||||||
3
setuptools-80.9.0-py3-none-any.whl
Normal file
3
setuptools-80.9.0-py3-none-any.whl
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:062d34222ad13e0cc312a4c02d73f059e86a4acbfbdea8f8f76b28c99f306922
|
||||||
|
size 1201486
|
||||||
@@ -1,54 +0,0 @@
|
|||||||
Index: hatch-hatch-v1.9.4/tests/backend/builders/test_wheel.py
|
|
||||||
===================================================================
|
|
||||||
--- hatch-hatch-v1.9.4.orig/tests/backend/builders/test_wheel.py
|
|
||||||
+++ hatch-hatch-v1.9.4/tests/backend/builders/test_wheel.py
|
|
||||||
@@ -161,15 +161,18 @@ class TestDefaultFileSelection:
|
|
||||||
ValueError,
|
|
||||||
match=(
|
|
||||||
'Unable to determine which files to ship inside the wheel using the following heuristics: '
|
|
||||||
- 'https://hatch.pypa.io/latest/plugins/builder/wheel/#default-file-selection\n\nAt least one '
|
|
||||||
- 'file selection option must be defined in the `tool.hatch.build.targets.wheel` table, see: '
|
|
||||||
- 'https://hatch.pypa.io/latest/config/build/\n\nAs an example, if you intend to ship a '
|
|
||||||
- 'directory named `foo` that resides within a `src` directory located at the root of your '
|
|
||||||
- 'project, you can define the following:\n\n\\[tool.hatch.build.targets.wheel\\]\n'
|
|
||||||
+ 'https://hatch.pypa.io/latest/plugins/builder/wheel/#default-file-selection\n\n'
|
|
||||||
+ 'The most likely cause of this is that there is no directory that matches the name of your '
|
|
||||||
+ 'project \\(my_app\\).\n\n'
|
|
||||||
+ 'At least one file selection option must be defined in the `tool.hatch.build.targets.wheel` '
|
|
||||||
+ 'table, see: https://hatch.pypa.io/latest/config/build/\n\n'
|
|
||||||
+ 'As an example, if you intend to ship a directory named `foo` that resides within a `src` '
|
|
||||||
+ 'directory located at the root of your project, you can define the following:\n\n'
|
|
||||||
+ '\\[tool.hatch.build.targets.wheel\\]\n'
|
|
||||||
'packages = \\["src/foo"\\]'
|
|
||||||
),
|
|
||||||
):
|
|
||||||
- _ = method()
|
|
||||||
+ method()
|
|
||||||
|
|
||||||
def test_bypass_selection_option(self, temp_dir):
|
|
||||||
config = {
|
|
||||||
Index: hatch-hatch-v1.9.4/tests/backend/builders/plugin/test_interface.py
|
|
||||||
===================================================================
|
|
||||||
--- hatch-hatch-v1.9.4.orig/tests/backend/builders/plugin/test_interface.py
|
|
||||||
+++ hatch-hatch-v1.9.4/tests/backend/builders/plugin/test_interface.py
|
|
||||||
@@ -62,7 +62,7 @@ class TestMetadata:
|
|
||||||
config = {'project': {}}
|
|
||||||
builder = MockBuilder(str(isolation), config=config)
|
|
||||||
|
|
||||||
- assert builder.project_config is builder.project_config is config['project']
|
|
||||||
+ assert builder.project_config == builder.project_config == config['project']
|
|
||||||
|
|
||||||
def test_hatch(self, isolation):
|
|
||||||
config = {'tool': {'hatch': {}}}
|
|
||||||
Index: hatch-hatch-v1.9.4/tests/backend/metadata/test_core.py
|
|
||||||
===================================================================
|
|
||||||
--- hatch-hatch-v1.9.4.orig/tests/backend/metadata/test_core.py
|
|
||||||
+++ hatch-hatch-v1.9.4/tests/backend/metadata/test_core.py
|
|
||||||
@@ -84,7 +84,6 @@ class TestDynamic:
|
|
||||||
dynamic = ['version']
|
|
||||||
metadata = ProjectMetadata(str(isolation), None, {'project': {'dynamic': dynamic}})
|
|
||||||
|
|
||||||
- assert metadata.core.dynamic is dynamic
|
|
||||||
assert metadata.core.dynamic == ['version']
|
|
||||||
|
|
||||||
def test_cache_not_array(self, isolation):
|
|
||||||
3
trove_classifiers-2025.12.1.14-py3-none-any.whl
Normal file
3
trove_classifiers-2025.12.1.14-py3-none-any.whl
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:a8206978ede95937b9959c3aff3eb258bbf7b07dff391ddd4ea7e61f316635ab
|
||||||
|
size 14184
|
||||||
3
urllib3-2.6.2-py3-none-any.whl
Normal file
3
urllib3-2.6.2-py3-none-any.whl
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ec21cddfe7724fc7cb4ba4bea7aa8e2ef36f607a4bab81aa6ce42a13dc3f03dd
|
||||||
|
size 131182
|
||||||
Reference in New Issue
Block a user