Skip to content

Commit cb1abc9

Browse files
authored
Minor Bump To Fix Logging (#95)
1 parent 75c992a commit cb1abc9

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

btrdb/conn.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,15 @@ def __init__(self, apikey, client_call_details):
132132
if client_call_details.metadata is not None:
133133
metadata = list(client_call_details.metadata)
134134
metadata.append(("authorization", "Bearer " + apikey))
135+
version = "unknown"
136+
try:
137+
version = importlib.metadata.version("btrdb")
138+
except:
139+
pass
135140
metadata.append(
136141
(
137142
"x-api-client",
138-
"btrdbpy-" + importlib.metadata.version("btrdb"),
143+
"btrdbpy-" + version,
139144
)
140145
)
141146
self.method = client_call_details.method

btrdb/version.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
## Module Info
1616
##########################################################################
1717

18-
__version_info__ = {"major": 5, "minor": 34, "micro": 0, "releaselevel": "final"}
18+
19+
__version_info__ = {"major": 5, "minor": 34, "micro": 1, "releaselevel": "final"}
20+
1921

2022
##########################################################################
2123
## Helper Functions

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "btrdb"
3-
version = "5.34.0"
3+
version = "5.34.1"
44
authors = [
55
{name="PingThingsIO", email="support@pingthings.io"},
66
]
@@ -24,6 +24,8 @@ classifiers = [
2424
'Programming Language :: Python :: 3.8',
2525
'Programming Language :: Python :: 3.9',
2626
'Programming Language :: Python :: 3.10',
27+
'Programming Language :: Python :: 3.11',
28+
'Programming Language :: Python :: 3.12',
2729
'Topic :: Database',
2830
'Topic :: Software Development :: Libraries :: Python Modules',
2931
]

0 commit comments

Comments
 (0)