dagster-shared 1.12.1__tar.gz → 1.12.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.
Files changed (62) hide show
  1. {dagster_shared-1.12.1/dagster_shared.egg-info → dagster_shared-1.12.3}/PKG-INFO +1 -2
  2. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/check/builder.py +2 -8
  3. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/cli/__init__.py +3 -3
  4. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/error.py +2 -2
  5. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/ipc.py +2 -2
  6. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/libraries/__init__.py +1 -2
  7. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/match.py +11 -3
  8. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/record/__init__.py +2 -2
  9. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/serdes/objects/package_entry.py +1 -3
  10. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/serdes/serdes.py +2 -1
  11. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/seven/__init__.py +1 -3
  12. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/telemetry/__init__.py +2 -2
  13. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/utils/__init__.py +1 -3
  14. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/utils/cached_method.py +3 -3
  15. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/utils/config.py +2 -4
  16. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/utils/warnings.py +2 -2
  17. dagster_shared-1.12.3/dagster_shared/version.py +1 -0
  18. {dagster_shared-1.12.1 → dagster_shared-1.12.3/dagster_shared.egg-info}/PKG-INFO +1 -2
  19. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/setup.py +0 -1
  20. dagster_shared-1.12.1/dagster_shared/version.py +0 -1
  21. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/LICENSE +0 -0
  22. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/MANIFEST.in +0 -0
  23. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/README.md +0 -0
  24. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/__init__.py +0 -0
  25. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/check/README.md +0 -0
  26. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/check/__init__.py +0 -0
  27. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/check/decorator.py +0 -0
  28. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/check/functions.py +0 -0
  29. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/check/record.py +0 -0
  30. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/dagster_model/__init__.py +0 -0
  31. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/dagster_model/pydantic_compat_layer.py +0 -0
  32. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/merger.py +0 -0
  33. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/modules.py +0 -0
  34. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/plus/__init__.py +0 -0
  35. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/plus/config.py +0 -0
  36. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/plus/config_utils.py +0 -0
  37. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/plus/login_server.py +0 -0
  38. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/py.typed +0 -0
  39. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/scaffold/__init__.py +0 -0
  40. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/serdes/__init__.py +0 -0
  41. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/serdes/errors.py +0 -0
  42. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/serdes/objects/__init__.py +0 -0
  43. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/serdes/objects/definition_metadata.py +0 -0
  44. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/serdes/objects/models/__init__.py +0 -0
  45. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/serdes/objects/models/defs_state_info.py +0 -0
  46. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/serdes/utils.py +0 -0
  47. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/seven/abc.py +0 -0
  48. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/seven/compat/__init__.py +0 -0
  49. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/seven/json.py +0 -0
  50. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/seven/temp_dir.py +0 -0
  51. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/utils/hash.py +0 -0
  52. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/utils/test.py +0 -0
  53. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/utils/timing.py +0 -0
  54. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/yaml_utils/__init__.py +0 -0
  55. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/yaml_utils/sample_yaml.py +0 -0
  56. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared/yaml_utils/source_position.py +0 -0
  57. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared.egg-info/SOURCES.txt +0 -0
  58. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared.egg-info/dependency_links.txt +0 -0
  59. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared.egg-info/not-zip-safe +0 -0
  60. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared.egg-info/requires.txt +0 -0
  61. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/dagster_shared.egg-info/top_level.txt +0 -0
  62. {dagster_shared-1.12.1 → dagster_shared-1.12.3}/setup.cfg +0 -0
@@ -1,12 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dagster_shared
3
- Version: 1.12.1
3
+ Version: 1.12.3
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,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={})
@@ -1,8 +1,8 @@
1
- from collections.abc import Sequence
2
- from typing import Any, Callable, Optional, TypeVar
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, TypeAlias
5
+ from typing_extensions import Self
6
6
 
7
7
  from dagster_shared.record import as_dict, record
8
8
 
@@ -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, Callable, NamedTuple, Optional
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
 
@@ -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, Callable, Optional
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, socket.timeout) as e:
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}")
@@ -1,7 +1,15 @@
1
1
  from collections.abc import Sequence
2
- from typing import Any, ForwardRef, Literal, NamedTuple, TypeVar, Union, get_args, get_origin
3
-
4
- from typing_extensions import TypeGuard
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, Callable, NamedTuple, Optional, TypeVar, Union, overload
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
@@ -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, TypeAlias, TypeVar
39
+ from typing_extensions import Self, TypeVar
39
40
 
40
41
  import dagster_shared.check as check
41
42
  from dagster_shared import seven
@@ -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 Callable, NamedTuple, Optional
10
+ from typing import NamedTuple, Optional
11
11
 
12
12
  import click
13
13
 
@@ -4,9 +4,7 @@ import random
4
4
  import socket
5
5
  from collections.abc import Iterator, Mapping
6
6
  from types import GenericAlias
7
- from typing import TypeVar
8
-
9
- from typing_extensions import TypeGuard
7
+ from typing import TypeGuard, TypeVar
10
8
 
11
9
  T = TypeVar("T")
12
10
 
@@ -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, Callable, TypeVar, cast
4
+ from typing import Any, Concatenate, TypeVar, cast
5
5
 
6
- from typing_extensions import Concatenate, ParamSpec
6
+ from typing_extensions import ParamSpec
7
7
 
8
8
  from dagster_shared.seven import get_arg_names
9
9
 
@@ -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, Callable, Final, Optional
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:
@@ -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 Callable, Optional, TypeVar
5
+ from typing import Optional, TypeVar
6
6
 
7
7
  from dagster_shared import check
8
8
 
@@ -0,0 +1 @@
1
+ __version__ = "1.12.3"
@@ -1,12 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dagster_shared
3
- Version: 1.12.1
3
+ Version: 1.12.3
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
@@ -25,7 +25,6 @@ setup(
25
25
  "https://github.com/dagster-io/dagster/tree/master/python_modules/libraries/dagster-shared"
26
26
  ),
27
27
  classifiers=[
28
- "Programming Language :: Python :: 3.9",
29
28
  "Programming Language :: Python :: 3.10",
30
29
  "Programming Language :: Python :: 3.11",
31
30
  "Programming Language :: Python :: 3.12",
@@ -1 +0,0 @@
1
- __version__ = "1.12.1"
File without changes