Skip to content

Commit 9288277

Browse files
committed
Add changes and bump version.
1 parent ba3d6c5 commit 9288277

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

CHANGES.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
Changes
22
-------
3+
0.4.0 (2023-03-16)
4+
^^^^^^^^^^^^^^^^^^
5+
* Fixed compatibility with python 3.9+.
6+
* Removed usage of explicit loop parameter.
7+
* Added default read size parameter for cursor.
8+
* Updated tests and CI scripts.
9+
* Code base formatted with black.
10+
311

412
0.3.3 (2019-07-05)
513
^^^^^^^^^^^^^^^^^^

README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ aioodbc
77
:target: https://codecov.io/gh/aio-libs/aioodbc
88
.. image:: https://img.shields.io/pypi/v/aioodbc.svg
99
:target: https://pypi.python.org/pypi/aioodbc
10+
.. image:: https://img.shields.io/pypi/pyversions/aioodbc.svg
11+
:target: https://pypi.org/project/aioodbc
1012
.. image:: https://badges.gitter.im/Join%20Chat.svg
1113
:target: https://gitter.im/aio-libs/Lobby
1214
:alt: Chat on Gitter

aioodbc/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import asyncio
2+
import warnings
23

34
from pyodbc import dataSources as _dataSources
45

56
from .connection import Connection, connect
67
from .pool import Pool, create_pool
78

8-
__version__ = "0.3.3"
9+
__version__ = "0.4.0"
910
__all__ = ["connect", "Connection", "create_pool", "Pool", "dataSources"]
1011

1112

@@ -17,6 +18,9 @@ async def dataSources(loop=None, executor=None):
1718
default executor will be used
1819
:return dict: mapping of dsn to driver description
1920
"""
21+
if loop is not None:
22+
msg = "Explicit loop is deprecated, and has no effect."
23+
warnings.warn(msg, DeprecationWarning, stacklevel=2)
2024
loop = asyncio.get_event_loop()
2125
sources = await loop.run_in_executor(executor, _dataSources)
2226
return sources

0 commit comments

Comments
 (0)