Skip to content

Commit b88dee3

Browse files
authored
Merge pull request #36 from hubmapconsortium/release-please--branches--main--changes--next
release: 2.0.0-alpha.11
2 parents 9966db5 + 4018ed0 commit b88dee3

File tree

6 files changed

+40
-3
lines changed

6 files changed

+40
-3
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "2.0.0-alpha.10"
2+
".": "2.0.0-alpha.11"
33
}

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 2.0.0-alpha.11 (2025-05-10)
4+
5+
Full Changelog: [v2.0.0-alpha.10...v2.0.0-alpha.11](https://github.com/hubmapconsortium/entity-python-sdk/compare/v2.0.0-alpha.10...v2.0.0-alpha.11)
6+
7+
### Bug Fixes
8+
9+
* **package:** support direct resource imports ([5bae948](https://github.com/hubmapconsortium/entity-python-sdk/commit/5bae9484190c7559156a1d2dfa6c12cdae65b041))
10+
311
## 2.0.0-alpha.10 (2025-05-09)
412

513
Full Changelog: [v2.0.0-alpha.9...v2.0.0-alpha.10](https://github.com/hubmapconsortium/entity-python-sdk/compare/v2.0.0-alpha.9...v2.0.0-alpha.10)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "hubmap_entity_sdk"
3-
version = "2.0.0-alpha.10"
3+
version = "2.0.0-alpha.11"
44
description = "The official Python library for the hubmap-entity-sdk API"
55
dynamic = ["readme"]
66
license = "MIT"

src/hubmap_entity_sdk/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3+
import typing as _t
4+
35
from . import types
46
from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes
57
from ._utils import file_from_path
@@ -78,6 +80,9 @@
7880
"DefaultAsyncHttpxClient",
7981
]
8082

83+
if not _t.TYPE_CHECKING:
84+
from ._utils._resources_proxy import resources as resources
85+
8186
_setup_logging()
8287

8388
# Update the __module__ attribute for exported symbols so that
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
from __future__ import annotations
2+
3+
from typing import Any
4+
from typing_extensions import override
5+
6+
from ._proxy import LazyProxy
7+
8+
9+
class ResourcesProxy(LazyProxy[Any]):
10+
"""A proxy for the `hubmap_entity_sdk.resources` module.
11+
12+
This is used so that we can lazily import `hubmap_entity_sdk.resources` only when
13+
needed *and* so that users can just import `hubmap_entity_sdk` and reference `hubmap_entity_sdk.resources`
14+
"""
15+
16+
@override
17+
def __load__(self) -> Any:
18+
import importlib
19+
20+
mod = importlib.import_module("hubmap_entity_sdk.resources")
21+
return mod
22+
23+
24+
resources = ResourcesProxy().__as_proxied__()

src/hubmap_entity_sdk/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "hubmap_entity_sdk"
4-
__version__ = "2.0.0-alpha.10" # x-release-please-version
4+
__version__ = "2.0.0-alpha.11" # x-release-please-version

0 commit comments

Comments
 (0)