fmu-settings 0.5.2__py3-none-any.whl → 0.5.3__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 fmu-settings might be problematic. Click here for more details.
- fmu/settings/_resources/lock_manager.py +5 -1
- fmu/settings/_version.py +2 -2
- {fmu_settings-0.5.2.dist-info → fmu_settings-0.5.3.dist-info}/METADATA +1 -1
- {fmu_settings-0.5.2.dist-info → fmu_settings-0.5.3.dist-info}/RECORD +7 -7
- {fmu_settings-0.5.2.dist-info → fmu_settings-0.5.3.dist-info}/WHEEL +0 -0
- {fmu_settings-0.5.2.dist-info → fmu_settings-0.5.3.dist-info}/licenses/LICENSE +0 -0
- {fmu_settings-0.5.2.dist-info → fmu_settings-0.5.3.dist-info}/top_level.txt +0 -0
|
@@ -32,6 +32,10 @@ class LockError(Exception):
|
|
|
32
32
|
"""Raised when the lock cannot be acquired."""
|
|
33
33
|
|
|
34
34
|
|
|
35
|
+
class LockNotFoundError(FileNotFoundError):
|
|
36
|
+
"""Raised when the lock cannot be found."""
|
|
37
|
+
|
|
38
|
+
|
|
35
39
|
class LockManager(PydanticResourceManager[LockInfo]):
|
|
36
40
|
"""Manages the .lock file."""
|
|
37
41
|
|
|
@@ -196,7 +200,7 @@ class LockManager(PydanticResourceManager[LockInfo]):
|
|
|
196
200
|
if not self.exists:
|
|
197
201
|
if self.is_acquired():
|
|
198
202
|
self.release()
|
|
199
|
-
raise
|
|
203
|
+
raise LockNotFoundError("Cannot refresh: lock file does not exist")
|
|
200
204
|
|
|
201
205
|
lock_info = self._safe_load()
|
|
202
206
|
if not lock_info or not self._is_mine(lock_info):
|
fmu/settings/_version.py
CHANGED
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '0.5.
|
|
32
|
-
__version_tuple__ = version_tuple = (0, 5,
|
|
31
|
+
__version__ = version = '0.5.3'
|
|
32
|
+
__version_tuple__ = version_tuple = (0, 5, 3)
|
|
33
33
|
|
|
34
34
|
__commit_id__ = commit_id = None
|
|
@@ -4,12 +4,12 @@ fmu/settings/_fmu_dir.py,sha256=XeZjec78q0IUOpBq-VMkKoWtzXwBeQi2qWRIh_SIFwU,1085
|
|
|
4
4
|
fmu/settings/_global_config.py,sha256=C0_o99OhOc49ynz4h6ygbbHHH8OOI5lcVFr-9FCwD0c,9331
|
|
5
5
|
fmu/settings/_init.py,sha256=ucueS0BlEsM3MkX7IaRISloH4vF7-_ZKSphrORbHgJ4,4381
|
|
6
6
|
fmu/settings/_logging.py,sha256=nEdmZlNCBsB1GfDmFMKCjZmeuRp3CRlbz1EYUemc95Y,1104
|
|
7
|
-
fmu/settings/_version.py,sha256=
|
|
7
|
+
fmu/settings/_version.py,sha256=EWl7XaGZUG57Di8WiRltpKAkwy1CShJuJ-i6_rAPr-w,704
|
|
8
8
|
fmu/settings/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
9
|
fmu/settings/types.py,sha256=aeXEsznBTT1YRRY_LSRqK1j2gmMmyLYYTGYl3a9fweU,513
|
|
10
10
|
fmu/settings/_resources/__init__.py,sha256=LHYR_F7lNGdv8N6R3cEwds5CJQpkOthXFqsEs24vgF8,118
|
|
11
11
|
fmu/settings/_resources/config_managers.py,sha256=QcCLlSw8KdJKrkhGax5teFJzjgQG3ym7Ljs1DykjFbc,1570
|
|
12
|
-
fmu/settings/_resources/lock_manager.py,sha256=
|
|
12
|
+
fmu/settings/_resources/lock_manager.py,sha256=1LL4FUBwvIIzBz5YXC0eoqdGUizVN5ZKwx_8CbwTudU,10163
|
|
13
13
|
fmu/settings/_resources/pydantic_resource_manager.py,sha256=BUWO6IHSoT0Ma6QgseweEf7uiGeMwHBEoCyGYPYYFdA,9290
|
|
14
14
|
fmu/settings/models/__init__.py,sha256=lRlXgl55ba2upmDzdvzx8N30JMq2Osnm8aa_xxTZn8A,112
|
|
15
15
|
fmu/settings/models/_enums.py,sha256=SQUZ-2mQcTx4F0oefPFfuQzMKsKTSFSB-wq_CH7TBRE,734
|
|
@@ -17,8 +17,8 @@ fmu/settings/models/_mappings.py,sha256=Z4Ex7MtmajBr6FjaNzmwDRwtJlaZZ8YKh9NDmZHR
|
|
|
17
17
|
fmu/settings/models/lock_info.py,sha256=-oHDF9v9bDLCoFvEg4S6XXYLeo19zRAZ8HynCv75VWg,711
|
|
18
18
|
fmu/settings/models/project_config.py,sha256=pxb54JmpXNMVAFUu_yJ89dNrYEk6hrPuFfFUpf84Jh0,1099
|
|
19
19
|
fmu/settings/models/user_config.py,sha256=dWFTcZY6UnEgNTuGqB-izraJ657PecsW0e0Nt9GBDhI,2666
|
|
20
|
-
fmu_settings-0.5.
|
|
21
|
-
fmu_settings-0.5.
|
|
22
|
-
fmu_settings-0.5.
|
|
23
|
-
fmu_settings-0.5.
|
|
24
|
-
fmu_settings-0.5.
|
|
20
|
+
fmu_settings-0.5.3.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
21
|
+
fmu_settings-0.5.3.dist-info/METADATA,sha256=MA3zZ6GPHQ0bJtHnAcCINEuDnaJtDRHT0E0SrmGu-cg,2116
|
|
22
|
+
fmu_settings-0.5.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
23
|
+
fmu_settings-0.5.3.dist-info/top_level.txt,sha256=Z-FIY3pxn0UK2Wxi9IJ7fKoLSraaxuNGi1eokiE0ShM,4
|
|
24
|
+
fmu_settings-0.5.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|