dagster-shared 1.12.1__py3-none-any.whl → 1.12.2__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.
- dagster_shared/check/builder.py +2 -8
- dagster_shared/cli/__init__.py +3 -3
- dagster_shared/error.py +2 -2
- dagster_shared/ipc.py +2 -2
- dagster_shared/libraries/__init__.py +1 -2
- dagster_shared/match.py +11 -3
- dagster_shared/record/__init__.py +2 -2
- dagster_shared/serdes/objects/package_entry.py +1 -3
- dagster_shared/serdes/serdes.py +2 -1
- dagster_shared/seven/__init__.py +1 -3
- dagster_shared/telemetry/__init__.py +2 -2
- dagster_shared/utils/__init__.py +1 -3
- dagster_shared/utils/cached_method.py +3 -3
- dagster_shared/utils/config.py +2 -4
- dagster_shared/utils/warnings.py +2 -2
- dagster_shared/version.py +1 -1
- {dagster_shared-1.12.1.dist-info → dagster_shared-1.12.2.dist-info}/METADATA +1 -2
- {dagster_shared-1.12.1.dist-info → dagster_shared-1.12.2.dist-info}/RECORD +21 -21
- {dagster_shared-1.12.1.dist-info → dagster_shared-1.12.2.dist-info}/WHEEL +0 -0
- {dagster_shared-1.12.1.dist-info → dagster_shared-1.12.2.dist-info}/licenses/LICENSE +0 -0
- {dagster_shared-1.12.1.dist-info → dagster_shared-1.12.2.dist-info}/top_level.txt +0 -0
dagster_shared/check/builder.py
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import collections.abc
|
|
2
2
|
import sys
|
|
3
|
-
from collections.abc import Iterable, Mapping
|
|
3
|
+
from collections.abc import Callable, Iterable, Mapping
|
|
4
4
|
from contextlib import contextmanager
|
|
5
5
|
from contextvars import ContextVar
|
|
6
|
+
from types import UnionType
|
|
6
7
|
from typing import (
|
|
7
8
|
Annotated,
|
|
8
9
|
Any,
|
|
9
|
-
Callable,
|
|
10
10
|
ForwardRef,
|
|
11
11
|
Generic,
|
|
12
12
|
Literal,
|
|
@@ -20,12 +20,6 @@ from typing import (
|
|
|
20
20
|
|
|
21
21
|
from dagster_shared.check.functions import CheckError, TypeOrTupleOfTypes, failed, invariant
|
|
22
22
|
|
|
23
|
-
try:
|
|
24
|
-
# this type only exists in python 3.10+
|
|
25
|
-
from types import UnionType # type: ignore
|
|
26
|
-
except ImportError:
|
|
27
|
-
UnionType = Union
|
|
28
|
-
|
|
29
23
|
NoneType = type(None)
|
|
30
24
|
|
|
31
25
|
_contextual_ns: ContextVar[Mapping[str, type]] = ContextVar("_contextual_ns", default={})
|
dagster_shared/cli/__init__.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
from collections.abc import Sequence
|
|
2
|
-
from typing import Any,
|
|
1
|
+
from collections.abc import Callable, Sequence
|
|
2
|
+
from typing import Any, Optional, TypeAlias, TypeVar
|
|
3
3
|
|
|
4
4
|
import click
|
|
5
|
-
from typing_extensions import Self
|
|
5
|
+
from typing_extensions import Self
|
|
6
6
|
|
|
7
7
|
from dagster_shared.record import as_dict, record
|
|
8
8
|
|
dagster_shared/error.py
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import os
|
|
3
3
|
import sys
|
|
4
4
|
import traceback
|
|
5
|
-
from collections.abc import Sequence
|
|
6
|
-
from typing import Any,
|
|
5
|
+
from collections.abc import Callable, Sequence
|
|
6
|
+
from typing import Any, NamedTuple, Optional
|
|
7
7
|
|
|
8
8
|
from typing_extensions import Self
|
|
9
9
|
|
dagster_shared/ipc.py
CHANGED
|
@@ -5,10 +5,10 @@ import subprocess
|
|
|
5
5
|
import sys
|
|
6
6
|
import tempfile
|
|
7
7
|
import threading
|
|
8
|
-
from collections.abc import Iterator, Sequence
|
|
8
|
+
from collections.abc import Callable, Iterator, Sequence
|
|
9
9
|
from contextlib import contextmanager
|
|
10
10
|
from subprocess import Popen
|
|
11
|
-
from typing import Any,
|
|
11
|
+
from typing import Any, Optional
|
|
12
12
|
|
|
13
13
|
import dagster_shared.check as check
|
|
14
14
|
from dagster_shared.seven import IS_WINDOWS
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import json
|
|
2
|
-
import socket
|
|
3
2
|
import warnings
|
|
4
3
|
from collections.abc import Mapping
|
|
5
4
|
from typing import Any
|
|
@@ -122,7 +121,7 @@ def get_pypi_package_data(pkg_name: str, timeout: float = 5.0) -> dict[str, Any]
|
|
|
122
121
|
f"Error: Received status code {response.status} for {pkg_name}"
|
|
123
122
|
)
|
|
124
123
|
return json.load(response)
|
|
125
|
-
except (HTTPError, URLError
|
|
124
|
+
except (TimeoutError, HTTPError, URLError) as e:
|
|
126
125
|
raise DagsterPyPiAccessError(f"Network error while checking {pkg_name}: {e}")
|
|
127
126
|
except json.JSONDecodeError as e:
|
|
128
127
|
raise DagsterPyPiAccessError(f"Invalid JSON response for {pkg_name}: {e}")
|
dagster_shared/match.py
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
from collections.abc import Sequence
|
|
2
|
-
from typing import
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
from typing import (
|
|
3
|
+
Any,
|
|
4
|
+
ForwardRef,
|
|
5
|
+
Literal,
|
|
6
|
+
NamedTuple,
|
|
7
|
+
TypeGuard,
|
|
8
|
+
TypeVar,
|
|
9
|
+
Union,
|
|
10
|
+
get_args,
|
|
11
|
+
get_origin,
|
|
12
|
+
)
|
|
5
13
|
|
|
6
14
|
T = TypeVar("T", bound=Any)
|
|
7
15
|
|
|
@@ -3,9 +3,9 @@ import os
|
|
|
3
3
|
import sys
|
|
4
4
|
from abc import ABC
|
|
5
5
|
from collections import namedtuple
|
|
6
|
-
from collections.abc import Iterator, Mapping
|
|
6
|
+
from collections.abc import Callable, Iterator, Mapping
|
|
7
7
|
from functools import partial
|
|
8
|
-
from typing import TYPE_CHECKING, Any,
|
|
8
|
+
from typing import TYPE_CHECKING, Any, NamedTuple, Optional, TypeVar, Union, overload
|
|
9
9
|
|
|
10
10
|
from typing_extensions import Self, dataclass_transform
|
|
11
11
|
|
|
@@ -3,9 +3,7 @@ import textwrap
|
|
|
3
3
|
from abc import ABC, abstractmethod
|
|
4
4
|
from collections.abc import Sequence
|
|
5
5
|
from itertools import groupby
|
|
6
|
-
from typing import Any, Literal, Optional, TypedDict, overload
|
|
7
|
-
|
|
8
|
-
from typing_extensions import TypeAlias
|
|
6
|
+
from typing import Any, Literal, Optional, TypeAlias, TypedDict, overload
|
|
9
7
|
|
|
10
8
|
from dagster_shared.record import record
|
|
11
9
|
from dagster_shared.serdes.serdes import whitelist_for_serdes
|
dagster_shared/serdes/serdes.py
CHANGED
|
@@ -30,12 +30,13 @@ from typing import ( # noqa: UP035
|
|
|
30
30
|
Generic,
|
|
31
31
|
NamedTuple,
|
|
32
32
|
Optional,
|
|
33
|
+
TypeAlias,
|
|
33
34
|
Union,
|
|
34
35
|
cast,
|
|
35
36
|
overload,
|
|
36
37
|
)
|
|
37
38
|
|
|
38
|
-
from typing_extensions import Self,
|
|
39
|
+
from typing_extensions import Self, TypeVar
|
|
39
40
|
|
|
40
41
|
import dagster_shared.check as check
|
|
41
42
|
from dagster_shared import seven
|
dagster_shared/seven/__init__.py
CHANGED
|
@@ -11,9 +11,7 @@ from collections.abc import Sequence
|
|
|
11
11
|
from importlib.machinery import ModuleSpec
|
|
12
12
|
from pathlib import Path
|
|
13
13
|
from types import ModuleType
|
|
14
|
-
from typing import Any, Callable, List, Optional, Type, Union # noqa: F401, UP035
|
|
15
|
-
|
|
16
|
-
from typing_extensions import TypeGuard
|
|
14
|
+
from typing import Any, Callable, List, Optional, Type, TypeGuard, Union # noqa: F401, UP035
|
|
17
15
|
|
|
18
16
|
import dagster_shared.seven.json as json # noqa: F401
|
|
19
17
|
from dagster_shared.seven.json import (
|
|
@@ -5,9 +5,9 @@ import os
|
|
|
5
5
|
import platform
|
|
6
6
|
import sys
|
|
7
7
|
import uuid
|
|
8
|
-
from collections.abc import Mapping
|
|
8
|
+
from collections.abc import Callable, Mapping
|
|
9
9
|
from logging.handlers import RotatingFileHandler
|
|
10
|
-
from typing import
|
|
10
|
+
from typing import NamedTuple, Optional
|
|
11
11
|
|
|
12
12
|
import click
|
|
13
13
|
|
dagster_shared/utils/__init__.py
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import asyncio
|
|
2
|
-
from collections.abc import Hashable, Mapping
|
|
2
|
+
from collections.abc import Callable, Hashable, Mapping
|
|
3
3
|
from functools import wraps
|
|
4
|
-
from typing import Any,
|
|
4
|
+
from typing import Any, Concatenate, TypeVar, cast
|
|
5
5
|
|
|
6
|
-
from typing_extensions import
|
|
6
|
+
from typing_extensions import ParamSpec
|
|
7
7
|
|
|
8
8
|
from dagster_shared.seven import get_arg_names
|
|
9
9
|
|
dagster_shared/utils/config.py
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import os
|
|
2
2
|
import sys
|
|
3
|
-
from collections.abc import Mapping
|
|
3
|
+
from collections.abc import Callable, Mapping
|
|
4
4
|
from pathlib import Path
|
|
5
|
-
from typing import Any,
|
|
6
|
-
|
|
7
|
-
from typing_extensions import Literal, TypeAlias
|
|
5
|
+
from typing import Any, Final, Literal, Optional, TypeAlias
|
|
8
6
|
|
|
9
7
|
|
|
10
8
|
def is_windows() -> bool:
|
dagster_shared/utils/warnings.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import warnings
|
|
2
|
-
from collections.abc import Iterator
|
|
2
|
+
from collections.abc import Callable, Iterator
|
|
3
3
|
from contextlib import contextmanager
|
|
4
4
|
from contextvars import ContextVar
|
|
5
|
-
from typing import
|
|
5
|
+
from typing import Optional, TypeVar
|
|
6
6
|
|
|
7
7
|
from dagster_shared import check
|
|
8
8
|
|
dagster_shared/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.12.
|
|
1
|
+
__version__ = "1.12.2"
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dagster_shared
|
|
3
|
-
Version: 1.12.
|
|
3
|
+
Version: 1.12.2
|
|
4
4
|
Summary: Shared code between dagster and dagster-dg-core.
|
|
5
5
|
Home-page: https://github.com/dagster-io/dagster/tree/master/python_modules/libraries/dagster-shared
|
|
6
6
|
Author: Dagster Labs
|
|
7
7
|
Author-email: hello@dagsterlabs.com
|
|
8
8
|
License: Apache-2.0
|
|
9
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
10
9
|
Classifier: Programming Language :: Python :: 3.10
|
|
11
10
|
Classifier: Programming Language :: Python :: 3.11
|
|
12
11
|
Classifier: Programming Language :: Python :: 3.12
|
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
dagster_shared/__init__.py,sha256=uFioJhQzUnblGmnG9vkw3Eq_AKTsnKBtKAjYq4tGzVQ,62
|
|
2
|
-
dagster_shared/error.py,sha256=
|
|
3
|
-
dagster_shared/ipc.py,sha256=
|
|
4
|
-
dagster_shared/match.py,sha256=
|
|
2
|
+
dagster_shared/error.py,sha256=bATa0c4LB4kbvdZU54iwlhWhQfnjHtGIvxi6lXrwd0Y,7457
|
|
3
|
+
dagster_shared/ipc.py,sha256=KwgaQFvYOI1h05JzXhWQPImz8bOBHoocwdUouUg6k3I,5740
|
|
4
|
+
dagster_shared/match.py,sha256=P9wQSvzb7a03jXlC-0w9msoX5bV_BE1uSvdYvavNO6M,3444
|
|
5
5
|
dagster_shared/merger.py,sha256=c9cJTwHtgMXgR9MtB-KwZEMtQSXn13rF08F2ID5aDTg,1758
|
|
6
6
|
dagster_shared/modules.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
dagster_shared/py.typed,sha256=mDShSrm8qg9qjacQc2F-rI8ATllqP6EdgHuEYxuCXZ0,7
|
|
8
|
-
dagster_shared/version.py,sha256=
|
|
8
|
+
dagster_shared/version.py,sha256=iqOGXbKmT9gJTZlaRWM7sRQNzvTVrBLpyBifku0F4lY,23
|
|
9
9
|
dagster_shared/check/README.md,sha256=UlxRVMWJEoVAlaHWDvhobUpuNQGBG5-ddqZ6OIfLYnM,1352
|
|
10
10
|
dagster_shared/check/__init__.py,sha256=CHSOqJpaeWr6skJT7jD8HnN5s4bdnoX4x94sGN55KqA,3482
|
|
11
|
-
dagster_shared/check/builder.py,sha256=
|
|
11
|
+
dagster_shared/check/builder.py,sha256=2Ne2EM_2tGm2zYMg0vRxqC5r-KLc746UNnXe1Fk_vRc,17311
|
|
12
12
|
dagster_shared/check/decorator.py,sha256=AqRIbQwGHRsCKwd2mBXwXmyzrzUkVvYKlG4eAuL9pSQ,3619
|
|
13
13
|
dagster_shared/check/functions.py,sha256=PhFZkMag2q5MKulQjgyIs_O9_t0XqOnzNRdQFZTp9xU,55846
|
|
14
14
|
dagster_shared/check/record.py,sha256=vzwbmxQNQl3_oG74NRKgjlIDM2xpL5ZbKtKhoFNhNq4,412
|
|
15
|
-
dagster_shared/cli/__init__.py,sha256
|
|
15
|
+
dagster_shared/cli/__init__.py,sha256=y2q8V4gn5IRxq962uGjMkgWqpMK0B3pongr2mMB2vvg,8781
|
|
16
16
|
dagster_shared/dagster_model/__init__.py,sha256=MoUreIsyzBIjn1w2noiyR0CmBg2kiP2VhUGkXvFI5E8,1296
|
|
17
17
|
dagster_shared/dagster_model/pydantic_compat_layer.py,sha256=9c2BmeucYvvfnmeSffOqadKX0Kitx1rBu-WW32A116Y,2892
|
|
18
|
-
dagster_shared/libraries/__init__.py,sha256=
|
|
18
|
+
dagster_shared/libraries/__init__.py,sha256=VBOVSB2MU2HZzUTarK-3JE-7k7xkhiggPZnaAsEcwNg,4669
|
|
19
19
|
dagster_shared/plus/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
20
|
dagster_shared/plus/config.py,sha256=0kAWocZFYh9NmCoOT348YUg0vQe9SEpJ_Ze9R3uyR-w,5756
|
|
21
21
|
dagster_shared/plus/config_utils.py,sha256=eVvahsrGQdcYL1H3_63kXO2NKsVPtWXhlGFajvJPQ5w,6147
|
|
22
22
|
dagster_shared/plus/login_server.py,sha256=zRc85NUHtxpgXGfzV1d4hq-n9ZdXTBiSmagUebwxqdE,3630
|
|
23
|
-
dagster_shared/record/__init__.py,sha256=
|
|
23
|
+
dagster_shared/record/__init__.py,sha256=bOQHMcYGHKe5d3tasHNIPfXJAJUPvb7B1puZPjzdlFA,22576
|
|
24
24
|
dagster_shared/scaffold/__init__.py,sha256=xb5-ZdbZ5wSYYJy8VA1KGDnPodM6bKTCSBPS85Wqi_w,3759
|
|
25
25
|
dagster_shared/serdes/__init__.py,sha256=BInlrdN_14uwPz0t32Dl1VH4D-7_rG1vUfZ0rw5DQc0,649
|
|
26
26
|
dagster_shared/serdes/errors.py,sha256=qg_VZqtuYAlAXIjOp96bGs_z309ifDoHuT4sVnxJ6nA,142
|
|
27
|
-
dagster_shared/serdes/serdes.py,sha256=
|
|
27
|
+
dagster_shared/serdes/serdes.py,sha256=2isX7S-IwLCTvPXl0vXkcHjA7DSAKGTrXt6_Q_9eDyk,54439
|
|
28
28
|
dagster_shared/serdes/utils.py,sha256=4pj75ezp2g_BZMsRSBzDJezUC1B-z6DLo8j90daohvM,1842
|
|
29
29
|
dagster_shared/serdes/objects/__init__.py,sha256=iSlP-BnIyeBaNp9kcxrJHtGO5cbpodSXM5ulnIGbzJk,254
|
|
30
30
|
dagster_shared/serdes/objects/definition_metadata.py,sha256=ECd9dCV7EULPQlWRsvlO_eauYjkM58VhGnMPPxjGfew,2000
|
|
31
|
-
dagster_shared/serdes/objects/package_entry.py,sha256=
|
|
31
|
+
dagster_shared/serdes/objects/package_entry.py,sha256=AKryJjjvlr8FEYJ0FaZXfxPlH3Wa0yUNSSXo1F00knc,6927
|
|
32
32
|
dagster_shared/serdes/objects/models/__init__.py,sha256=k4SeT33CVm58Gwn87BKa85nrqCwfp6cUnUMiePLrkBI,147
|
|
33
33
|
dagster_shared/serdes/objects/models/defs_state_info.py,sha256=5EmJELrgm-wnWLA3eq6xz1vRKXK_imiAjPaMSMihB-Y,2826
|
|
34
|
-
dagster_shared/seven/__init__.py,sha256=
|
|
34
|
+
dagster_shared/seven/__init__.py,sha256=_Y52tIMTzKjky9s-QqFGBNNBaOhtX11DZB5F7dASxqw,8402
|
|
35
35
|
dagster_shared/seven/abc.py,sha256=vaqd-UGzvqAADutqU4O0V7-Hihe0vQNerj2SlCPJMFQ,553
|
|
36
36
|
dagster_shared/seven/json.py,sha256=TElHKCmD71QJSDKvFP4e_vLMoSAFsAllPAbmplzSN30,383
|
|
37
37
|
dagster_shared/seven/temp_dir.py,sha256=L03xfE14yxlcmjCI9NrViY36r4MMjaahfexJygMPaJo,354
|
|
38
38
|
dagster_shared/seven/compat/__init__.py,sha256=8BqkAab5uZGmSyvBFpePjAaXR9seNDobs3TYI45nt5k,105
|
|
39
|
-
dagster_shared/telemetry/__init__.py,sha256=
|
|
40
|
-
dagster_shared/utils/__init__.py,sha256=
|
|
41
|
-
dagster_shared/utils/cached_method.py,sha256=
|
|
42
|
-
dagster_shared/utils/config.py,sha256=
|
|
39
|
+
dagster_shared/telemetry/__init__.py,sha256=_SLCyZSLGFmaZLujii-z7FK642ewI78Nm4eV8n-3Xxs,11335
|
|
40
|
+
dagster_shared/utils/__init__.py,sha256=GlE5oHRzfRBD1AFV8MGPgSBexYNkVwh0-ODGSQ36D9E,2962
|
|
41
|
+
dagster_shared/utils/cached_method.py,sha256=WQj_xtSTO5qIejFqxnLXpjIMRsiWe8aJ0IcZkkWBWxY,7183
|
|
42
|
+
dagster_shared/utils/config.py,sha256=np_6pJ6r3xRKfV-cPeR6qVXebhj-Oznw3rhWP67miNM,3536
|
|
43
43
|
dagster_shared/utils/hash.py,sha256=WA0FegijIAhMphC0gt30tTqpR6BecRk1GhIMtV71qbU,2060
|
|
44
44
|
dagster_shared/utils/test.py,sha256=rF0eXymdihf25euuyfQrnH7w8dicUDFAIloKlmKXyZ0,20
|
|
45
45
|
dagster_shared/utils/timing.py,sha256=x3HUIMsHiUSTlULTwajxCX1hit2OiiJYymy_vHakIg0,1774
|
|
46
|
-
dagster_shared/utils/warnings.py,sha256=
|
|
46
|
+
dagster_shared/utils/warnings.py,sha256=yxiG8ghc3RwyomRItwIKQe6TrUdTlJAUX3BssOweBT8,5767
|
|
47
47
|
dagster_shared/yaml_utils/__init__.py,sha256=Ya7qT3aJGPC1TgD-pSkkhLX5U4QbrUkCsrUtZQeACXg,10529
|
|
48
48
|
dagster_shared/yaml_utils/sample_yaml.py,sha256=YC-1h1P48F3QV-Uwo-MqzEkzlrMliXPfZM_X6ynZvTQ,5461
|
|
49
49
|
dagster_shared/yaml_utils/source_position.py,sha256=yVSnHUkBYzWzLzqtyGbqRjH2b7oTeiE4K3b-uokYUIQ,9786
|
|
50
|
-
dagster_shared-1.12.
|
|
51
|
-
dagster_shared-1.12.
|
|
52
|
-
dagster_shared-1.12.
|
|
53
|
-
dagster_shared-1.12.
|
|
54
|
-
dagster_shared-1.12.
|
|
50
|
+
dagster_shared-1.12.2.dist-info/licenses/LICENSE,sha256=hgU51ohULAFKZE2la8sartPYoUaAA14jxFAfFC4Tow0,11347
|
|
51
|
+
dagster_shared-1.12.2.dist-info/METADATA,sha256=o5caYcQq9y-FZuu1azh7zHdVeU6w6BqTtsYKYZ-9jPc,1153
|
|
52
|
+
dagster_shared-1.12.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
53
|
+
dagster_shared-1.12.2.dist-info/top_level.txt,sha256=S8ADcO4aTW07ONhLHXDxiuSkDzucgYKOlocB2x3r_dY,15
|
|
54
|
+
dagster_shared-1.12.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|