Skip to content

Commit 3673ac9

Browse files
fix: Python client logger import (#1460)
* fix: Python client logger import * add delphi-utils as dependency to Python client * import logger from delphi-utils instead of locally * unpin delphi-utils in both requirements files * update CHANGELOG --------- Co-authored-by: george haff <[email protected]>
1 parent 058489f commit 3673ac9

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

requirements.api.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
delphi_utils==0.3.15
1+
delphi_utils
22
epiweeks==2.1.2
33
Flask==2.2.5
44
Flask-Limiter==3.3.0

requirements.dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ aiohttp==3.9.4
22
black>=20.8b1
33
bump2version==1.0.1
44
covidcast==0.1.5
5-
delphi_utils==0.3.15
5+
delphi_utils
66
docker==6.0.1
77
dropbox==11.36.0
88
freezegun==1.2.2

src/client/delphi_epidata.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
from aiohttp import ClientSession, TCPConnector, BasicAuth
1818

19-
from delphi.epidata.common.logger import get_structured_logger
19+
from delphi_utils.logger import get_structured_logger
2020

2121
__version__ = "4.1.22"
2222

src/client/packaging/pypi/CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
All notable future changes to the `delphi_epidata` python client will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/).
55

6+
## [4.2.23] - 2024-05-31
7+
8+
### Includes
9+
- https://github.com/cmu-delphi/delphi-epidata/pull/1460
10+
11+
### Fixed
12+
- Replaced bad internal logger package import with one from `delphi_utils` package instead.
13+
- This bug affected releases 4.1.21 and 4.1.22
14+
615
## [4.1.21] - 2024-05-20
716

817
### Includes

src/client/packaging/pypi/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"Changelog": "https://github.com/cmu-delphi/delphi-epidata/blob/main/src/client/packaging/pypi/CHANGELOG.md",
1717
},
1818
packages=setuptools.find_packages(),
19-
install_requires=["aiohttp", "requests>=2.7.0", "tenacity"],
19+
install_requires=["aiohttp", "delphi-utils", "requests>=2.7.0", "tenacity"],
2020
classifiers=[
2121
"Programming Language :: Python",
2222
"License :: OSI Approved :: MIT License",

0 commit comments

Comments
 (0)