- Remove dataclasses from setup.py for AlmaLinux 9 and later

This commit is contained in:
eabdullin 2025-07-10 11:58:15 +03:00
parent 5510557c8c
commit d29aa87eda
2 changed files with 38 additions and 6 deletions

View File

@ -0,0 +1,24 @@
From dd7c59da2309f974c3d530590c33a75f553bfc2e Mon Sep 17 00:00:00 2001
From: eabdullin <eabdullin@almalinux.org>
Date: Thu, 10 Jul 2025 11:52:16 +0300
Subject: [PATCH] Remove dataclasses from setup for python39
---
setup.py | 1 -
1 file changed, 1 deletion(-)
diff --git a/setup.py b/setup.py
index 4568112..c3b0d83 100644
--- a/setup.py
+++ b/setup.py
@@ -31,7 +31,6 @@ setup(name='immudb-py',
keywords=['immudb', 'immutable'],
install_requires=[
'grpcio>=1.31.0',
- 'dataclasses>=0.6',
'protobuf>=3.13.0,<4.0.0',
'google-api>=0.1.12',
'google-api-core>=1.22.1',
--
2.39.5 (Apple Git-154)

View File

@ -9,10 +9,12 @@ License: Apache-2.0
URL: https://github.com/codenotary/immudb-py
Source0: https://github.com/codenotary/immudb-py/archive/v%{immudb_version}/immudb-py-%{version}.tar.gz
Patch1: 0001-Remove-dataclasses-from-setup-for-python39.patch
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-pip
BuildRequires: python%{python3_pkgversion}-wheel
BuildRequires: pyproject-rpm-macros
%description
@ -21,7 +23,7 @@ BuildRequires: pyproject-rpm-macros
%package -n python%{python3_pkgversion}-%{modname}
Summary: %{summary}
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
Requires: python3-immudb = 1.4.0
Requires: python%{python3_pkgversion}-immudb = 1.4.0
%description -n python%{python3_pkgversion}-%{modname}
%{summary}.
@ -31,7 +33,10 @@ Python %{python3_pkgversion} version.
%pyproject_buildrequires
%prep
%autosetup -n immudb-py-%{version}
%setup -n immudb-py-%{version}
%if 0%{?rhel} > 8
%patch1 -p1 -b .remove-dataclasses
%endif
%build
%pyproject_wheel
@ -40,10 +45,13 @@ Python %{python3_pkgversion} version.
%pyproject_install
%pyproject_save_files %{modname}
%files -n python3-%{modname} -f %{pyproject_files}
%files -n python%{python3_pkgversion}-%{modname} -f %{pyproject_files}
%doc README.md
%license LICENSE
%changelog
* Thu Jul 10 2025 Eduard Abdullin <eabdullin@almalinux.org> - 1.4.0-2
- Remove dataclasses from setup.py for AlmaLinux 9 and later
* Mon May 12 2025 Eduard Abdullin <eabdullin@almalinux.org> - 1.4.0-1
- Initial release