14
0
Files
python-aiosqlite/python-aiosqlite.spec
Dirk Mueller 2f879346ef Accepting request 1092412 from home:bnavigator:branches:devel:languages:python:jupyter
- Update to 0.19.0
  * Add support for setting cursor `row_factory` (#229)
  * Dropped unused compatibility shims for 3.5 and 3.6
  * Deprecated: Python 3.7 support will be dropped in v0.20.0
- Release 0.18.0
  * Added support for `paramstyle` (#197)
  * Better type hints for `isolation_level` (#172) and
    `text_factory` (#179)
  * Use stdlib typing module when possible (#114)
  * Replace aiounittest with stdlib on 3.8+
  * Docmentation improvements (#108)
  * Dropped support for Python 3.7, added support for Python 3.10
    and 3.11 (#208)
- Drop stdlib-typing_extensions.patch
  * the upstream issue was accepted and the module was removed
    but later introduced for Python < 3.8 due to a different case

OBS-URL: https://build.opensuse.org/request/show/1092412
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiosqlite?expand=0&rev=5
2023-06-12 08:20:50 +00:00

69 lines
2.1 KiB
RPMSpec

#
# spec file for package python-aiosqlite
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2019 Matthias Fehring <buschmann23@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-aiosqlite
Version: 0.19.0
Release: 0
Summary: AsyncIO Bridge to the Standard Python sqlite3 Module
License: MIT
Group: Development/Languages/Python
URL: https://github.com/jreese/aiosqlite
Source: https://files.pythonhosted.org/packages/source/a/aiosqlite/aiosqlite-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module flit-core}
BuildRequires: %{python_module pip}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python
%if 0%{?python_version_nodots} < 38
Requires: python-typing-extensions >= 4
%endif
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module typing-extensions >= 4 if %python-base < 3.8}
BuildRequires: %{pythons}
# /SECTION
%python_subpackages
%description
aiosqlite replicates the standard sqlite3 module, but with async versions of all
the standard connection and cursor methods, and context managers for
automatically closing connections.
%prep
%autosetup -p1 -n aiosqlite-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pyunittest -v
%files %{python_files}
%license LICENSE
%doc CHANGELOG.md README.rst
%{python_sitelib}/aiosqlite
%{python_sitelib}/aiosqlite-%{version}.dist-info
%changelog