remake 0.8.2__tar.gz → 0.8.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.
- {remake-0.8.2 → remake-0.8.3}/PKG-INFO +2 -1
- {remake-0.8.2 → remake-0.8.3}/pyproject.toml +1 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake/metadata/sqlite3_backend.py +22 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake/version.py +1 -1
- {remake-0.8.2 → remake-0.8.3}/src/remake.egg-info/PKG-INFO +2 -1
- {remake-0.8.2 → remake-0.8.3}/src/remake.egg-info/requires.txt +1 -0
- {remake-0.8.2 → remake-0.8.3}/LICENCE +0 -0
- {remake-0.8.2 → remake-0.8.3}/README.md +0 -0
- {remake-0.8.2 → remake-0.8.3}/setup.cfg +0 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake/__init__.py +0 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake/core/__init__.py +0 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake/core/dag.py +0 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake/core/exceptions.py +0 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake/core/planner.py +0 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake/core/remake.py +0 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake/core/rule.py +0 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake/core/scope.py +0 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake/core/task.py +0 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake/core/tokens.py +0 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake/executors/__init__.py +0 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake/executors/dask_executor.py +0 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake/executors/executor.py +0 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake/executors/multiproc_executor.py +0 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake/executors/singleproc_executor.py +0 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake/executors/slurm_executor.py +0 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake/loader/__init__.py +0 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake/metadata/__init__.py +0 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake/metadata/metadata_manager.py +0 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake/metadata/sidecar.py +0 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake/remake_cmd.py +0 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake/util/__init__.py +0 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake/util/code_compare.py +0 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake/util/colour.py +0 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake/util/command_line_args.py +0 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake/util/config.py +0 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake/util/util.py +0 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake.egg-info/SOURCES.txt +0 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake.egg-info/dependency_links.txt +0 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake.egg-info/entry_points.txt +0 -0
- {remake-0.8.2 → remake-0.8.3}/src/remake.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: remake
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.3
|
|
4
4
|
Summary: Smart remake tool
|
|
5
5
|
Author-email: Mark Muetzelfeldt <mark.muetzelfeldt@reading.ac.uk>
|
|
6
6
|
Maintainer-email: Mark Muetzelfeldt <mark.muetzelfeldt@reading.ac.uk>
|
|
@@ -237,6 +237,7 @@ Provides-Extra: examples
|
|
|
237
237
|
Requires-Dist: xarray>=2024.7.0; extra == "examples"
|
|
238
238
|
Requires-Dist: netcdf4>=1.7.2; extra == "examples"
|
|
239
239
|
Requires-Dist: h5netcdf; extra == "examples"
|
|
240
|
+
Requires-Dist: h5py; extra == "examples"
|
|
240
241
|
Requires-Dist: zarr<3; extra == "examples"
|
|
241
242
|
Requires-Dist: dask; extra == "examples"
|
|
242
243
|
Requires-Dist: pyyaml; extra == "examples"
|
|
@@ -147,6 +147,28 @@ class Sqlite3Backend(MetadataManager):
|
|
|
147
147
|
# task this invocation commits. See the `meta` table comment.
|
|
148
148
|
self._run_seq = None
|
|
149
149
|
|
|
150
|
+
def close(self):
|
|
151
|
+
self.conn.close()
|
|
152
|
+
|
|
153
|
+
# Unlike sqlite3.Connection's own `with` (transaction commit/rollback),
|
|
154
|
+
# this scopes the backend's lifetime: the connection closes on exit.
|
|
155
|
+
def __enter__(self):
|
|
156
|
+
return self
|
|
157
|
+
|
|
158
|
+
def __exit__(self, exc_type, exc_value, traceback):
|
|
159
|
+
self.close()
|
|
160
|
+
|
|
161
|
+
def __del__(self):
|
|
162
|
+
# sqlite3's finalizer emits a ResourceWarning for an unclosed
|
|
163
|
+
# connection at an arbitrary later gc point; close here so a backend
|
|
164
|
+
# that was never explicitly closed doesn't trip that.
|
|
165
|
+
conn = getattr(self, 'conn', None)
|
|
166
|
+
if conn is not None:
|
|
167
|
+
try:
|
|
168
|
+
conn.close()
|
|
169
|
+
except Exception:
|
|
170
|
+
pass
|
|
171
|
+
|
|
150
172
|
def _add_missing_columns(self):
|
|
151
173
|
"""Lightweight forward-compat for columns added after a DB was first
|
|
152
174
|
created (still no general migration support — see the module docstring).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: remake
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.3
|
|
4
4
|
Summary: Smart remake tool
|
|
5
5
|
Author-email: Mark Muetzelfeldt <mark.muetzelfeldt@reading.ac.uk>
|
|
6
6
|
Maintainer-email: Mark Muetzelfeldt <mark.muetzelfeldt@reading.ac.uk>
|
|
@@ -237,6 +237,7 @@ Provides-Extra: examples
|
|
|
237
237
|
Requires-Dist: xarray>=2024.7.0; extra == "examples"
|
|
238
238
|
Requires-Dist: netcdf4>=1.7.2; extra == "examples"
|
|
239
239
|
Requires-Dist: h5netcdf; extra == "examples"
|
|
240
|
+
Requires-Dist: h5py; extra == "examples"
|
|
240
241
|
Requires-Dist: zarr<3; extra == "examples"
|
|
241
242
|
Requires-Dist: dask; extra == "examples"
|
|
242
243
|
Requires-Dist: pyyaml; extra == "examples"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|