Accepting request 1135269 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1135269 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hatch?expand=0&rev=12
This commit is contained in:
commit
44f5c15be1
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:45c17cb36f48c07f1ea28bb84efa267b2e729d24ab9ac248b0a2812145faf771
|
|
||||||
size 762161
|
|
3
hatch-v1.9.1.tar.gz
Normal file
3
hatch-v1.9.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:6769f71ae5c570122749e0028b3867cf285e0517b685a8f3d4ec7073c9af2e4e
|
||||||
|
size 768341
|
@ -1,3 +1,49 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 25 09:52:54 UTC 2023 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Update to 1.9.1
|
||||||
|
* Ensure that the dependency_hash method of the environment
|
||||||
|
interface is called after sync_dependencies for cases where the
|
||||||
|
hash is only known at that point, such as for dependency
|
||||||
|
lockers
|
||||||
|
* Only acknowledge the HATCH_PYTHON_VARIANT_* environment
|
||||||
|
variables for Python resolution for supported platforms and
|
||||||
|
architectures
|
||||||
|
* Fix Python resolution when there are metadata hooks with
|
||||||
|
unsatisfied dependencies
|
||||||
|
- Unskip default platform tests gh#pypa/hatch#1145, but skip
|
||||||
|
error checker
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Dec 24 15:05:54 UTC 2023 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Update to 1.9.0
|
||||||
|
## Changed:
|
||||||
|
* Environments prefixed by hatch- are now considered internal and
|
||||||
|
used for special purposes such as configuration for static
|
||||||
|
analysis
|
||||||
|
## Added:
|
||||||
|
* Enable docstring formatting by default for static analysis
|
||||||
|
* Allow for overriding config of internal environments
|
||||||
|
* Concretely state the expected API contract for the environment
|
||||||
|
interface methods find and check_compatibility
|
||||||
|
* Upgrade Ruff to 0.1.8
|
||||||
|
* Bump the minimum supported version of Hatchling to 1.21.0
|
||||||
|
## Fixed:
|
||||||
|
* Ignore a project's Python requirement for environments where
|
||||||
|
the project is not installed
|
||||||
|
* When not persisting config for static analysis, properly manage
|
||||||
|
internal settings when Ruff's top level table already exists
|
||||||
|
* Ignore compatibility checks when environments have already been
|
||||||
|
created, significantly improving performance of environment
|
||||||
|
usage
|
||||||
|
* Properly allow overriding of the path option for the virtual
|
||||||
|
environment type
|
||||||
|
* Fix nushell activation on non-Windows systems
|
||||||
|
- Skip default platform tests on non x86_64
|
||||||
|
- Stop using %{?python_enable_dependency_generator}: 15.x does
|
||||||
|
not generate the requirements and gloriously fails when testing
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Dec 18 20:27:19 UTC 2023 - Ben Greiner <code@bnavigator.de>
|
Mon Dec 18 20:27:19 UTC 2023 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
%endif
|
%endif
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-hatch%{psuffix}
|
Name: python-hatch%{psuffix}
|
||||||
Version: 1.8.1
|
Version: 1.9.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Modern, extensible Python project management
|
Summary: Modern, extensible Python project management
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -39,11 +39,24 @@ BuildRequires: %{python_module hatchling >= 1.19}
|
|||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildArch: noarch
|
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun):update-alternatives
|
||||||
Requires: git-core
|
Requires: git-core
|
||||||
%{?python_enable_dependency_generator}
|
Requires: python-click >= 8.0.6
|
||||||
|
Requires: python-hatchling >= 1.21.0
|
||||||
|
Requires: python-httpx >= 0.22.0
|
||||||
|
Requires: python-hyperlink >= 21.0.0
|
||||||
|
Requires: python-keyring >= 23.5.0
|
||||||
|
Requires: python-packaging >= 21.3
|
||||||
|
Requires: python-platformdirs >= 2.5.0
|
||||||
|
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-virtualenv >= 20.16.2
|
||||||
|
Requires: python-zstandard < 1
|
||||||
|
Requires: (python-pexpect >= 4.8 with python-pexpect < 5)
|
||||||
|
Requires: (python-userpath >= 1.7 with python-userpath < 2)
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
BuildRequires: %{python_module filelock >= 3.7.1}
|
BuildRequires: %{python_module filelock >= 3.7.1}
|
||||||
BuildRequires: %{python_module hatch = %{version}}
|
BuildRequires: %{python_module hatch = %{version}}
|
||||||
@ -52,6 +65,8 @@ 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
|
||||||
|
%else
|
||||||
|
BuildArch: noarch
|
||||||
%endif
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@ -69,11 +84,13 @@ Features
|
|||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n hatch-hatch-v%{version}
|
%autosetup -p1 -n hatch-hatch-v%{version}
|
||||||
|
|
||||||
%if !%{with test}
|
|
||||||
%build
|
%build
|
||||||
|
%if !%{with test}
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%if !%{with test}
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/hatch
|
%python_clone -a %{buildroot}%{_bindir}/hatch
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
@ -89,7 +106,15 @@ unset SOURCE_DATE_EPOCH
|
|||||||
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)"
|
||||||
donttest="$donttest or (test_install and test_all)"
|
donttest="$donttest or (test_install and test_all)"
|
||||||
%pytest -k "not ($donttest)"
|
# platform distribution selection errors: https://github.com/pypa/hatch/issues/1145
|
||||||
|
%ifnarch x86_64
|
||||||
|
donttest="$donttest or (test_resolve and test_resolution_error)"
|
||||||
|
%endif
|
||||||
|
%ifarch s390x
|
||||||
|
# Console width different
|
||||||
|
donttest="$donttest or test_context_formatting"
|
||||||
|
%endif
|
||||||
|
%pytest -v -k "not ($donttest)"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
Loading…
x
Reference in New Issue
Block a user