Skip to content

Commit

Permalink
Give decorator wrapper parent function name
Browse files Browse the repository at this point in the history
  • Loading branch information
tim.reichard committed Jan 6, 2021
1 parent 2cf902c commit 88a8b11
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
6 changes: 6 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ History
=======


v0.9.7 (2021-01-06)
-----------------------

* Give async_wrapper decorator wrapper parent function name.


v0.9.6 (2020-12-22)
-----------------------

Expand Down
3 changes: 3 additions & 0 deletions aioradio/file_ingestion.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# pylint: disable=too-many-boolean-expressions

import asyncio
import functools
import os
import re
import time
Expand Down Expand Up @@ -35,6 +36,7 @@ def async_wrapper(func: coroutine) -> Any:
Any: any
"""

@functools.wraps(func)
def wrapper(*args, **kwargs) -> Any:
"""Decorator wrapper.
Expand All @@ -59,6 +61,7 @@ def async_wrapper_using_new_loop(func: coroutine) -> Any:
Any: any
"""

@functools.wraps(func)
def wrapper(*args, **kwargs) -> Any:
"""Decorator wrapper.
Expand Down
4 changes: 2 additions & 2 deletions aioradio/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ pre-commit==2.9.3
pylint==2.6.0
pyodbc==4.0.30
pysmb==1.2.6
pytest==6.2.0
pytest==6.2.1
pytest-asyncio==0.14.0
pytest-cov==2.10.1
python-json-logger==2.0.1
twine==3.2.0
twine==3.3.0
wheel==0.36.2
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
long_description = fileobj.read()

setup(name='aioradio',
version='0.9.6',
version='0.9.7',
description='Generic asynchronous i/o python utilities for AWS services (SQS, S3, DynamoDB, Secrets Manager), Redis, MSSQL (pyodbc), JIRA and more',
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 88a8b11

Please sign in to comment.