File tree 4 files changed +8
-14
lines changed
4 files changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ tag = False
9
9
10
10
[bumpversion:file:src/client/delphi_epidata.R]
11
11
12
+ [bumpversion:file:src/client/delphi_epidata.py]
13
+
12
14
[bumpversion:file:src/client/packaging/npm/package.json]
13
15
14
16
[bumpversion:file:src/client/packaging/pypi/setup.py]
15
17
16
- [bumpversion:file:src/client/packaging/pypi/delphi_epidata/__init__.py]
17
-
18
18
[bumpversion:file:dev/local/setup.cfg]
Original file line number Diff line number Diff line change 15
15
from tenacity import retry , stop_after_attempt
16
16
17
17
from aiohttp import ClientSession , TCPConnector , BasicAuth
18
- from importlib .metadata import version , PackageNotFoundError
19
18
20
19
from delphi .epidata .common .logger import get_structured_logger
21
20
22
- # Obtain package version for the user-agent. Uses the installed version by
23
- # preference, even if you've installed it and then use this script independently
24
- # by accident.
25
- try :
26
- _version = version ("delphi-epidata" )
27
- except PackageNotFoundError :
28
- _version = "0.script"
21
+ __version__ = "4.1.20"
29
22
30
- _HEADERS = {"user-agent" : "delphi_epidata/" + _version + " (Python)" }
23
+ _HEADERS = {"user-agent" : "delphi_epidata/" + __version__ + " (Python)" }
31
24
32
25
33
26
class EpidataException (Exception ):
@@ -50,7 +43,7 @@ class Epidata:
50
43
BASE_URL = "https://api.delphi.cmu.edu/epidata"
51
44
auth = None
52
45
53
- client_version = _version
46
+ client_version = __version__
54
47
55
48
logger = get_structured_logger ('delphi_epidata_client' )
56
49
debug = False # if True, prints extra logging statements
Original file line number Diff line number Diff line change @@ -7,11 +7,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
7
7
8
8
### Includes
9
9
- https://github.com/cmu-delphi/delphi-epidata/pull/1418
10
+ - https://github.com/cmu-delphi/delphi-epidata/pull/1436
10
11
11
12
### Added
12
13
- Adds two debug flags:
13
14
- ` debug ` logs info about HTTP requests and responses
14
15
- ` sandbox ` prevents any HTTP requests from actually executing, allowing for tests that do not incur server load.
16
+ - Fixes the ` user-agent ` version so that it is correctly set to match the current client release.
15
17
16
18
## [ 4.1.17] - 2024-01-30
17
19
Original file line number Diff line number Diff line change 1
- from .delphi_epidata import Epidata
1
+ from .delphi_epidata import Epidata , __version__
2
2
3
3
name = "delphi_epidata"
4
- __version__ = "4.1.20"
You can’t perform that action at this time.
0 commit comments