From 9e0f2ca1d75787d69d1cd5f70c4ae7ee643bb097200ff05acd9ccd554cd3805e Mon Sep 17 00:00:00 2001 From: Axel Braun Date: Wed, 31 May 2023 17:30:15 +0000 Subject: [PATCH] Accepting request 1090042 from home:bnavigator:branches:devel:languages:python - Add onionshare-poetry-core.patch * poetry-core is enough to build and has a much smaller footprint OBS-URL: https://build.opensuse.org/request/show/1090042 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-onionshare?expand=0&rev=43 --- onionshare-poetry-core.patch | 21 +++++++++++++++++++++ python-onionshare.changes | 6 ++++++ python-onionshare.spec | 6 ++++-- 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 onionshare-poetry-core.patch diff --git a/onionshare-poetry-core.patch b/onionshare-poetry-core.patch new file mode 100644 index 0000000..42a03a7 --- /dev/null +++ b/onionshare-poetry-core.patch @@ -0,0 +1,21 @@ +From a05d7af729585bdaa4f71437167339ac67bf3327 Mon Sep 17 00:00:00 2001 +From: Saptak S +Date: Sun, 9 Apr 2023 20:24:48 +0530 +Subject: [PATCH] Updates poetry build system to poetry-core + +--- + cli/pyproject.toml | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/cli/pyproject.toml b/cli/pyproject.toml +index d0f311b39..a3675a7a1 100644 +--- a/cli/pyproject.toml ++++ b/cli/pyproject.toml +@@ -40,5 +40,5 @@ pytest = ">=7.2.0" + onionshare-cli = 'onionshare_cli:main' + + [build-system] +-requires = ["poetry>=0.12"] +-build-backend = "poetry.masonry.api" ++requires = ["poetry-core"] ++build-backend = "poetry.core.masonry.api" diff --git a/python-onionshare.changes b/python-onionshare.changes index a010eb7..9736c05 100644 --- a/python-onionshare.changes +++ b/python-onionshare.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed May 31 16:00:56 UTC 2023 - Ben Greiner + +- Add onionshare-poetry-core.patch + * poetry-core is enough to build and has a much smaller footprint + ------------------------------------------------------------------- Sat Dec 10 20:57:15 UTC 2022 - Dirk Müller diff --git a/python-onionshare.spec b/python-onionshare.spec index 788b8c2..b55bc73 100644 --- a/python-onionshare.spec +++ b/python-onionshare.spec @@ -1,7 +1,7 @@ # # spec file # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # Copyright (c) 2018-2022 Dr. Axel Braun # # All modifications and additions to the file contributed by third parties @@ -32,6 +32,8 @@ Patch0: 0001-adjust_tests.diff Patch1: fix-test-cli-web.patch # PATCH-FIX-OPENSUSE relax-async-mode.patch -- Do not rely on gevent Patch2: relax-async-mode.patch +# PATCH-FIX-UPSTREAM onionshare-poetry-core.patch -- poetry-core is enough to build and has a much smaller footprint +Patch3: https://github.com/onionshare/onionshare/commit/a05d7af729585bdaa4f71437167339ac67bf3327.patch#/onionshare-poetry-core.patch BuildRequires: fdupes BuildRequires: hicolor-icon-theme BuildRequires: python-rpm-macros @@ -43,7 +45,7 @@ BuildRequires: python3-Unidecode BuildRequires: python3-cepa >= 1.8.3 BuildRequires: python3-colorama BuildRequires: python3-eventlet -BuildRequires: python3-poetry +BuildRequires: python3-poetry-core BuildRequires: python3-psutil BuildRequires: python3-pyside2 >= 5.15.2 BuildRequires: python3-pytest