Skip to content

Commit 853a028

Browse files
update version, docs and remove a deprecated to_lower_camel call
1 parent c194e2b commit 853a028

6 files changed

Lines changed: 4 additions & 8 deletions

File tree

docs/source/datasources.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/source/external.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/source/insertion_tutorial.rst

Whitespace-only changes.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "oshconnect"
3-
version = "0.4.0a0"
3+
version = "0.4.0a1"
44
description = "Library for interfacing with OSH, helping guide visualization efforts, and providing a place to store configurations. Implements OGC CS API Part 3 (Pub/Sub) MQTT topic conventions including :data topics and resource event topics."
55
readme = "README.md"
66
authors = [

src/oshconnect/streamableresource.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from uuid import UUID, uuid4
2424
from collections import deque
2525

26-
from pydantic.v1.utils import to_lower_camel
26+
from pydantic.alias_generators import to_camel
2727

2828
from .csapi4py.constants import ContentTypes
2929
from .events import EventHandler, DefaultEventTypes
@@ -200,7 +200,7 @@ def discover_systems(self):
200200
print(system_json)
201201
system = SystemResource.model_validate(system_json, by_alias=True)
202202
sys_obj = System(label=system.properties['name'],
203-
name=to_lower_camel(system.properties['name'].replace(" ", "_")),
203+
name=to_camel(system.properties['name'].replace(" ", "_")),
204204
urn=system.properties['uid'], parent_node=self, resource_id=system.system_id)
205205

206206
self._systems.append(sys_obj)

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)