Blame python-aiokafka.spec

cf66a79
%global sname aiokafka
cf66a79
%global owner aio-libs
cf66a79
cf66a79
Name:       python-%{sname}
87a662f
Version:    0.8.0
87a662f
Release:    1%{?dist}
cf66a79
Summary:    Asyncio client for Kafka
cf66a79
License:    ASL 2.0
cf66a79
Source0:    https://github.com/%{owner}/%{sname}/archive/v%{version}/%{sname}-%{version}.tar.gz
cf66a79
URL:        https://github.com/%{owner}/%{sname}
cf66a79
BuildArch:  noarch
cf66a79
9c9dac9
BuildRequires:  python3-devel python3-pytest python3-docker python3-snappy snappy-devel python3-lz4 python3-zstd
cf66a79
Requires:       python3
cf66a79
cf66a79
%description
cf66a79
%{summary}
cf66a79
cf66a79
%package -n python3-%{sname}
cf66a79
Summary:    %{summary}
cf66a79
cf66a79
%description -n python3-%{sname}
cf66a79
%{summary}
cf66a79
cf66a79
%prep
cf66a79
%autosetup -p1 -n %{sname}-%{version}
cf66a79
cf66a79
%generate_buildrequires
cf66a79
%pyproject_buildrequires -r
cf66a79
cf66a79
%build
cf66a79
rm aiokafka/record/_crecords/crc32c.[ch]
cf66a79
%pyproject_wheel
cf66a79
cf66a79
%install
cf66a79
%pyproject_install
cf66a79
%pyproject_save_files %{sname}
cf66a79
cf66a79
%check
cf66a79
# Some tests cannot be run due to incompatibility issues and lack of certificates
cf66a79
# The flag 'no:warnings' was added since the 'distutils' is now deprecated in Python 3.10 and 3.11, to be removed in Python 3.12
9c9dac9
AIOKAFKA_NO_EXTENSIONS=1 py.test -s -p no:warnings\
9c9dac9
 -k 'not test_read_write_serde_v0_v1_with_compression and not test_create_ssl_context and not test_txn_manager and not test_read_write_serde_v2 and not test_unavailable_codec' tests
cf66a79
cf66a79
%files -n python3-%{sname} -f %{pyproject_files}
cf66a79
%license LICENSE
cf66a79
%doc README.rst
cf66a79
cf66a79
%changelog
87a662f
* Tue Jan 10 2023 Italo Garcia <italo.garcia@aiven.io> - 0.8.0-1
87a662f
- Update to version 0.8.0
87a662f
cf66a79
* Tue Jul 12 2022 Italo Garcia <italo.garcia@aiven.io> - 0.7.2-1
cf66a79
- Initial package