From 1e59dde088047a1be4b420bde563fbc6815cf11e1ab2b1fe9a29a4845cc38acd Mon Sep 17 00:00:00 2001 From: Axel Braun Date: Tue, 17 Oct 2023 15:14:07 +0000 Subject: [PATCH 1/2] Accepting request 1118311 from home:dgarcia:fix-shebang - Remove %python3_install prefix and root options, that's included in the macro by default. OBS-URL: https://build.opensuse.org/request/show/1118311 OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/proteus?expand=0&rev=50 --- proteus.changes | 6 ++++++ proteus.spec | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/proteus.changes b/proteus.changes index afcf9b6..bd391a4 100644 --- a/proteus.changes +++ b/proteus.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Oct 17 11:54:37 UTC 2023 - Daniel Garcia Moreno + +- Remove %python3_install prefix and root options, that's included in + the macro by default. + ------------------------------------------------------------------- Mon Feb 6 17:37:34 UTC 2023 - Axel Braun diff --git a/proteus.spec b/proteus.spec index 5da7317..1a456f9 100644 --- a/proteus.spec +++ b/proteus.spec @@ -50,7 +50,7 @@ Proteus allows you to access Tryton's modules like a client. Useful for automati %python3_build %install -%python3_install --prefix=%_prefix --root=%buildroot +%python3_install %fdupes -s %{buildroot} %files From 92619e033579385fee22b8091a7601ab02645ceccc621f920a4b9423892df491 Mon Sep 17 00:00:00 2001 From: Axel Braun Date: Wed, 18 Oct 2023 09:30:14 +0000 Subject: [PATCH 2/2] Accepting request 1118543 from home:bnavigator:branches:Application:ERP:GNUHealth:Factory - Clean up deprecated python packaging patterns - Activate unittests - Clean up dependencies - Use PEP517 build and install OBS-URL: https://build.opensuse.org/request/show/1118543 OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/proteus?expand=0&rev=51 --- proteus.changes | 8 ++++++++ proteus.spec | 27 +++++++++++++++++---------- 2 files changed, 25 insertions(+), 10 deletions(-) diff --git a/proteus.changes b/proteus.changes index bd391a4..440fe3a 100644 --- a/proteus.changes +++ b/proteus.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Oct 18 08:42:19 UTC 2023 - Ben Greiner + +- Clean up deprecated python packaging patterns +- Activate unittests +- Clean up dependencies +- Use PEP517 build and install + ------------------------------------------------------------------- Tue Oct 17 11:54:37 UTC 2023 - Daniel Garcia Moreno diff --git a/proteus.spec b/proteus.spec index 1a456f9..1345536 100644 --- a/proteus.spec +++ b/proteus.spec @@ -30,14 +30,15 @@ Source1: http://downloads.tryton.org/%{majorver}/%{name}-%{version}.tar.g Source2: https://keybase.io/cedrickrier/pgp_keys.asc?fingerprint=7C5A4360F6DF81ABA91FD54D6FF50AFE03489130#/%{name}.keyring # List of additional build dependencies BuildRequires: fdupes -BuildRequires: python3-devel -BuildRequires: python3-lxml -BuildRequires: python3-psycopg2 -BuildRequires: python3-pydot +BuildRequires: python3-defusedxml +BuildRequires: python3-pip +BuildRequires: python3-python-dateutil BuildRequires: python3-setuptools -Requires: python3-dateutil +BuildRequires: python3-wheel +BuildRequires: trytond +Requires: python3-defusedxml +Requires: python3-python-dateutil Requires: trytond - BuildArch: noarch %description @@ -47,16 +48,22 @@ Proteus allows you to access Tryton's modules like a client. Useful for automati %setup -q %build -%python3_build +%python3_pyproject_wheel %install -%python3_install -%fdupes -s %{buildroot} +%python3_pyproject_install +%fdupes %{buildroot}%{python3_sitelib} + +%check +export PYTHONDONTWRITEBYTECODE=1 +export PYTHONPATH=%{buildroot}%{python3_sitelib} +python3 -m unittest -v %files %defattr(-,root,root) %doc README.rst %license LICENSE -%{python3_sitelib}/* +%{python3_sitelib}/proteus +%{python3_sitelib}/proteus-%{version}.dist-info %changelog