yellowdog-python-examples 8.5.2__tar.gz → 8.5.3__tar.gz
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.
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/PKG-INFO +2 -2
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/README.md +1 -1
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/requirements.txt +1 -1
- yellowdog_python_examples-8.5.3/yellowdog_cli/__init__.py +1 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/rclone_utils.py +7 -8
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_python_examples.egg-info/PKG-INFO +2 -2
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_python_examples.egg-info/requires.txt +1 -1
- yellowdog_python_examples-8.5.2/yellowdog_cli/__init__.py +0 -1
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/LICENSE +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/PYPI_README.md +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/pyproject.toml +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/setup.cfg +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/tests/test_create_remove.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/tests/test_demos.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/tests/test_dryruns.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/tests/test_entrypoints.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/tests/test_gui.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/tests/test_list.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/tests/test_objects.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/tests/test_variable_processing.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/abort.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/admin.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/application.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/boost.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/cancel.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/cloudwizard.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/compare.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/create.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/delete.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/download.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/finish.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/follow.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/format_json.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/hold.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/instantiate.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/jsonnet2json.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/list.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/provision.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/remove.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/resize.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/show.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/shutdown.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/start.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/submit.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/terminate.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/upload.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/__init__.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/args.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/check_imports.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/cloudwizard_aws.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/cloudwizard_aws_types.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/cloudwizard_azure.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/cloudwizard_common.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/cloudwizard_gcp.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/compact_json.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/config_types.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/csv_data.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/entity_utils.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/follow_utils.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/interactive.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/items.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/load_config.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/load_resources.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/misc_utils.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/printing.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/property_names.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/provision_utils.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/rich_console_input_fixed.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/settings.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/start_hold_common.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/submit_utils.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/type_check.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/upload_utils.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/validate_properties.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/variables.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/wrapper.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/ydid_utils.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/version.py +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_python_examples.egg-info/SOURCES.txt +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_python_examples.egg-info/dependency_links.txt +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_python_examples.egg-info/entry_points.txt +0 -0
- {yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_python_examples.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: yellowdog-python-examples
|
|
3
|
-
Version: 8.5.
|
|
3
|
+
Version: 8.5.3
|
|
4
4
|
Summary: Python CLI commands using the YellowDog Python SDK
|
|
5
5
|
Author-email: YellowDog Limited <support@yellowdog.co>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -22,7 +22,7 @@ Requires-Dist: rclone-api
|
|
|
22
22
|
Requires-Dist: rich==13.9.4
|
|
23
23
|
Requires-Dist: tabulate>=0.9.0
|
|
24
24
|
Requires-Dist: tomli>=2.4.0
|
|
25
|
-
Requires-Dist: yellowdog-sdk>=13.
|
|
25
|
+
Requires-Dist: yellowdog-sdk>=13.3.0
|
|
26
26
|
Provides-Extra: jsonnet
|
|
27
27
|
Requires-Dist: jsonnet; extra == "jsonnet"
|
|
28
28
|
Provides-Extra: cloudwizard
|
|
@@ -1279,7 +1279,7 @@ JSON:
|
|
|
1279
1279
|
],
|
|
1280
1280
|
```
|
|
1281
1281
|
|
|
1282
|
-
The specified local file will be uploaded to the rclone target specified by the `source` property. The local file can be specified using an absolute or relative pathname
|
|
1282
|
+
The specified local file will be uploaded to the rclone target specified by the `source` property. The local file can be specified using an absolute or relative pathname, and the base files directory can be adjusted using the `--content-path <directory>`/`-F` option supplied to `yd-submit`.
|
|
1283
1283
|
|
|
1284
1284
|
If `yd-submit` fails for any reason, the uploaded objects will be deleted automatically.
|
|
1285
1285
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "8.5.3"
|
|
@@ -6,7 +6,7 @@ import re
|
|
|
6
6
|
from dataclasses import dataclass
|
|
7
7
|
from functools import cache
|
|
8
8
|
from os import chdir, getcwd
|
|
9
|
-
from os.path import exists
|
|
9
|
+
from os.path import abspath, exists
|
|
10
10
|
from pathlib import Path
|
|
11
11
|
|
|
12
12
|
from rclone_api import Config, Rclone
|
|
@@ -38,10 +38,10 @@ class RcloneUploadedFiles:
|
|
|
38
38
|
|
|
39
39
|
def __init__(
|
|
40
40
|
self,
|
|
41
|
-
files_directory: str = "",
|
|
41
|
+
files_directory: str = ".",
|
|
42
42
|
):
|
|
43
43
|
self._rcloned_files: list[RcloneUploadedFile] = []
|
|
44
|
-
self._files_directory = files_directory
|
|
44
|
+
self._files_directory = abspath(files_directory)
|
|
45
45
|
self._working_directory = getcwd()
|
|
46
46
|
self._reported_duplicates: list[RcloneUploadedFile] = []
|
|
47
47
|
|
|
@@ -64,12 +64,12 @@ class RcloneUploadedFiles:
|
|
|
64
64
|
Rclone a DataClient inputs file if it hasn't already been uploaded to
|
|
65
65
|
the same location.
|
|
66
66
|
"""
|
|
67
|
-
|
|
68
|
-
chdir(self._files_directory)
|
|
67
|
+
chdir(self._files_directory)
|
|
69
68
|
|
|
70
69
|
if not exists(local_file):
|
|
71
70
|
raise Exception(
|
|
72
|
-
f"File '{local_file}' does not exist
|
|
71
|
+
f"File '{Path(self._files_directory)/local_file}' does not exist "
|
|
72
|
+
"and cannot be uploaded"
|
|
73
73
|
)
|
|
74
74
|
|
|
75
75
|
rclone_uploaded_file = RcloneUploadedFile(local_file, rclone_source)
|
|
@@ -97,8 +97,7 @@ class RcloneUploadedFiles:
|
|
|
97
97
|
|
|
98
98
|
self._rcloned_files.append(rclone_uploaded_file)
|
|
99
99
|
|
|
100
|
-
|
|
101
|
-
chdir(self._working_directory)
|
|
100
|
+
chdir(self._working_directory)
|
|
102
101
|
|
|
103
102
|
def _upload_rclone_file_core(self, rclone_upload_file: RcloneUploadedFile):
|
|
104
103
|
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: yellowdog-python-examples
|
|
3
|
-
Version: 8.5.
|
|
3
|
+
Version: 8.5.3
|
|
4
4
|
Summary: Python CLI commands using the YellowDog Python SDK
|
|
5
5
|
Author-email: YellowDog Limited <support@yellowdog.co>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -22,7 +22,7 @@ Requires-Dist: rclone-api
|
|
|
22
22
|
Requires-Dist: rich==13.9.4
|
|
23
23
|
Requires-Dist: tabulate>=0.9.0
|
|
24
24
|
Requires-Dist: tomli>=2.4.0
|
|
25
|
-
Requires-Dist: yellowdog-sdk>=13.
|
|
25
|
+
Requires-Dist: yellowdog-sdk>=13.3.0
|
|
26
26
|
Provides-Extra: jsonnet
|
|
27
27
|
Requires-Dist: jsonnet; extra == "jsonnet"
|
|
28
28
|
Provides-Extra: cloudwizard
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "8.5.2"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/tests/test_create_remove.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/tests/test_entrypoints.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/application.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/cloudwizard.py
RENAMED
|
File without changes
|
{yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/compare.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/download.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/format_json.py
RENAMED
|
File without changes
|
|
File without changes
|
{yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/instantiate.py
RENAMED
|
File without changes
|
{yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/jsonnet2json.py
RENAMED
|
File without changes
|
|
File without changes
|
{yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/provision.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/shutdown.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/terminate.py
RENAMED
|
File without changes
|
|
File without changes
|
{yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/__init__.py
RENAMED
|
File without changes
|
{yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/args.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/csv_data.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/items.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/printing.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/settings.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/variables.py
RENAMED
|
File without changes
|
{yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/utils/wrapper.py
RENAMED
|
File without changes
|
|
File without changes
|
{yellowdog_python_examples-8.5.2 → yellowdog_python_examples-8.5.3}/yellowdog_cli/version.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|