From 928827706fad13061e08ae5f00f9cf60adbbe447 Mon Sep 17 00:00:00 2001 From: Nikolay Novik Date: Thu, 16 Mar 2023 21:13:38 -0400 Subject: [PATCH] Add changes and bump version. --- CHANGES.txt | 8 ++++++++ README.rst | 2 ++ aioodbc/__init__.py | 6 +++++- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index f7bca0d..d5050f9 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,5 +1,13 @@ Changes ------- +0.4.0 (2023-03-16) +^^^^^^^^^^^^^^^^^^ +* Fixed compatibility with python 3.9+. +* Removed usage of explicit loop parameter. +* Added default read size parameter for cursor. +* Updated tests and CI scripts. +* Code base formatted with black. + 0.3.3 (2019-07-05) ^^^^^^^^^^^^^^^^^^ diff --git a/README.rst b/README.rst index 5932e48..d221332 100644 --- a/README.rst +++ b/README.rst @@ -7,6 +7,8 @@ aioodbc :target: https://codecov.io/gh/aio-libs/aioodbc .. image:: https://img.shields.io/pypi/v/aioodbc.svg :target: https://pypi.python.org/pypi/aioodbc +.. image:: https://img.shields.io/pypi/pyversions/aioodbc.svg + :target: https://pypi.org/project/aioodbc .. image:: https://badges.gitter.im/Join%20Chat.svg :target: https://gitter.im/aio-libs/Lobby :alt: Chat on Gitter diff --git a/aioodbc/__init__.py b/aioodbc/__init__.py index a958890..cfb700a 100644 --- a/aioodbc/__init__.py +++ b/aioodbc/__init__.py @@ -1,11 +1,12 @@ import asyncio +import warnings from pyodbc import dataSources as _dataSources from .connection import Connection, connect from .pool import Pool, create_pool -__version__ = "0.3.3" +__version__ = "0.4.0" __all__ = ["connect", "Connection", "create_pool", "Pool", "dataSources"] @@ -17,6 +18,9 @@ async def dataSources(loop=None, executor=None): default executor will be used :return dict: mapping of dsn to driver description """ + if loop is not None: + msg = "Explicit loop is deprecated, and has no effect." + warnings.warn(msg, DeprecationWarning, stacklevel=2) loop = asyncio.get_event_loop() sources = await loop.run_in_executor(executor, _dataSources) return sources