Skip to content

Commit c4212d1

Browse files
authored
[chore]: Drop temporary python-dxf patch (#3245)
The patch was originally introduced to address a registry authentication issue, which has since been fixed upstream in version 12.1.1.
1 parent d3ba8b4 commit c4212d1

File tree

3 files changed

+2
-90
lines changed

3 files changed

+2
-90
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ server = [
134134
"alembic>=1.10.2",
135135
"aiosqlite",
136136
"docker>=6.0.0",
137-
"python-dxf==12.1.0",
137+
"python-dxf>=12.1.1",
138138
"sentry-sdk[fastapi]>=2.27.0",
139139
"alembic-postgresql-enum",
140140
"asyncpg",

src/dstack/_internal/server/services/docker.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
RegistryAuth,
1616
)
1717
from dstack._internal.server.utils.common import join_byte_stream_checked
18-
from dstack._internal.utils.dxf import PatchedDXF
1918

2019
DEFAULT_PLATFORM = "linux/amd64"
2120
DEFAULT_REGISTRY = "index.docker.io"
@@ -75,7 +74,7 @@ class ImageManifest(CoreModel):
7574
def get_image_config(image_name: str, registry_auth: Optional[RegistryAuth]) -> ImageConfigObject:
7675
image = parse_image_name(image_name)
7776

78-
registry_client = PatchedDXF(
77+
registry_client = DXF(
7978
host=image.registry or DEFAULT_REGISTRY,
8079
repo=image.repo,
8180
auth=DXFAuthAdapter(registry_auth), # type: ignore[assignment]

src/dstack/_internal/utils/dxf.py

Lines changed: 0 additions & 87 deletions
This file was deleted.

0 commit comments

Comments
 (0)