experimaestro 1.7.0rc0__py3-none-any.whl → 1.7.0rc1__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 experimaestro might be problematic. Click here for more details.

@@ -1,5 +1,6 @@
1
1
  # Configuration registers
2
2
 
3
+ from contextlib import contextmanager
3
4
  from typing import ClassVar, Dict, Optional, Set, Type, Union
4
5
 
5
6
  from pathlib import Path
@@ -36,6 +37,16 @@ def load_yaml(schema, path: Path):
36
37
  )
37
38
 
38
39
 
40
+ @contextmanager
41
+ def ensure_enter(fp):
42
+ """Behaves as a resource, whether it is one or not"""
43
+ if hasattr(fp, "__enter__"):
44
+ with fp as _fp:
45
+ yield _fp
46
+ else:
47
+ yield fp
48
+
49
+
39
50
  class LauncherRegistry:
40
51
  INSTANCES: ClassVar[Dict[Path, "LauncherRegistry"]] = {}
41
52
  CURRENT_CONFIG_DIR: ClassVar[Optional[Path]] = None
@@ -78,7 +89,7 @@ class LauncherRegistry:
78
89
 
79
90
  from importlib import util
80
91
 
81
- with launchers_py.__fspath__() as fp:
92
+ with ensure_enter(launchers_py.__fspath__()) as fp:
82
93
  spec = util.spec_from_file_location("xpm_launchers_conf", fp)
83
94
  module = util.module_from_spec(spec)
84
95
  spec.loader.exec_module(module)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: experimaestro
3
- Version: 1.7.0rc0
3
+ Version: 1.7.0rc1
4
4
  Summary: "Experimaestro is a computer science experiment manager"
5
5
  License: GPL-3
6
6
  Keywords: experiment manager
@@ -30,7 +30,7 @@ experimaestro/ipc.py,sha256=Xn3tYME83jLEB0nFak3DwEIhpL5IRZpCl3jirBF_jl4,1570
30
30
  experimaestro/launcherfinder/__init__.py,sha256=qRUDyv3B9UsAM8Q31mRrZrTZox0AptwdmOY4f2K-TUo,279
31
31
  experimaestro/launcherfinder/base.py,sha256=q47SsF_cXdo5O6ZhFKn5385WVFcx8Wd-BcEpd6tRpbs,515
32
32
  experimaestro/launcherfinder/parser.py,sha256=pYbfEJw7osnqZWm7fkVhQawhpNU8dLU_6vEjtXdc8E8,2279
33
- experimaestro/launcherfinder/registry.py,sha256=Eng8Y-EnHhcqWfMGF2kvBo7OJiWVuQsIH9MAqjih12U,5849
33
+ experimaestro/launcherfinder/registry.py,sha256=5KKElGd9aS1gegx-A6JVXL-LACk02wFVQxeUIEbZfUc,6105
34
34
  experimaestro/launcherfinder/specs.py,sha256=G8za6mEmkVxuZY_ab3OhWJIpONpcBMO_iXeB30sUbhI,6448
35
35
  experimaestro/launchers/__init__.py,sha256=lXn544sgJExr6uirILWzAXu_IfmfyqFZOt4OzRnjHXg,2525
36
36
  experimaestro/launchers/direct.py,sha256=JZh6WOPnO6ED_xlOs8pL4MRFmnRhmXzpVxTl-ByaD2A,258
@@ -146,8 +146,8 @@ experimaestro/utils/jupyter.py,sha256=JcEo2yQK7x3Cr1tNl5FqGMZOICxCv9DwMvL5xsWdQP
146
146
  experimaestro/utils/resources.py,sha256=j-nvsTFwmgENMoVGOD2Ap-UD3WU85WkI0IgeSszMCX4,1328
147
147
  experimaestro/utils/settings.py,sha256=jpFMqF0DLL4_P1xGal0zVR5cOrdD8O0Y2IOYvnRgN3k,793
148
148
  experimaestro/xpmutils.py,sha256=S21eMbDYsHfvmZ1HmKpq5Pz5O-1HnCLYxKbyTBbASyQ,638
149
- experimaestro-1.7.0rc0.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
150
- experimaestro-1.7.0rc0.dist-info/METADATA,sha256=GSilZL53OZQGs3cwGv3lzBiUnZCGyFJV2fgtm8XW_w4,6162
151
- experimaestro-1.7.0rc0.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
152
- experimaestro-1.7.0rc0.dist-info/entry_points.txt,sha256=TppTNiz5qm5xm1fhAcdLKdCLMrlL-eQggtCrCI00D9c,446
153
- experimaestro-1.7.0rc0.dist-info/RECORD,,
149
+ experimaestro-1.7.0rc1.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
150
+ experimaestro-1.7.0rc1.dist-info/METADATA,sha256=xv07Jc7Dhk36yumtOA37L5NXRYARbjccrB22svH59G0,6162
151
+ experimaestro-1.7.0rc1.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
152
+ experimaestro-1.7.0rc1.dist-info/entry_points.txt,sha256=TppTNiz5qm5xm1fhAcdLKdCLMrlL-eQggtCrCI00D9c,446
153
+ experimaestro-1.7.0rc1.dist-info/RECORD,,