Skip to content

Commit

Permalink
Update deprecated epidata packages
Browse files Browse the repository at this point in the history
  • Loading branch information
rzats committed Jan 3, 2024
1 parent 81b9ac0 commit 6d4ec35
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion requirements.api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Flask==2.2.5
Flask-Limiter==3.3.0
jinja2==3.0.3
more_itertools==8.4.0
mysqlclient==2.1.1
mysqlclient==2.2.1
orjson==3.4.7
pandas==1.2.3
python-dotenv==0.15.0
Expand Down
4 changes: 2 additions & 2 deletions requirements.dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ invoke>=1.4.1
lxml==4.9.1
matplotlib==3.6.2
mypy>=0.790
mysql-connector==2.2.9
mysql-connector-python==8.2.0
numpy==1.22.4
pycountry==22.3.5
pymysql==1.0.2
pymysql==1.1.0
pytest==7.2.0
pytest-check==1.3.0
sas7bdat==2.2.3
Expand Down
6 changes: 3 additions & 3 deletions src/client/delphi_epidata.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
from tenacity import retry, stop_after_attempt

from aiohttp import ClientSession, TCPConnector, BasicAuth
from pkg_resources import get_distribution, DistributionNotFound
from importlib.metadata import version, PackageNotFoundError

# Obtain package version for the user-agent. Uses the installed version by
# preference, even if you've installed it and then use this script independently
# by accident.
try:
_version = get_distribution("delphi-epidata").version
except DistributionNotFound:
_version = version("delphi-epidata")
except PackageNotFoundError:
_version = "0.script"

_HEADERS = {"user-agent": "delphi_epidata/" + _version + " (Python)"}
Expand Down

0 comments on commit 6d4ec35

Please sign in to comment.