coiled 1.93.2__tar.gz → 1.93.3.dev2__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.
- coiled-1.93.3.dev2/LICENSE +93 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/PKG-INFO +2 -1
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/types.py +40 -4
- {coiled-1.93.2 → coiled-1.93.3.dev2}/pyproject.toml +1 -0
- coiled-1.93.2/LICENSE +0 -1
- {coiled-1.93.2 → coiled-1.93.3.dev2}/.gitignore +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/README.md +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/__init__.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/__main__.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/analytics.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/auth.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/batch.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/capture_environment.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/__init__.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/batch/__init__.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/batch/list.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/batch/run.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/batch/status.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/batch/wait.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/cluster/__init__.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/cluster/azure_logs.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/cluster/better_logs.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/cluster/crud.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/cluster/get_address.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/cluster/list.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/cluster/logs.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/cluster/metrics.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/cluster/ssh.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/cluster/utils.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/config.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/core.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/curl.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/diagnostics.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/env.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/hello/__init__.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/hello/examples/__init__.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/hello/examples/exit.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/hello/examples/hello_world.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/hello/examples/nyc_parquet.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/hello/examples/pytorch.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/hello/examples/xarray_nwm.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/hello/hello.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/hello/scripts/fill_ipython.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/hello/scripts/nyc_parquet.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/hello/scripts/pytorch.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/hello/scripts/xarray_nwm.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/hello/utils.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/login.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/notebook/__init__.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/notebook/notebook.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/package_sync.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/prefect.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/prefect_serve.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/run.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/setup/__init__.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/setup/amp.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/setup/aws.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/setup/azure.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/setup/entry.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/setup/gcp.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/setup/prometheus.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/setup/util.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/sync.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cli/utils.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/cluster.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/coiled.yaml +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/compatibility.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/config.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/context.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/core.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/credentials/__init__.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/credentials/aws.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/credentials/google.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/errors.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/exceptions.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/extensions/__init__.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/extensions/prefect/__init__.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/extensions/prefect/runners.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/extensions/prefect/workers.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/function.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/plugins.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/prefect.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/pypi_conda_map.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/scan.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/software.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/software_utils.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/spans.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/spark.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/utils.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/v2/__init__.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/v2/cluster.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/v2/core.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/v2/cwi_log_link.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/v2/states.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/v2/widgets/__init__.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/v2/widgets/interface.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/v2/widgets/rich.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/v2/widgets/util.py +0 -0
- {coiled-1.93.2 → coiled-1.93.3.dev2}/coiled/websockets.py +0 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Elastic License 2.0
|
|
2
|
+
|
|
3
|
+
URL: https://www.elastic.co/licensing/elastic-license
|
|
4
|
+
|
|
5
|
+
## Acceptance
|
|
6
|
+
|
|
7
|
+
By using the software, you agree to all of the terms and conditions below.
|
|
8
|
+
|
|
9
|
+
## Copyright License
|
|
10
|
+
|
|
11
|
+
The licensor grants you a non-exclusive, royalty-free, worldwide,
|
|
12
|
+
non-sublicensable, non-transferable license to use, copy, distribute, make
|
|
13
|
+
available, and prepare derivative works of the software, in each case subject to
|
|
14
|
+
the limitations and conditions below.
|
|
15
|
+
|
|
16
|
+
## Limitations
|
|
17
|
+
|
|
18
|
+
You may not provide the software to third parties as a hosted or managed
|
|
19
|
+
service, where the service provides users with access to any substantial set of
|
|
20
|
+
the features or functionality of the software.
|
|
21
|
+
|
|
22
|
+
You may not move, change, disable, or circumvent the license key functionality
|
|
23
|
+
in the software, and you may not remove or obscure any functionality in the
|
|
24
|
+
software that is protected by the license key.
|
|
25
|
+
|
|
26
|
+
You may not alter, remove, or obscure any licensing, copyright, or other notices
|
|
27
|
+
of the licensor in the software. Any use of the licensor’s trademarks is subject
|
|
28
|
+
to applicable law.
|
|
29
|
+
|
|
30
|
+
## Patents
|
|
31
|
+
|
|
32
|
+
The licensor grants you a license, under any patent claims the licensor can
|
|
33
|
+
license, or becomes able to license, to make, have made, use, sell, offer for
|
|
34
|
+
sale, import and have imported the software, in each case subject to the
|
|
35
|
+
limitations and conditions in this license. This license does not cover any
|
|
36
|
+
patent claims that you cause to be infringed by modifications or additions to
|
|
37
|
+
the software. If you or your company make any written claim that the software
|
|
38
|
+
infringes or contributes to infringement of any patent, your patent license for
|
|
39
|
+
the software granted under these terms ends immediately. If your company makes
|
|
40
|
+
such a claim, your patent license ends immediately for work on behalf of your
|
|
41
|
+
company.
|
|
42
|
+
|
|
43
|
+
## Notices
|
|
44
|
+
|
|
45
|
+
You must ensure that anyone who gets a copy of any part of the software from you
|
|
46
|
+
also gets a copy of these terms.
|
|
47
|
+
|
|
48
|
+
If you modify the software, you must include in any modified copies of the
|
|
49
|
+
software prominent notices stating that you have modified the software.
|
|
50
|
+
|
|
51
|
+
## No Other Rights
|
|
52
|
+
|
|
53
|
+
These terms do not imply any licenses other than those expressly granted in
|
|
54
|
+
these terms.
|
|
55
|
+
|
|
56
|
+
## Termination
|
|
57
|
+
|
|
58
|
+
If you use the software in violation of these terms, such use is not licensed,
|
|
59
|
+
and your licenses will automatically terminate. If the licensor provides you
|
|
60
|
+
with a notice of your violation, and you cease all violation of this license no
|
|
61
|
+
later than 30 days after you receive that notice, your licenses will be
|
|
62
|
+
reinstated retroactively. However, if you violate these terms after such
|
|
63
|
+
reinstatement, any additional violation of these terms will cause your licenses
|
|
64
|
+
to terminate automatically and permanently.
|
|
65
|
+
|
|
66
|
+
## No Liability
|
|
67
|
+
|
|
68
|
+
*As far as the law allows, the software comes as is, without any warranty or
|
|
69
|
+
condition, and the licensor will not be liable to you for any damages arising
|
|
70
|
+
out of these terms or the use or nature of the software, under any kind of
|
|
71
|
+
legal claim.*
|
|
72
|
+
|
|
73
|
+
## Definitions
|
|
74
|
+
|
|
75
|
+
The **licensor** is the entity offering these terms, and the **software** is the
|
|
76
|
+
software the licensor makes available under these terms, including any portion
|
|
77
|
+
of it.
|
|
78
|
+
|
|
79
|
+
**you** refers to the individual or entity agreeing to these terms.
|
|
80
|
+
|
|
81
|
+
**your company** is any legal entity, sole proprietorship, or other kind of
|
|
82
|
+
organization that you work for, plus all organizations that have control over,
|
|
83
|
+
are under the control of, or are under common control with that
|
|
84
|
+
organization. **control** means ownership of substantially all the assets of an
|
|
85
|
+
entity, or the power to direct its management and policies by vote, contract, or
|
|
86
|
+
otherwise. Control can be direct or indirect.
|
|
87
|
+
|
|
88
|
+
**your licenses** are all the licenses granted to you for the software under
|
|
89
|
+
these terms.
|
|
90
|
+
|
|
91
|
+
**use** means anything you do with the software requiring one of your licenses.
|
|
92
|
+
|
|
93
|
+
**trademark** means trademarks, service marks, and similar rights.
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: coiled
|
|
3
|
-
Version: 1.93.
|
|
3
|
+
Version: 1.93.3.dev2
|
|
4
4
|
Summary: Python client for coiled.io dask clusters
|
|
5
5
|
Project-URL: Homepage, https://coiled.io
|
|
6
6
|
Maintainer-email: Coiled <info@coiled.io>
|
|
7
|
+
License-Expression: Elastic-2.0
|
|
7
8
|
License-File: LICENSE
|
|
8
9
|
Requires-Python: >=3.9
|
|
9
10
|
Requires-Dist: aiohttp
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import re
|
|
1
2
|
from enum import Enum
|
|
2
3
|
from logging import getLogger
|
|
3
4
|
from pathlib import Path
|
|
@@ -152,6 +153,31 @@ class SoftwareEnvSpec(TypedDict):
|
|
|
152
153
|
raw_conda: Optional[CondaEnvSchema]
|
|
153
154
|
|
|
154
155
|
|
|
156
|
+
# KNOWN_SUBDIRS is copied from conda's known subdirs
|
|
157
|
+
KNOWN_SUBDIRS = (
|
|
158
|
+
"noarch",
|
|
159
|
+
"emscripten-wasm32",
|
|
160
|
+
"wasi-wasm32",
|
|
161
|
+
"freebsd-64",
|
|
162
|
+
"linux-32",
|
|
163
|
+
"linux-64",
|
|
164
|
+
"linux-aarch64",
|
|
165
|
+
"linux-armv6l",
|
|
166
|
+
"linux-armv7l",
|
|
167
|
+
"linux-ppc64",
|
|
168
|
+
"linux-ppc64le",
|
|
169
|
+
"linux-riscv64",
|
|
170
|
+
"linux-s390x",
|
|
171
|
+
"osx-64",
|
|
172
|
+
"osx-arm64",
|
|
173
|
+
"win-32",
|
|
174
|
+
"win-64",
|
|
175
|
+
"win-arm64",
|
|
176
|
+
"zos-z",
|
|
177
|
+
)
|
|
178
|
+
KNOWN_SUBDIR_RE = re.compile(r"(?:/|^)(?:" + "|".join(KNOWN_SUBDIRS) + r")(?:/|$)", flags=re.IGNORECASE)
|
|
179
|
+
|
|
180
|
+
|
|
155
181
|
# This function is in this module to prevent circular import issues
|
|
156
182
|
def parse_conda_channel(package_name: str, channel: str, subdir: str) -> Tuple[Optional[str], str]:
|
|
157
183
|
"""Return a channel and channel_url for a conda package with any extra information removed."""
|
|
@@ -159,10 +185,20 @@ def parse_conda_channel(package_name: str, channel: str, subdir: str) -> Tuple[O
|
|
|
159
185
|
if channel == "<unknown>":
|
|
160
186
|
logger.warning(f"Channel for {package_name} is unknown, setting to conda-forge")
|
|
161
187
|
channel = "conda-forge"
|
|
162
|
-
#
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
188
|
+
# Remove all known subdirs from channel for noarch packages, because
|
|
189
|
+
# some versions of conda set the channel to the platform-specific
|
|
190
|
+
# channel, even if the package is noarch. This is a workaround for
|
|
191
|
+
# https://github.com/conda/conda/issues/14790
|
|
192
|
+
if subdir == "noarch":
|
|
193
|
+
channel = KNOWN_SUBDIR_RE.sub("", channel)
|
|
194
|
+
else:
|
|
195
|
+
# Strip correct subdir from channel (e.g. "linux-64" or "osx-arm64")
|
|
196
|
+
# We are conservative in this case, because theoretically
|
|
197
|
+
# a private channel could have a different subdir in its name
|
|
198
|
+
for subdir_suffix in (f"/{subdir}", f"/{subdir}/"):
|
|
199
|
+
if channel.endswith(subdir_suffix):
|
|
200
|
+
channel = channel[: -len(subdir_suffix)]
|
|
201
|
+
|
|
166
202
|
# Handle channel urls
|
|
167
203
|
if channel.startswith(("http:", "https:")):
|
|
168
204
|
channel_url = channel
|
coiled-1.93.2/LICENSE
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|