Package python3-module-aiosqlite: Specfile

%define _unpackaged_files_terminate_build 1
%define pypi_name aiosqlite
%define mod_name %pypi_name

%def_with check

Name: python3-module-%pypi_name
Version: 0.19.0
Release: alt2

Summary: asyncio bridge to the standard sqlite3 module
License: MIT
Group: Development/Python3
Url: https://pypi.org/project/aiosqlite
Vcs: https://github.com/omnilib/aiosqlite
BuildArch: noarch

Source0: %name-%version.tar
Source1: %pyproject_deps_config_name

%pyproject_runtimedeps_metadata
BuildRequires(pre): rpm-build-pyproject
%pyproject_builddeps_build
BuildRequires: python3-modules-sqlite3
%if_with check
%add_pyproject_deps_check_filter attribution
%pyproject_builddeps_metadata_extra dev
%endif

%description
aiosqlite provides a friendly, async interface to sqlite databases.

It replicates the standard sqlite3 module, but with async versions of all
the standard connection and cursor methods, plus context managers for
automatically closing connections and cursors. It can also be used in
the traditional, procedural manner. aiosqlite also replicates most of
the advanced features of sqlite3

%prep
%setup
%pyproject_deps_resync_build
%pyproject_deps_resync_metadata

%build
%pyproject_build

%install
%pyproject_install

# remove tests
rm -r %buildroot%python3_sitelibdir/%mod_name/tests

%check
%pyproject_run -- python3 -m %mod_name.tests

%files
%doc README.rst CHANGELOG.md
%python3_sitelibdir/%mod_name/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}

%changelog
* Mon May 15 2023 Stanislav Levin <slev@altlinux.org> 0.19.0-alt2
- Rebuilt with flit-core 3.9.0.

* Mon May 15 2023 Michael Shigorin <mike@altlinux.org> 0.19.0-alt1.1
- fix build --without check

* Sat May 06 2023 Anton Zhukharev <ancieg@altlinux.org> 0.19.0-alt1
- New version.

* Sat May 06 2023 Anton Zhukharev <ancieg@altlinux.org> 0.18.0-alt1
- New version.

* Thu Aug 11 2022 Anton Zhukharev <ancieg@altlinux.org> 0.17.0-alt1.gitde63727c
- initial build for Sisyphus