Skip to content

Commit d0bb093

Browse files
committed
add Deprecation warning to indicate change of module
1 parent c5c7498 commit d0bb093

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

vespa/package.py

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import warnings
12
import sys
23
import http.client
34
import json
@@ -1505,6 +1506,11 @@ def __init__(
15051506
:param container_memory: Docker container memory available to the application.
15061507
:param container: Used when instantiating VespaDocker from a running container.
15071508
"""
1509+
warnings.warn(
1510+
"VespaDocker will only be available on vespa.deployment module starting at version 0.9.0. Use vespa.deployment.VespaDocker instead.",
1511+
category=DeprecationWarning,
1512+
stacklevel=2,
1513+
)
15081514
self.container = container
15091515
container_id = None
15101516
container_name = None
@@ -1879,6 +1885,13 @@ def __init__(
18791885
key file is not available.
18801886
:param output_file: Output file to write output messages.
18811887
"""
1888+
1889+
warnings.warn(
1890+
"VespaCloud will only be available on vespa.deployment module starting at version 0.9.0. Use vespa.deployment.VespaCloud instead.",
1891+
category=DeprecationWarning,
1892+
stacklevel=2,
1893+
)
1894+
18821895
self.tenant = tenant
18831896
self.application = application
18841897
self.application_package = application_package

0 commit comments

Comments
 (0)