dt-extensions-sdk 1.1.5__py3-none-any.whl → 1.1.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dt_extensions_sdk-1.1.5.dist-info → dt_extensions_sdk-1.1.7.dist-info}/METADATA +1 -1
- {dt_extensions_sdk-1.1.5.dist-info → dt_extensions_sdk-1.1.7.dist-info}/RECORD +7 -7
- dynatrace_extension/__about__.py +1 -1
- dynatrace_extension/cli/main.py +6 -3
- {dt_extensions_sdk-1.1.5.dist-info → dt_extensions_sdk-1.1.7.dist-info}/WHEEL +0 -0
- {dt_extensions_sdk-1.1.5.dist-info → dt_extensions_sdk-1.1.7.dist-info}/entry_points.txt +0 -0
- {dt_extensions_sdk-1.1.5.dist-info → dt_extensions_sdk-1.1.7.dist-info}/licenses/LICENSE.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: dt-extensions-sdk
|
3
|
-
Version: 1.1.
|
3
|
+
Version: 1.1.7
|
4
4
|
Project-URL: Documentation, https://github.com/dynatrace-extensions/dt-extensions-python-sdk#readme
|
5
5
|
Project-URL: Issues, https://github.com/dynatrace-extensions/dt-extensions-python-sdk/issues
|
6
6
|
Project-URL: Source, https://github.com/dynatrace-extensions/dt-extensions-python-sdk
|
@@ -1,7 +1,7 @@
|
|
1
|
-
dynatrace_extension/__about__.py,sha256=
|
1
|
+
dynatrace_extension/__about__.py,sha256=VBKHua6arVUqC3Y_XtiYN45BWPreV_mbmmN1Bq42_VQ,112
|
2
2
|
dynatrace_extension/__init__.py,sha256=XYHyWducrLWengm6jcCZMYAHzaQwQfoJKzKT4QvhTxE,779
|
3
3
|
dynatrace_extension/cli/__init__.py,sha256=eg2YQkeboIfJ_hcUGp1WFEvT-moa2qGGN-L9RjTbxCM,128
|
4
|
-
dynatrace_extension/cli/main.py,sha256=
|
4
|
+
dynatrace_extension/cli/main.py,sha256=x0IUINQH8d-8YSEPyO9zdNgMDo-qJYt0MgO16Ibxzzg,16525
|
5
5
|
dynatrace_extension/cli/schema.py,sha256=Fiks7vS69M52O3_pvdzkKk2X0zBhE8maforvRY9eUIU,3359
|
6
6
|
dynatrace_extension/cli/create/__init__.py,sha256=_MjYuWPJo7_NbGRqjWZ9DNzkfevz_Br2Yc90__f22yY,73
|
7
7
|
dynatrace_extension/cli/create/create.py,sha256=Wkkp4AuRID18k9EUJdVZ3GP2US35OF5h6jooKJY2CLM,2784
|
@@ -26,8 +26,8 @@ dynatrace_extension/sdk/vendor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
|
|
26
26
|
dynatrace_extension/sdk/vendor/mureq/LICENSE,sha256=_rKBhB1pJYXjxjBCdOSIkv_slxWbhEXVBXXZs1MdpQQ,684
|
27
27
|
dynatrace_extension/sdk/vendor/mureq/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
28
28
|
dynatrace_extension/sdk/vendor/mureq/mureq.py,sha256=gKzGiPmZ2g74Nb8K_6bu0f2coWZHZiZ2aXGzG2Pimlg,15102
|
29
|
-
dt_extensions_sdk-1.1.
|
30
|
-
dt_extensions_sdk-1.1.
|
31
|
-
dt_extensions_sdk-1.1.
|
32
|
-
dt_extensions_sdk-1.1.
|
33
|
-
dt_extensions_sdk-1.1.
|
29
|
+
dt_extensions_sdk-1.1.7.dist-info/METADATA,sha256=sUYVLisO_ICY8VFe91nCSbsOcgIqAZBrTwn76xE4tRU,2793
|
30
|
+
dt_extensions_sdk-1.1.7.dist-info/WHEEL,sha256=9QBuHhg6FNW7lppboF2vKVbCGTVzsFykgRQjjlajrhA,87
|
31
|
+
dt_extensions_sdk-1.1.7.dist-info/entry_points.txt,sha256=pweyOCgENGHjOlT6_kXYaBPOrE3p18K0UettqnNlnoE,55
|
32
|
+
dt_extensions_sdk-1.1.7.dist-info/licenses/LICENSE.txt,sha256=k7kok_OTpJ5sfb5ANni8wu-Q1lXw8OQjNZXdrTGhFKc,1087
|
33
|
+
dt_extensions_sdk-1.1.7.dist-info/RECORD,,
|
dynatrace_extension/__about__.py
CHANGED
dynatrace_extension/cli/main.py
CHANGED
@@ -13,7 +13,7 @@ from ..__about__ import __version__
|
|
13
13
|
from .create import generate_extension, is_pep8_compliant
|
14
14
|
from .schema import ExtensionYaml
|
15
15
|
|
16
|
-
app = typer.Typer()
|
16
|
+
app = typer.Typer(pretty_exceptions_show_locals=False, pretty_exceptions_enable=False)
|
17
17
|
console = Console()
|
18
18
|
|
19
19
|
CERT_DIR_ENVIRONMENT_VAR = "DT_CERTIFICATES_FOLDER"
|
@@ -267,6 +267,7 @@ def upload(
|
|
267
267
|
extension_path: Path = typer.Argument(None, help="Path to the extension folder or built zip file"),
|
268
268
|
tenant_url: str = typer.Option(None, "--tenant-url", "-u", help="Dynatrace tenant URL"),
|
269
269
|
api_token: str = typer.Option(None, "--api-token", "-t", help="Dynatrace API token"),
|
270
|
+
validate: bool = typer.Option(None, "--validate", "-v", help="Validate only"),
|
270
271
|
):
|
271
272
|
"""
|
272
273
|
Uploads the extension to a Dynatrace environment
|
@@ -274,7 +275,9 @@ def upload(
|
|
274
275
|
:param extension_path: The path to the extension folder or built zip file
|
275
276
|
:param tenant_url: The Dynatrace tenant URL
|
276
277
|
:param api_token: The Dynatrace API token
|
278
|
+
:param validate: If true, only validate the extension and exit
|
277
279
|
"""
|
280
|
+
action = "upload" if not validate else "validate"
|
278
281
|
zip_file_path = extension_path
|
279
282
|
if extension_path is None:
|
280
283
|
extension_path = Path(".")
|
@@ -296,8 +299,8 @@ def upload(
|
|
296
299
|
console.print("Set the --api-token parameter or the DT_API_TOKEN environment variable", style="bold red")
|
297
300
|
sys.exit(1)
|
298
301
|
|
299
|
-
command = ["dt", "ext",
|
300
|
-
run_process(command, print_message=f"
|
302
|
+
command = ["dt", "ext", action, "--tenant-url", api_url, "--api-token", api_token, f"{zip_file_path}"]
|
303
|
+
run_process(command, print_message=f"{action} extension {zip_file_path} to {api_url}")
|
301
304
|
console.print(f"Extension {zip_file_path} uploaded to {api_url}", style="bold green")
|
302
305
|
|
303
306
|
|
File without changes
|
File without changes
|
{dt_extensions_sdk-1.1.5.dist-info → dt_extensions_sdk-1.1.7.dist-info}/licenses/LICENSE.txt
RENAMED
File without changes
|