forked from pool/python-poetry
Accepting request 1088458 from devel:languages:python
- Update to 1.5.0 ## Added * Introduce the new source priorities explicit and supplemental (#7658, #6879). * Introduce the option to configure the priority of the implicit PyPI source (#7801). * Add handling for corrupt cache files (#7453). * Improve caching of URL and git dependencies (#7693, #7473). * Add option to skip installing directory dependencies (#6845, #7923). * Add --executable option to poetry env info (#7547). * Add --top-level option to poetry show (#7415). * Add --lock option to poetry remove (#7917). * Add experimental POETRY_REQUESTS_TIMEOUT option (#7081). * Improve performance of wheel inspection by avoiding unnecessary file copy operations (#7916). ## Changed * Remove the old deprecated installer and the corresponding setting experimental.new-installer (#7356). * Introduce priority key for sources and deprecate flags default and secondary (#7658). * Deprecate poetry run <entry point> if the entry point was not previously installed via poetry install (#7606). * Only write the lock file if the installation succeeds (#7498). * Do not write the unused package category into the lock file (#7637). ## Fixed * Fix an issue where Poetry's internal pyproject.toml continually grows larger with empty lines (#7705). * Fix an issue where Poetry crashes due to corrupt cache files OBS-URL: https://build.opensuse.org/request/show/1088458 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-poetry?expand=0&rev=25
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0bd580a42482579635e774c5286ef73b8df3427567123cdb128b286cec671b3c
|
||||
size 1454500
|
3
poetry-1.5.0.tar.gz
Normal file
3
poetry-1.5.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:51dc32599edba7eafeb5038282aa9c5629d1e1ac72061075b0a302b3546bd839
|
||||
size 3121049
|
@@ -1,22 +0,0 @@
|
||||
From 8357c12dcec3f6af0c41778a4e6d9e2804b1f5b5 Mon Sep 17 00:00:00 2001
|
||||
From: Ben Greiner <code@bnavigator.de>
|
||||
Date: Mon, 8 May 2023 22:12:03 +0200
|
||||
Subject: [PATCH 1/2] raise requests-toolbelt upper bound
|
||||
|
||||
---
|
||||
pyproject.toml | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
Index: poetry-1.4.2/pyproject.toml
|
||||
===================================================================
|
||||
--- poetry-1.4.2.orig/pyproject.toml
|
||||
+++ poetry-1.4.2/pyproject.toml
|
||||
@@ -69,7 +69,7 @@ pkginfo = "^1.9.4"
|
||||
platformdirs = "^2.5.2"
|
||||
pyproject-hooks = "^1.0.0"
|
||||
requests = "^2.18"
|
||||
-requests-toolbelt = ">=0.9.1,<0.11.0"
|
||||
+requests-toolbelt = ">=0.9.1,<2"
|
||||
shellingham = "^1.5"
|
||||
tomli = { version = "^2.0.1", python = "<3.11" }
|
||||
# exclude 0.11.2 and 0.11.3 due to https://github.com/sdispater/tomlkit/issues/225
|
@@ -1,3 +1,74 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon May 22 20:32:37 UTC 2023 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Update to 1.5.0
|
||||
## Added
|
||||
* Introduce the new source priorities explicit and supplemental
|
||||
(#7658, #6879).
|
||||
* Introduce the option to configure the priority of the implicit
|
||||
PyPI source (#7801).
|
||||
* Add handling for corrupt cache files (#7453).
|
||||
* Improve caching of URL and git dependencies (#7693, #7473).
|
||||
* Add option to skip installing directory dependencies (#6845,
|
||||
#7923).
|
||||
* Add --executable option to poetry env info (#7547).
|
||||
* Add --top-level option to poetry show (#7415).
|
||||
* Add --lock option to poetry remove (#7917).
|
||||
* Add experimental POETRY_REQUESTS_TIMEOUT option (#7081).
|
||||
* Improve performance of wheel inspection by avoiding unnecessary
|
||||
file copy operations (#7916).
|
||||
## Changed
|
||||
* Remove the old deprecated installer and the corresponding
|
||||
setting experimental.new-installer (#7356).
|
||||
* Introduce priority key for sources and deprecate flags default
|
||||
and secondary (#7658).
|
||||
* Deprecate poetry run <entry point> if the entry point was not
|
||||
previously installed via poetry install (#7606).
|
||||
* Only write the lock file if the installation succeeds (#7498).
|
||||
* Do not write the unused package category into the lock file
|
||||
(#7637).
|
||||
## Fixed
|
||||
* Fix an issue where Poetry's internal pyproject.toml continually
|
||||
grows larger with empty lines (#7705).
|
||||
* Fix an issue where Poetry crashes due to corrupt cache files
|
||||
(#7453).
|
||||
* Fix an issue where the Retry-After in HTTP responses was not
|
||||
respected and retries were handled inconsistently (#7072).
|
||||
* Fix an issue where Poetry silently ignored invalid groups
|
||||
(#7529).
|
||||
* Fix an issue where Poetry does not find a compatible Python
|
||||
version if not given explicitly (#7771).
|
||||
* Fix an issue where the direct_url.json of an editable install
|
||||
from a git dependency was invalid (#7473).
|
||||
* Fix an issue where error messages from build backends were not
|
||||
decoded correctly (#7781).
|
||||
* Fix an infinite loop when adding certain dependencies (#7405).
|
||||
* Fix an issue where pre-commit hooks skip pyproject.toml files
|
||||
in subdirectories (#7239).
|
||||
* Fix an issue where pre-commit hooks do not use the expected
|
||||
Python version (#6989).
|
||||
* Fix an issue where an unclear error message is printed if the
|
||||
project name is the same as one of its dependencies (#7757).
|
||||
* Fix an issue where poetry install returns a zero exit status
|
||||
even though the build script failed (#7812).
|
||||
* Fix an issue where an existing .venv was not used if in-project
|
||||
was not set (#7792).
|
||||
* Fix an issue where multiple extras passed to poetry add were
|
||||
not parsed correctly (#7836).
|
||||
* Fix an issue where poetry shell did not send a newline to fish
|
||||
(#7884).
|
||||
* Fix an issue where poetry update --lock printed operations that
|
||||
were not executed (#7915).
|
||||
* Fix an issue where poetry add --lock did perform a full update
|
||||
of all dependencies (#7920).
|
||||
* Fix an issue where poetry shell did not work with nushell
|
||||
(#7919).
|
||||
* Fix an issue where subprocess calls failed on Python 3.7
|
||||
(#7932).
|
||||
* Fix an issue where keyring was called even though the password
|
||||
was stored in an environment variable (#7928).
|
||||
- Drop poetry-pr7893-unpin-requests-toolbelt.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 8 20:28:11 UTC 2023 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
|
@@ -27,7 +27,7 @@
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-poetry%{psuffix}
|
||||
Version: 1.4.2
|
||||
Version: 1.5.0
|
||||
Release: 0
|
||||
Summary: Python dependency management and packaging
|
||||
License: MIT
|
||||
@@ -35,23 +35,20 @@ Group: Development/Languages/Python
|
||||
URL: https://python-poetry.org/
|
||||
# PyPI sdist doesnt contain tests
|
||||
Source: https://github.com/python-poetry/poetry/archive/%{version}.tar.gz#/poetry-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM poetry-pr7893-unpin-requests-toolbelt.patch gh#python-poetry/poetry#7893
|
||||
Patch0: poetry-pr7893-unpin-requests-toolbelt.patch
|
||||
BuildRequires: %{python_module base >= 3.7}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module poetry-core = 1.5.2}
|
||||
BuildRequires: %{python_module poetry-core = 1.6.0}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-CacheControl >= 0.12.9
|
||||
Requires: python-build >= 0.10.0
|
||||
Requires: python-cachy >= 0.3.0
|
||||
Requires: python-cleo >= 2.0.0
|
||||
Requires: python-crashtest >= 0.4.1
|
||||
Requires: python-dulwich >= 0.21.2
|
||||
Requires: python-filelock >= 3.8.0
|
||||
Requires: python-html5lib >= 1.0
|
||||
Requires: python-poetry-core = 1.5.2
|
||||
Requires: python-poetry-plugin-export >= 1.3.0
|
||||
Requires: python-poetry-core = 1.6.0
|
||||
Requires: python-poetry-plugin-export >= 1.3.1
|
||||
%if 0%{?python_version_nodots} < 310
|
||||
Requires: python-importlib-metadata >= 4.4
|
||||
%endif
|
||||
@@ -62,7 +59,7 @@ Requires: python-lockfile >= 0.12.2
|
||||
Requires: python-packaging >= 20.4
|
||||
Requires: python-pexpect >= 4.7.0
|
||||
Requires: python-pkginfo >= 1.9.4
|
||||
Requires: python-platformdirs >= 2.5.2
|
||||
Requires: python-platformdirs >= 3.0.0
|
||||
Requires: python-pyproject-hooks >= 1.0.0
|
||||
Requires: python-requests >= 2.18
|
||||
Requires: python-shellingham >= 1.5
|
||||
@@ -72,7 +69,7 @@ Requires: python-tomli >= 2.0.1
|
||||
%endif
|
||||
Requires: python-trove-classifiers >= 2022.5.19
|
||||
Requires: python-urllib3 >= 1.26.0
|
||||
Requires: python-virtualenv >= 20.4.7
|
||||
Requires: python-virtualenv >= 20.22
|
||||
Requires: (python-tomlkit >= 0.11.4 with python-tomlkit < 1.0)
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
@@ -80,7 +77,8 @@ Recommends: git-core
|
||||
Recommends: python-devel
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module deepdiff >= 6.2}
|
||||
BuildRequires: %{python_module cachy >= 0.3.0}
|
||||
BuildRequires: %{python_module deepdiff >= 6.3}
|
||||
BuildRequires: %{python_module httpretty >= 1.0}
|
||||
# Required because deepdiff > 6.2.3
|
||||
BuildRequires: %{python_module orjson}
|
||||
@@ -98,8 +96,7 @@ Python dependency management and packaging made easy.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n poetry-%{version}
|
||||
for f in console/commands/source/update.py \
|
||||
console/events/console_events.py \
|
||||
for f in console/events/console_events.py \
|
||||
layouts/standard.py; do
|
||||
[ -e src/poetry/$f ] || exit 1 # file does not exist
|
||||
[ ! -s src/poetry/$f ] && echo "# empty module" >> src/poetry/$f || exit 2 # file is not empty
|
||||
@@ -119,6 +116,7 @@ done
|
||||
%check
|
||||
# can't install setuptools from PyPI (no network)
|
||||
donttest="test_uninstall_git_package_nspkg_pth_cleanup or test_builder_setup_generation_runs_with_pip_editable"
|
||||
donttest="$donttest or test_installer_with_pypi_repository"
|
||||
# does not find the expected packages in venv
|
||||
donttest="$donttest or test_executor_should_write_pep610_url_references"
|
||||
donttest="$donttest or test_prepare_directory or test_prepare_sdist"
|
||||
|
Reference in New Issue
Block a user