dagstermill 0.22.14__py3-none-any.whl → 0.23.1__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 dagstermill might be problematic. Click here for more details.

@@ -19,7 +19,7 @@ from dagster import (
19
19
  from dagster._config.pythonic_config import Config, infer_schema_from_config_class
20
20
  from dagster._config.pythonic_config.type_check_utils import safe_is_subclass
21
21
  from dagster._core.definitions.events import CoercibleToAssetKey, CoercibleToAssetKeyPrefix
22
- from dagster._core.definitions.utils import validate_tags
22
+ from dagster._core.definitions.utils import normalize_tags
23
23
  from dagster._core.execution.context.compute import OpExecutionContext
24
24
 
25
25
  from dagstermill.factory import _clean_path_for_windows, execute_notebook
@@ -172,7 +172,7 @@ def define_dagstermill_asset(
172
172
  io_manager_key, "io_manager_key", default="output_notebook_io_manager"
173
173
  )
174
174
 
175
- user_tags = validate_tags(op_tags)
175
+ user_tags = normalize_tags(op_tags).tags
176
176
  if op_tags is not None:
177
177
  check.invariant(
178
178
  "notebook_path" not in op_tags,
dagstermill/context.py CHANGED
@@ -8,6 +8,9 @@ from dagster import (
8
8
  )
9
9
  from dagster._annotations import public
10
10
  from dagster._core.definitions.dependency import Node, NodeHandle
11
+ from dagster._core.definitions.repository_definition.repository_definition import (
12
+ RepositoryDefinition,
13
+ )
11
14
  from dagster._core.execution.context.compute import AbstractComputeExecutionContext
12
15
  from dagster._core.execution.context.system import PlanExecutionContext, StepExecutionContext
13
16
  from dagster._core.log_manager import DagsterLogManager
@@ -100,6 +103,11 @@ class DagstermillExecutionContext(AbstractComputeExecutionContext):
100
103
  """
101
104
  return self._job_def
102
105
 
106
+ @property
107
+ def repository_def(self) -> RepositoryDefinition:
108
+ """:class:`dagster.RepositoryDefinition`: The repository definition for the context."""
109
+ raise NotImplementedError
110
+
103
111
  @property
104
112
  def resources(self) -> Any:
105
113
  """collections.namedtuple: A dynamically-created type whose properties allow access to
dagstermill/factory.py CHANGED
@@ -21,7 +21,7 @@ from dagster._config.pythonic_config.type_check_utils import safe_is_subclass
21
21
  from dagster._core.definitions.events import AssetMaterialization, Failure, RetryRequested
22
22
  from dagster._core.definitions.metadata import MetadataValue
23
23
  from dagster._core.definitions.reconstruct import ReconstructableJob
24
- from dagster._core.definitions.utils import validate_tags
24
+ from dagster._core.definitions.utils import normalize_tags
25
25
  from dagster._core.execution.context.compute import OpExecutionContext
26
26
  from dagster._core.execution.context.input import build_input_context
27
27
  from dagster._core.execution.context.system import StepExecutionContext
@@ -199,9 +199,7 @@ def execute_notebook(
199
199
 
200
200
  except Exception as ex:
201
201
  step_context.log.warn(
202
- "Error when attempting to materialize executed notebook: {exc}".format(
203
- exc=str(serializable_error_info_from_exc_info(sys.exc_info()))
204
- )
202
+ f"Error when attempting to materialize executed notebook: {serializable_error_info_from_exc_info(sys.exc_info())!s}"
205
203
  )
206
204
 
207
205
  if isinstance(ex, ExecutionError):
@@ -414,7 +412,7 @@ def define_dagstermill_op(
414
412
  default_description = f"This op is backed by the notebook at {notebook_path}"
415
413
  description = check.opt_str_param(description, "description", default=default_description)
416
414
 
417
- user_tags = validate_tags(tags)
415
+ user_tags = normalize_tags(tags).tags
418
416
  if tags is not None:
419
417
  check.invariant(
420
418
  "notebook_path" not in tags,
dagstermill/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.22.14"
1
+ __version__ = "0.23.1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dagstermill
3
- Version: 0.22.14
3
+ Version: 0.23.1
4
4
  Summary: run notebooks using the Dagster tools
5
5
  Author: Dagster Labs
6
6
  Author-email: hello@dagsterlabs.com
@@ -13,7 +13,7 @@ Classifier: License :: OSI Approved :: Apache Software License
13
13
  Classifier: Operating System :: OS Independent
14
14
  Requires-Python: >=3.8,<3.13
15
15
  License-File: LICENSE
16
- Requires-Dist: dagster ==1.6.14
16
+ Requires-Dist: dagster ==1.7.1
17
17
  Requires-Dist: ipykernel !=5.4.0,!=5.4.1,>=4.9.0
18
18
  Requires-Dist: ipython-genutils >=0.2.0
19
19
  Requires-Dist: packaging >=20.9
@@ -1,22 +1,22 @@
1
1
  dagstermill/__init__.py,sha256=WZRYSjL1yAM1w5cqmC1t2T7hvuW-RGGY5tV9vZGHZwU,1133
2
2
  dagstermill/__main__.py,sha256=bYt9eEaoRQWdejEHFD8REx9jxVEdZptECFsV7F49Ink,30
3
- dagstermill/asset_factory.py,sha256=L-ABdA6NaCwSzcs3a4xlZv5wUB5skJvFj0yKQZstAqk,9456
3
+ dagstermill/asset_factory.py,sha256=3moIwVr3dzFuDRVAdRZlQlO00nfGFAiA8cvmOgJi1zw,9463
4
4
  dagstermill/cli.py,sha256=lffeaQgenSR7s8MhNUBNA_BeVehlMUrdg7gnQl1WTdY,4494
5
5
  dagstermill/compat.py,sha256=GCfUaGC3eIEhlZP_VFtua8hFKNtwXocOAfYxuKZ5X3I,526
6
- dagstermill/context.py,sha256=yQhfps6ErTXWYmI3XfxVJzBJgl0lkzq7owE9WL_LR7U,5793
6
+ dagstermill/context.py,sha256=3_SkRBM9wDB6T64Lc4yJZGp8mpA_PMXkHlF8U1I19A4,6104
7
7
  dagstermill/engine.py,sha256=4CZW-eni4TnG8C8VhPkZZgj6djItdOUKhHPzvaVhaYo,5843
8
8
  dagstermill/errors.py,sha256=WOmpAGp-J1XhyGK_LT3ZZKsBwF5dvrWbqSaSldtoh6Y,141
9
- dagstermill/factory.py,sha256=iU9x4SJx7YJTwDFcY-04TNq-xR6K_8mNU_sAATu9I68,18687
9
+ dagstermill/factory.py,sha256=R9IiuAFi35nHneuWsegcXEH1iTp4qUuO0zmtizmBZb0,18638
10
10
  dagstermill/io_managers.py,sha256=D9UA4KufzrOeCan3TJyPogD0uIJBjK80ExikdMHqweI,4403
11
11
  dagstermill/manager.py,sha256=HPk1PtVOc7MDFb3F3t-XECvhPYRPRAXNBSapXYAIUBA,15788
12
12
  dagstermill/serialize.py,sha256=eXW3c26CiILT_uebyFcAKBnsiNxnjyGT_ch3PfGyjek,188
13
13
  dagstermill/translator.py,sha256=h1VPAOWtdjLKzFjRmyN9hO_R6qJuAETNkJydfdgwWGM,2170
14
- dagstermill/version.py,sha256=jyda_cqSZbwexWt3ATGl7DuFA5PyH-kDQX7yuu4V4Rk,24
14
+ dagstermill/version.py,sha256=EmtVqV41YmZp6Mj5pkm4iGXDMznVEE4GQEUYGGidq30,23
15
15
  dagstermill/examples/__init__.py,sha256=kzan-9zFjxaJ8o9bqUso44gcGiOmJrlq4JYO-yIBQao,55
16
16
  dagstermill/examples/repository.py,sha256=hKQ1_GzHFiSf4oZmr1HYQmyRSMG0HDq25m0Y0oz0eXQ,15827
17
- dagstermill-0.22.14.dist-info/LICENSE,sha256=TMatHW4_G9ldRdodEAp-l2Xa2WvsdeOh60E3v1R2jis,11349
18
- dagstermill-0.22.14.dist-info/METADATA,sha256=Q6-w0gl7woH_RVZFFAeUArOK-FDnAk1HzTCEg0vwsdU,987
19
- dagstermill-0.22.14.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
20
- dagstermill-0.22.14.dist-info/entry_points.txt,sha256=885a7vvhABYWEj7W28elkzSmIcKO3REkdd5h4Z4DEJs,53
21
- dagstermill-0.22.14.dist-info/top_level.txt,sha256=YDelJKdA5YIIrjsObdd8U4E9YhuXJLRe9NKfUzud9Uc,12
22
- dagstermill-0.22.14.dist-info/RECORD,,
17
+ dagstermill-0.23.1.dist-info/LICENSE,sha256=TMatHW4_G9ldRdodEAp-l2Xa2WvsdeOh60E3v1R2jis,11349
18
+ dagstermill-0.23.1.dist-info/METADATA,sha256=xqJ2nNX92J09i26SMSRcggKeZzhiVAxmWBPXv2Gwo3Y,985
19
+ dagstermill-0.23.1.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
20
+ dagstermill-0.23.1.dist-info/entry_points.txt,sha256=885a7vvhABYWEj7W28elkzSmIcKO3REkdd5h4Z4DEJs,53
21
+ dagstermill-0.23.1.dist-info/top_level.txt,sha256=YDelJKdA5YIIrjsObdd8U4E9YhuXJLRe9NKfUzud9Uc,12
22
+ dagstermill-0.23.1.dist-info/RECORD,,