diff --git a/proteus.changes b/proteus.changes index afcf9b6..440fe3a 100644 --- a/proteus.changes +++ b/proteus.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +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 + +- 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..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 --prefix=%_prefix --root=%buildroot -%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