Accepting request 1114435 from home:bnavigator:branches:Application:ERP:GNUHealth:Factory

- Remove dependencies which are not used at runtime anywhere
  * only CairoSVG is reqired for PNG charts since at least
    pygal 1.7:
    https://github.com/Kozea/pygal/blob/1.6.2/setup.py#L70
  * remove-obsolete-deps.patch

OBS-URL: https://build.opensuse.org/request/show/1114435
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/mygnuhealth?expand=0&rev=34
This commit is contained in:
Benjamin Greiner 2023-09-29 18:14:33 +00:00 committed by Git OBS Bridge
parent f3a71b8900
commit 5c8ed1951b
3 changed files with 38 additions and 7 deletions

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Fri Sep 29 18:03:46 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Remove dependencies which are not used at runtime anywhere
* only CairoSVG is reqired for PNG charts since at least
pygal 1.7:
https://github.com/Kozea/pygal/blob/1.6.2/setup.py#L70
* remove-obsolete-deps.patch
-------------------------------------------------------------------
Fri Sep 29 16:31:48 UTC 2023 - Ben Greiner <code@bnavigator.de>

View File

@ -41,8 +41,7 @@ URL: http://health.gnu.org/
Source: https://ftp.gnu.org/gnu/health/mygnuhealth/%{name}-%{version}.tar.gz
Source1: https://ftp.gnu.org/gnu/health/mygnuhealth/%{name}-%{version}.tar.gz.sig
Source2: https://savannah.gnu.org/project/memberlist-gpgkeys.php?group=health&download=1#/%{name}.keyring
## Patch0: shebang.diff
## Patch1: doc_path.diff
Patch0: remove-obsolete-deps.patch
# SECTION build
BuildRequires: fdupes
BuildRequires: %{python_module wheel}
@ -59,17 +58,12 @@ BuildRequires: %{python_module pygal}
BuildRequires: %{python_module tinydb}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module CairoSVG}
# DO NOT SUBMIT TO FACTORY UNTIL THIS IS PATCHED to tinycss2 or old obsolete tinycss is back
#BuildRequires: %%{python_module tinycss}
BuildRequires: %{python_module cssselect}
Requires: python-bcrypt
Requires: python-Kivy
Requires: python-pygal
Requires: python-tinydb
Requires: python-requests
Requires: python-CairoSVG
Requires: python-tinycss
Requires: python-cssselect
# /SECTION
BuildArch: noarch
# singlespec rewriter for exactly one python (see above)

View File

@ -0,0 +1,28 @@
Index: mygnuhealth/buildozer.spec
===================================================================
--- mygnuhealth.orig/buildozer.spec
+++ mygnuhealth/buildozer.spec
@@ -37,8 +37,8 @@ version = 1.9
# (list) Application requirements
# comma separated e.g. requirements = sqlite3,kivy
-# pygal, cairosvg, tinycss and cssselect are to render the charts in PNG format
-requirements = python3,kivy, tinydb, bcrypt, pygal, cairosvg, tinycss, cssselect
+# pygal, cairosvg is to render the charts in PNG format
+requirements = python3,kivy, tinydb, bcrypt, pygal, cairosvg
# (str) Custom source folders for requirements
# Sets custom source for any requirements with recipes
Index: mygnuhealth/pyproject.toml
===================================================================
--- mygnuhealth.orig/pyproject.toml
+++ mygnuhealth/pyproject.toml
@@ -18,8 +18,6 @@ dependencies = [
'tinydb',
'bcrypt',
'cairosvg',
- 'tinycss',
- 'cssselect'
]
classifiers=[