isolate 0.16.3__py3-none-any.whl → 0.17.0__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.
Potentially problematic release.
This version of isolate might be problematic. Click here for more details.
- isolate/_isolate_version.py +2 -2
- isolate/backends/container.py +15 -1
- {isolate-0.16.3.dist-info → isolate-0.17.0.dist-info}/METADATA +1 -1
- {isolate-0.16.3.dist-info → isolate-0.17.0.dist-info}/RECORD +8 -8
- {isolate-0.16.3.dist-info → isolate-0.17.0.dist-info}/WHEEL +1 -1
- {isolate-0.16.3.dist-info → isolate-0.17.0.dist-info}/entry_points.txt +0 -0
- {isolate-0.16.3.dist-info → isolate-0.17.0.dist-info}/licenses/LICENSE +0 -0
- {isolate-0.16.3.dist-info → isolate-0.17.0.dist-info}/top_level.txt +0 -0
isolate/_isolate_version.py
CHANGED
isolate/backends/container.py
CHANGED
|
@@ -19,6 +19,7 @@ class ContainerizedPythonEnvironment(BaseEnvironment[Path]):
|
|
|
19
19
|
python_version: str | None = None
|
|
20
20
|
requirements: list[str] = field(default_factory=list)
|
|
21
21
|
tags: list[str] = field(default_factory=list)
|
|
22
|
+
resolver: str | None = None
|
|
22
23
|
|
|
23
24
|
@classmethod
|
|
24
25
|
def from_config(
|
|
@@ -28,14 +29,27 @@ class ContainerizedPythonEnvironment(BaseEnvironment[Path]):
|
|
|
28
29
|
) -> BaseEnvironment:
|
|
29
30
|
environment = cls(**config)
|
|
30
31
|
environment.apply_settings(settings)
|
|
32
|
+
if environment.resolver not in ("uv", None):
|
|
33
|
+
raise ValueError(
|
|
34
|
+
"Only 'uv' is supported as a resolver for container environments."
|
|
35
|
+
)
|
|
31
36
|
return environment
|
|
32
37
|
|
|
33
38
|
@property
|
|
34
39
|
def key(self) -> str:
|
|
40
|
+
extras = []
|
|
41
|
+
if self.resolver is not None:
|
|
42
|
+
extras.append(f"resolver={self.resolver}")
|
|
43
|
+
|
|
35
44
|
# dockerfile_str is always there, but the validation is handled by the
|
|
36
45
|
# controller.
|
|
37
46
|
dockerfile_str = self.image.get("dockerfile_str", "")
|
|
38
|
-
return sha256_digest_of(
|
|
47
|
+
return sha256_digest_of(
|
|
48
|
+
dockerfile_str,
|
|
49
|
+
*self.requirements,
|
|
50
|
+
*sorted(self.tags),
|
|
51
|
+
*extras,
|
|
52
|
+
)
|
|
39
53
|
|
|
40
54
|
def create(self, *, force: bool = False) -> Path:
|
|
41
55
|
return Path(sys.exec_prefix)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
isolate/__init__.py,sha256=uXOKnONs7sXgARNgElwr4_A1sKoA6ACHVEvs3IDiX1M,127
|
|
2
|
-
isolate/_isolate_version.py,sha256=
|
|
2
|
+
isolate/_isolate_version.py,sha256=6lYqo2NiGNZ_O8QsSkzvYU60ogL4YFzN80126BkHcWw,513
|
|
3
3
|
isolate/_version.py,sha256=05pXvy-yr5t3I1m9JMn42Ilzpg7fa8IB2J8a3G7t1cU,274
|
|
4
4
|
isolate/logger.py,sha256=IXPebob_fV8bl8HAyKcheXcTJocfdWk-v-ujSl13oVA,1718
|
|
5
5
|
isolate/logs.py,sha256=R_AHUVYD18z_PhtK_mDWi9Gch79CxmwHY09hUDShtwg,2079
|
|
@@ -9,7 +9,7 @@ isolate/backends/__init__.py,sha256=LLrSM7UnDFW8tIT5oYlE1wVJrxKcaj_v7cFwvTjQTlc,
|
|
|
9
9
|
isolate/backends/_base.py,sha256=Kt5pkhDzXZblq4vxaM3DQTo-Bj-7pIRZFlqJR7OfejY,4112
|
|
10
10
|
isolate/backends/common.py,sha256=PEOcOK38nX1sIZzfF2m8kdZi8a31kpIoWr8mamTmj30,8594
|
|
11
11
|
isolate/backends/conda.py,sha256=S5q5bdY787AMTck2iMGtwu-LHMH4a1qCIjNHDKTkqok,7649
|
|
12
|
-
isolate/backends/container.py,sha256=
|
|
12
|
+
isolate/backends/container.py,sha256=yGrPM1rp66o_zLw-YLSbEcUVeoIsFalhywot0Sc4B-A,2039
|
|
13
13
|
isolate/backends/local.py,sha256=woxe4dmXuEHxWKsGNndoRA1_sP6yG-dg6tlFZni0mZc,1360
|
|
14
14
|
isolate/backends/pyenv.py,sha256=ZwTYoVPIWhS3Y4hN51x95aIOHi15GF7kEDdKTNhlMTE,5434
|
|
15
15
|
isolate/backends/remote.py,sha256=z6QyBiCt8ltv4Zm8IYX3zyMkBH1k8lTowhnD92-Ed2M,4293
|
|
@@ -53,9 +53,9 @@ isolate/server/health/health.proto,sha256=wE2_QD0OQAblKkEBG7sALLXEOj1mOLKG-FbC4t
|
|
|
53
53
|
isolate/server/health/health_pb2.py,sha256=-fd91wiaZOSJj_zeo55IqxMBsQGuGF-yjZS-Wc1RaS0,1897
|
|
54
54
|
isolate/server/health/health_pb2.pyi,sha256=AK-DPCpJzoYhU6DydD856c0Ywx84x6k-Cs4m6HpNv5A,2459
|
|
55
55
|
isolate/server/health/health_pb2_grpc.py,sha256=BrwuS8t4w6K-XVxIdrUQj5Rn0FAMXrYB2iFgUfeXGMM,3913
|
|
56
|
-
isolate-0.
|
|
57
|
-
isolate-0.
|
|
58
|
-
isolate-0.
|
|
59
|
-
isolate-0.
|
|
60
|
-
isolate-0.
|
|
61
|
-
isolate-0.
|
|
56
|
+
isolate-0.17.0.dist-info/licenses/LICENSE,sha256=427vuyirL5scgBLqA9UWcdnxKrtSGc0u_JfUupk6lAA,11359
|
|
57
|
+
isolate-0.17.0.dist-info/METADATA,sha256=LZS6o3JOY2tmaBhmrPStN93AYl5WcXuyorTsSOnuH_c,3198
|
|
58
|
+
isolate-0.17.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
59
|
+
isolate-0.17.0.dist-info/entry_points.txt,sha256=s3prh2EERaVCbL8R45tfY5WFPZ1TsYOsz305YR7s-Pc,360
|
|
60
|
+
isolate-0.17.0.dist-info/top_level.txt,sha256=W9QJBHcq5WXRkbOXf25bvftzFsOZZN4n1DAatdroZrs,8
|
|
61
|
+
isolate-0.17.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|