Skip to content

Commit

Permalink
Add changes and bump version.
Browse files Browse the repository at this point in the history
  • Loading branch information
jettify committed Mar 17, 2023
1 parent ba3d6c5 commit 9288277
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
8 changes: 8 additions & 0 deletions 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)
^^^^^^^^^^^^^^^^^^
Expand Down
2 changes: 2 additions & 0 deletions README.rst
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion 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"]


Expand All @@ -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

0 comments on commit 9288277

Please sign in to comment.