Skip to content

Commit d96fe59

Browse files
Merge pull request #228 from labthings/prepare-for-0.0.13
Preparing for v0.0.13 release
2 parents 8d4340e + 18e763a commit d96fe59

17 files changed

+21
-21
lines changed

src/labthings_fastapi/client/in_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def __init__(self, request: Request, **dependencies: Mapping[str, Any]) -> None:
7171
such as access to other `.Things`.
7272
"""
7373
warn(
74-
"`DirectThingClient` is deprecated and will be removed in v0.0.13. Use "
74+
"`DirectThingClient` is deprecated and will be removed in v0.1.0. Use "
7575
"`lt.thing_slot` instead.",
7676
DeprecationWarning,
7777
stacklevel=2,
@@ -282,7 +282,7 @@ def direct_thing_client_class(
282282
This class may be used as a FastAPI dependency: see :ref:`things_from_things`.
283283
"""
284284
warn(
285-
"`direct_thing_client_class` is deprecated and will be removed in v0.0.13. "
285+
"`direct_thing_client_class` is deprecated and will be removed in v0.1.0. "
286286
"Use `lt.thing_slot` instead.",
287287
DeprecationWarning,
288288
stacklevel=3, # This is called from `direct_thing_client_dependency` so we

src/labthings_fastapi/dependencies/blocking_portal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def blocking_portal_from_thing_server(request: Request) -> RealBlockingPortal:
4949
are only evaluated while the server is running.
5050
"""
5151
warn(
52-
"The blocking portal dependency is deprecated and will be removed in v0.0.13. "
52+
"The blocking portal dependency is deprecated and will be removed in v0.1.0. "
5353
"Use `Thing.thing_server_interface` instead.",
5454
DeprecationWarning,
5555
stacklevel=2,

src/labthings_fastapi/dependencies/invocation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def invocation_id(id: NonWarningInvocationID) -> uuid.UUID:
8585
:return: The same invocation ID.
8686
"""
8787
warn(
88-
"The invocation ID dependency is deprecated and will be removed in v0.0.13. "
88+
"The invocation ID dependency is deprecated and will be removed in v0.1.0. "
8989
"Use `Thing.invocation_id` instead.",
9090
DeprecationWarning,
9191
stacklevel=3,
@@ -117,7 +117,7 @@ def invocation_logger(id: NonWarningInvocationID) -> logging.Logger:
117117
"""
118118
warn(
119119
"The invocation logger dependency is deprecated and will be removed in "
120-
"v0.0.13. Use `Thing.logger` instead.",
120+
"v0.1.0. Use `Thing.logger` instead.",
121121
DeprecationWarning,
122122
stacklevel=3,
123123
)
@@ -143,7 +143,7 @@ def invocation_cancel_hook(id: NonWarningInvocationID) -> CancelHook:
143143
:return: a `.CancelHook` event.
144144
"""
145145
warn(
146-
"The cancel hook dependency is deprecated and will be removed in v0.0.13. "
146+
"The cancel hook dependency is deprecated and will be removed in v0.1.0. "
147147
"Use `lt.cancellable_sleep` or `lt.raise_if_cancelled` instead.",
148148
DeprecationWarning,
149149
stacklevel=3,

src/labthings_fastapi/dependencies/metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def thing_states_getter(request: Request) -> Callable[[], Mapping[str, Any]]:
5757
:return: a function that returns a dictionary of metadata.
5858
"""
5959
warn(
60-
"The `GetThingStates` dependency is deprecated and will be removed in v0.0.13. "
60+
"The `GetThingStates` dependency is deprecated and will be removed in v0.1.0. "
6161
"Use `Thing.thing_server_interface.get_thing_states` instead.",
6262
DeprecationWarning,
6363
stacklevel=2,

src/labthings_fastapi/dependencies/raw_thing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def find_raw_thing(request: Request) -> ThingInstance:
6767
dependency was created.
6868
"""
6969
warn(
70-
"`find_raw_thing` is deprecated and will be removed in v0.0.13. "
70+
"`find_raw_thing` is deprecated and will be removed in v0.1.0. "
7171
"Use `lt.thing_slot` instead.",
7272
DeprecationWarning,
7373
stacklevel=2,
@@ -120,7 +120,7 @@ def do_something(self, other_thing: MyOtherThing) -> None:
120120
instance of ``cls`` at runtime.
121121
"""
122122
warn(
123-
"`raw_thing_dependency` is deprecated and will be removed in v0.0.13. "
123+
"`raw_thing_dependency` is deprecated and will be removed in v0.1.0. "
124124
"Use `lt.thing_slot` instead.",
125125
DeprecationWarning,
126126
stacklevel=2,

src/labthings_fastapi/dependencies/thing_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def find_thing_server(app: FastAPI) -> ThingServer:
6161
"""
6262
warn(
6363
"`find_thing_server` and `thing_server_from_request` are deprecated "
64-
"and will be removed in v0.0.13. Use `Thing.thing_server_interface` "
64+
"and will be removed in v0.1.0. Use `Thing.thing_server_interface` "
6565
"instead.",
6666
DeprecationWarning,
6767
stacklevel=2,

src/labthings_fastapi/outputs/blob.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ class MyImageBlob(Blob):
593593
:raise ValueError: if the media type contains ``'`` or ``\``.
594594
"""
595595
warn(
596-
"`blob_type` is deprecated and will be removed in v0.0.13. "
596+
"`blob_type` is deprecated and will be removed in v0.1.0. "
597597
"Create a subclass of `Blob` instead.",
598598
DeprecationWarning,
599599
stacklevel=2,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Old-style dependency tests
22

3-
The test files in this folder use the old (pre-v0.0.12) dependency mechanism. This will be removed in v0.0.13, and these tests are preserved here to ensure they work until then. Test files of the same name exist in the parent module, but they have been migrated to use the newer syntax (i.e. not to use dependencies). As of v0.0.13, this folder will be deleted, and the duplication will go away.
3+
The test files in this folder use the old (pre-v0.0.12) dependency mechanism. This will be removed in v0.1.0, and these tests are preserved here to ensure they work until then. Test files of the same name exist in the parent module, but they have been migrated to use the newer syntax (i.e. not to use dependencies). As of v0.1.0, this folder will be deleted, and the duplication will go away.
44

55
It felt cleaner to duplicate the tests temporarily, rather than try to test two different forms of the syntax in the same file. This way, we keep the old syntax out of the test suite, preserving enough to check it's not broken until it moves from deprecated to gone.

tests/old_dependency_tests/test_action_cancel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
pytestmark = pytest.mark.filterwarnings(
14-
"ignore:.*removed in v0.0.13.*:DeprecationWarning"
14+
"ignore:.*removed in v0.1.0.*:DeprecationWarning"
1515
)
1616

1717

tests/old_dependency_tests/test_action_logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313

1414
pytestmark = pytest.mark.filterwarnings(
15-
"ignore:.*removed in v0.0.13.*:DeprecationWarning"
15+
"ignore:.*removed in v0.1.0.*:DeprecationWarning"
1616
)
1717

1818

0 commit comments

Comments
 (0)