experimaestro 1.5.10__py3-none-any.whl → 1.5.13__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,11 @@
1
+ try:
2
+ from pathlib import Path, _posix_flavour
3
+ except ImportError:
4
+ # Avoids problem with python 3.12 where this module does not work
5
+ # anyways
6
+ _posix_flavour = None
7
+
1
8
  from dataclasses import dataclass
2
- from pathlib import Path, _posix_flavour
3
9
  import io
4
10
  import os
5
11
  import re
@@ -583,6 +583,9 @@ class ConfigInformation:
583
583
  # State information
584
584
  self.job = None
585
585
 
586
+ #: True when this configuration was loaded from disk
587
+ self.loaded = False
588
+
586
589
  # Explicitely added dependencies
587
590
  self.dependencies = []
588
591
 
@@ -846,8 +849,8 @@ class ConfigInformation:
846
849
  dependencies, path + ["__init_tasks__"], taskids
847
850
  )
848
851
 
849
- # Check for an associated task
850
- if self.task:
852
+ # Check for an associated task (and not loaded)
853
+ if self.task and not self.loaded:
851
854
  if id(self.task) not in taskids:
852
855
  taskids.add(id(self.task))
853
856
  dependencies.add(self.task.__xpm__.dependency())
@@ -1385,12 +1388,13 @@ class ConfigInformation:
1385
1388
  else:
1386
1389
  o.__init__()
1387
1390
  xpminfo = o.__xpm__ # type: ConfigInformation
1391
+ xpminfo.loaded = True
1388
1392
 
1389
1393
  meta = definition.get("meta", None)
1390
1394
  if meta:
1391
1395
  xpminfo._meta = meta
1392
1396
  if xpminfo.xpmtype.task is not None:
1393
- o.__xpm__.job = object()
1397
+ xpminfo.job = object()
1394
1398
 
1395
1399
  # Set the fields
1396
1400
  for name, value in definition["fields"].items():
@@ -1,14 +1,18 @@
1
+ import sys
2
+ import pytest
1
3
  from experimaestro.connectors.ssh import SshPath
2
4
 
3
5
  # --- Test SSH path and SSH path manipulation
4
6
 
5
7
 
8
+ @pytest.mark.skipif(sys.version_info >= (3, 12), reason="requires python3.10 or higher")
6
9
  def test_absolute():
7
10
  path = SshPath("ssh://host//a/path")
8
11
  assert path.host == "host"
9
12
  assert path.is_absolute()
10
13
 
11
14
 
15
+ @pytest.mark.skipif(sys.version_info >= (3, 12), reason="requires python3.10 or higher")
12
16
  def test_relative():
13
17
  path = SshPath("ssh://host")
14
18
  assert path.host == "host"
@@ -17,6 +21,7 @@ def test_relative():
17
21
  assert not path.is_absolute()
18
22
 
19
23
 
24
+ @pytest.mark.skipif(sys.version_info >= (3, 12), reason="requires python3.10 or higher")
20
25
  def test_relative_withpath():
21
26
  path = SshPath("ssh://host/relative/path")
22
27
  assert path.host == "host"
@@ -24,6 +29,7 @@ def test_relative_withpath():
24
29
  assert not path.is_absolute()
25
30
 
26
31
 
32
+ @pytest.mark.skipif(sys.version_info >= (3, 12), reason="requires python3.10 or higher")
27
33
  def test_relative_absolute():
28
34
  path = SshPath("ssh://host") / "/absolute/path"
29
35
  assert path.host == "host"
@@ -31,6 +37,7 @@ def test_relative_absolute():
31
37
  assert path.is_absolute()
32
38
 
33
39
 
40
+ @pytest.mark.skipif(sys.version_info >= (3, 12), reason="requires python3.10 or higher")
34
41
  def test_relative_compose():
35
42
  path = SshPath("ssh://host/abc") / "relative/path"
36
43
  assert path.host == "host"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: experimaestro
3
- Version: 1.5.10
3
+ Version: 1.5.13
4
4
  Summary: "Experimaestro is a computer science experiment manager"
5
5
  Home-page: https://github.com/experimaestro/experimaestro-python
6
6
  License: GPL-3
@@ -20,13 +20,13 @@ Classifier: Programming Language :: Python :: 3.9
20
20
  Classifier: Programming Language :: Python :: 3.10
21
21
  Classifier: Programming Language :: Python :: 3.11
22
22
  Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Programming Language :: Python :: 3.13
23
24
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
24
25
  Requires-Dist: arpeggio (>=2,<3)
25
26
  Requires-Dist: attrs (>=23.1.0,<24.0.0)
26
27
  Requires-Dist: click (>=8)
27
28
  Requires-Dist: decorator (>=5,<6)
28
29
  Requires-Dist: docstring-parser (>=0.15,<0.16)
29
- Requires-Dist: fabric (>=3,<4)
30
30
  Requires-Dist: fasteners (>=0.19,<0.20)
31
31
  Requires-Dist: flask (>=2.3,<3.0)
32
32
  Requires-Dist: flask-socketio (>=5.3,<6.0)
@@ -10,11 +10,11 @@ experimaestro/commandline.py,sha256=NS1ubme8DTJtDS2uWwdHLQiZsl6TSK1LkNxu39c3-cw,
10
10
  experimaestro/compat.py,sha256=dQqE2ZNHLM2wtdfp7fBRYMfC33qNehVf9J6FGRBUQhs,171
11
11
  experimaestro/connectors/__init__.py,sha256=hxcBSeVLk_7oyiIlS3l-9dGg1NGtShwvRD1tS7f8D2M,5461
12
12
  experimaestro/connectors/local.py,sha256=6tlaZb0tvNS2mjsapiVbfY7kIfLICJad137VXBMz-xo,5816
13
- experimaestro/connectors/ssh.py,sha256=88z0MYJl_K2jJTX5NBx4w5DJ_UGEbN40SPs2x9dfB-Q,8260
13
+ experimaestro/connectors/ssh.py,sha256=Jk-64rwfQ9Gs_cZ8O62YviJ3M2rLaHAln2A2hdAmMW8,8400
14
14
  experimaestro/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  experimaestro/core/arguments.py,sha256=dW32opqNEsULYr6nR7Zk8PqHsSCbLPclfXofw27GTpI,5620
16
16
  experimaestro/core/context.py,sha256=Q8_ngiHRBZ0laavXRJNiDvdCprrnROVTWaHfrwMdlG4,2638
17
- experimaestro/core/objects.py,sha256=vTp_zjBJlYEhe0u55erJ5X-Lc8UuTb45NIFwfVZCPes,64142
17
+ experimaestro/core/objects.py,sha256=M6g2f3klT0Z913yniwKBakChUKGnb2dOoW3hJHZi7do,64305
18
18
  experimaestro/core/objects.pyi,sha256=Adi2OKCW0-B9GROlEUgxxBDK6SHUqccTBHTofRRJE9M,7131
19
19
  experimaestro/core/serialization.py,sha256=9tg5ebLF3YeZ_zG9DiTHPLthppvo7io710ohD_dcLTo,3836
20
20
  experimaestro/core/serializers.py,sha256=R_CAMyjjfU1oi-eHU6VlEUixJpFayGqEPaYu7VsD9xA,1197
@@ -118,7 +118,7 @@ experimaestro/tests/test_param.py,sha256=FcRF8HbjoW96SR6cTW3fqracLM4BivAsTq0iZvl
118
118
  experimaestro/tests/test_progress.py,sha256=wtIGQzlV3ldd_wMng11LinVESchW-1J954mCJNlG28E,7580
119
119
  experimaestro/tests/test_serializers.py,sha256=xSCezAM9yH_Ix1wr7j0au9SyBv9DtZ7b0zs2-Ynt-VM,2338
120
120
  experimaestro/tests/test_snippets.py,sha256=rojnyDjtmAMnSuDUj6Bv9XEgdP8oQf2nVc132JF8vsM,3081
121
- experimaestro/tests/test_ssh.py,sha256=JhwsS4lJWQeMhtnDfJhQqJ5dwEThqvcNBBgUq1EWvk0,979
121
+ experimaestro/tests/test_ssh.py,sha256=KS1NWltiXrJBSStY9d4mwrexeqgNGWmhxuAU_WLQDAU,1449
122
122
  experimaestro/tests/test_tags.py,sha256=vfW99iFfw3m-pcJPy_-mtZsWbAt_Xw5k-u3dWoJbRWw,2921
123
123
  experimaestro/tests/test_tasks.py,sha256=bUSB_UT1MTN2P_RPHd4AT5NK-DFsgCVeFKSiXu3bEz8,9429
124
124
  experimaestro/tests/test_tokens.py,sha256=cW9qQU4PhbQY4_SgK8ICmKcYq8JVvLRTOYZzdtoS5N8,7826
@@ -139,8 +139,8 @@ experimaestro/utils/jupyter.py,sha256=JcEo2yQK7x3Cr1tNl5FqGMZOICxCv9DwMvL5xsWdQP
139
139
  experimaestro/utils/resources.py,sha256=MaCQL9dLfze3lwyuBVeWF7Ki5fFSE1F0BGWrfaaHi1I,1135
140
140
  experimaestro/utils/settings.py,sha256=jpFMqF0DLL4_P1xGal0zVR5cOrdD8O0Y2IOYvnRgN3k,793
141
141
  experimaestro/xpmutils.py,sha256=S21eMbDYsHfvmZ1HmKpq5Pz5O-1HnCLYxKbyTBbASyQ,638
142
- experimaestro-1.5.10.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
143
- experimaestro-1.5.10.dist-info/METADATA,sha256=98TsVdWS-8gKbvEs29VSbqDjboe3FiI-ohOc58Y68n0,6266
144
- experimaestro-1.5.10.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
145
- experimaestro-1.5.10.dist-info/entry_points.txt,sha256=TppTNiz5qm5xm1fhAcdLKdCLMrlL-eQggtCrCI00D9c,446
146
- experimaestro-1.5.10.dist-info/RECORD,,
142
+ experimaestro-1.5.13.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
143
+ experimaestro-1.5.13.dist-info/METADATA,sha256=d18r9gMm58VlznetLeNun9NDyb86WN6ZCEFSunRdFEg,6286
144
+ experimaestro-1.5.13.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
145
+ experimaestro-1.5.13.dist-info/entry_points.txt,sha256=TppTNiz5qm5xm1fhAcdLKdCLMrlL-eQggtCrCI00D9c,446
146
+ experimaestro-1.5.13.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.9.0
2
+ Generator: poetry-core 1.9.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any