From 88a8b118f4d820be58ce28a12b364829f6f4fb74 Mon Sep 17 00:00:00 2001 From: "tim.reichard" Date: Wed, 6 Jan 2021 13:40:12 -0600 Subject: [PATCH] Give decorator wrapper parent function name --- HISTORY.rst | 6 ++++++ aioradio/file_ingestion.py | 3 +++ aioradio/requirements.txt | 4 ++-- setup.py | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 3ef8a60..cff24e4 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -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) ----------------------- diff --git a/aioradio/file_ingestion.py b/aioradio/file_ingestion.py index 46e9ab0..035220a 100644 --- a/aioradio/file_ingestion.py +++ b/aioradio/file_ingestion.py @@ -5,6 +5,7 @@ # pylint: disable=too-many-boolean-expressions import asyncio +import functools import os import re import time @@ -35,6 +36,7 @@ def async_wrapper(func: coroutine) -> Any: Any: any """ + @functools.wraps(func) def wrapper(*args, **kwargs) -> Any: """Decorator wrapper. @@ -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. diff --git a/aioradio/requirements.txt b/aioradio/requirements.txt index ecf9af8..4aedbdd 100644 --- a/aioradio/requirements.txt +++ b/aioradio/requirements.txt @@ -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 diff --git a/setup.py b/setup.py index 6bc1089..be6595b 100644 --- a/setup.py +++ b/setup.py @@ -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",