forked from pool/python-hatch
Accepting request 1133911 from home:bnavigator:branches:devel:languages:python
- Update to 1.8.1 ## Fixed: * Fix regression in calling subprocesses with updated PATH * Fix automatic installation of environment plugins when running as a standalone binary * Change default location of Python installations - Release 1.8.0 ## Changed: * Drop support for Python 3.7 * The get_build_process method of the environment interface has been removed; plugins should use the new run_builder method instead * Remove pyperclip dependency and the --copy flag of the config find command * When running the build command all output from builders is now displayed as-is in real time without the stripping of ANSI codes * Version information (for Hatch itself) is now derived from Git ## Added: * Support Python 3.12 * Add installers and standalone binaries * Add the ability to manage Python installations * Add fmt command * The virtual environment type can now automatically download requested versions of Python that are not installed * Add dependency_hash method to the environment interface * The state of installed dependencies for environments is saved as metadata so if dependency definitions have not changed then no checking is performed, which can be computationally expensive OBS-URL: https://build.opensuse.org/request/show/1133911 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hatch?expand=0&rev=28
This commit is contained in:
@@ -26,23 +26,16 @@
|
||||
%endif
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-hatch%{psuffix}
|
||||
Version: 1.7.0
|
||||
Version: 1.8.1
|
||||
Release: 0
|
||||
Summary: Modern, extensible Python project management
|
||||
License: MIT
|
||||
URL: https://hatch.pypa.io/latest/
|
||||
# SourceRepository: https://github.com/pypa/hatch
|
||||
Source: https://github.com/pypa/hatch/archive/refs/tags/hatch-v%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM fix-sdist-target.patch -- gh#pypa/hatch@1b10663e645e
|
||||
Patch0: fix-sdist-target.patch
|
||||
# PATCH-FIX-UPSTREAM hatch-pr828-pth-tests.patch, gh#pypa/hatch#828
|
||||
Patch1: hatch-pr828-pth-tests.patch
|
||||
# PATCH-FIX-UPSTREAM CI.patch, gh#pypa/hatch#940
|
||||
Patch2: CI.patch
|
||||
# PATCH-FIX-UPSTREAM packaging232.patch gh#pypa/hatch#989
|
||||
Patch3: packaging232.patch
|
||||
BuildRequires: %{python_module base >= 3.7}
|
||||
BuildRequires: %{python_module hatchling >= 1.14}
|
||||
BuildRequires: %{python_module base >= 3.8}
|
||||
BuildRequires: %{python_module hatch-vcs >= 0.3}
|
||||
BuildRequires: %{python_module hatchling >= 1.19}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -54,14 +47,12 @@ Requires: git-core
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module filelock >= 3.7.1}
|
||||
BuildRequires: %{python_module hatch = %{version}}
|
||||
# Due to Patch1, gh#pypa/hatch#828
|
||||
BuildRequires: %{python_module hatchling >= 1.17.1}
|
||||
BuildRequires: %{python_module pytest-mock}
|
||||
BuildRequires: %{python_module pytest-xdist}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module trustme}
|
||||
BuildRequires: cargo
|
||||
%endif
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -94,7 +85,11 @@ export LANG=en_US.UTF-8
|
||||
# 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
|
||||
unset SOURCE_DATE_EPOCH
|
||||
%pytest
|
||||
# finds bash instead of expected sh as default shell inside obs
|
||||
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_all)"
|
||||
%pytest -k "not ($donttest)"
|
||||
%endif
|
||||
|
||||
%post
|
||||
|
Reference in New Issue
Block a user