forked from pool/python-aiosqlite
Accepting request 893040 from devel:languages:python
- Update to 0.17.0:
- Connection objects now raise ValueError when closed and a
command is executed (#79)
- Fix documented examples in readme (#104)
- Reduce logging severity for exceptions (#93)
- Stop logging result objects; they can be big (#102)
- Add stdlib-typing_extensions.patch to avoid necessity for BR
python-typing_extensions (gh#omnilib/aiosqlite#114).
OBS-URL: https://build.opensuse.org/request/show/893040
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aiosqlite?expand=0&rev=2
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d014ef07fbc523b2d195fc17cf35982285e3220eb73c1068d5df37b569950ea8
|
||||
size 25690
|
||||
BIN
aiosqlite-0.17.0.tar.gz
LFS
Normal file
BIN
aiosqlite-0.17.0.tar.gz
LFS
Normal file
Binary file not shown.
@@ -1,3 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri May 14 07:10:11 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Update to 0.17.0:
|
||||
- Connection objects now raise ValueError when closed and a
|
||||
command is executed (#79)
|
||||
- Fix documented examples in readme (#104)
|
||||
- Reduce logging severity for exceptions (#93)
|
||||
- Stop logging result objects; they can be big (#102)
|
||||
- Add stdlib-typing_extensions.patch to avoid necessity for BR
|
||||
python-typing_extensions (gh#omnilib/aiosqlite#114).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 28 04:23:48 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-aiosqlite
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2019 Matthias Fehring <buschmann23@opensuse.org>
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@@ -20,22 +20,23 @@
|
||||
%{?!python_module:%define python_module() python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-aiosqlite
|
||||
Version: 0.16.0
|
||||
Version: 0.17.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
|
||||
# PATCH-FIX-UPSTREAM stdlib-typing_extensions.patch gh#omnilib/aiosqlite#114 mcepl@suse.com
|
||||
# Dependency on typing_extensions is unnecessary
|
||||
Patch0: stdlib-typing_extensions.patch
|
||||
BuildRequires: %{python_module setuptools >= 38.6.0}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python
|
||||
Requires: python-typing_extensions
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module aiounittest}
|
||||
BuildRequires: %{python_module typing_extensions}
|
||||
BuildRequires: %{pythons}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
@@ -46,7 +47,7 @@ the standard connection and cursor methods, and context managers for
|
||||
automatically closing connections.
|
||||
|
||||
%prep
|
||||
%setup -q -n aiosqlite-%{version}
|
||||
%autosetup -p1 -n aiosqlite-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
42
stdlib-typing_extensions.patch
Normal file
42
stdlib-typing_extensions.patch
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
aiosqlite/context.py | 5 ++---
|
||||
pyproject.toml | 2 +-
|
||||
setup.py | 2 +-
|
||||
3 files changed, 4 insertions(+), 5 deletions(-)
|
||||
|
||||
--- a/aiosqlite/context.py
|
||||
+++ b/aiosqlite/context.py
|
||||
@@ -3,9 +3,8 @@
|
||||
|
||||
|
||||
from functools import wraps
|
||||
-from typing import Any, Callable, Coroutine, Generator, TypeVar
|
||||
-
|
||||
-from typing_extensions import AsyncContextManager
|
||||
+from typing import (Any, Callable, Coroutine, Generator, TypeVar,
|
||||
+ AsyncContextManager)
|
||||
|
||||
from .cursor import Cursor
|
||||
|
||||
--- a/pyproject.toml
|
||||
+++ b/pyproject.toml
|
||||
@@ -8,7 +8,7 @@ author = "John Reese"
|
||||
author-email = "john@noswap.com"
|
||||
description-file = "README.rst"
|
||||
home-page = "https://aiosqlite.omnilib.dev"
|
||||
-requires = ["typing_extensions>=3.7.2"]
|
||||
+requires = []
|
||||
requires-python = ">=3.6"
|
||||
classifiers = [
|
||||
"Development Status :: 5 - Production/Stable",
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -10,7 +10,7 @@ package_data = \
|
||||
{'': ['*']}
|
||||
|
||||
install_requires = \
|
||||
-['typing_extensions>=3.7.2']
|
||||
+[]
|
||||
|
||||
setup(name='aiosqlite',
|
||||
version='0.17.0',
|
||||
Reference in New Issue
Block a user