From 82eb9a520351583a4460860d0a559c5aabceb806 Mon Sep 17 00:00:00 2001 From: Johannes Koester Date: Mon, 20 Nov 2023 14:10:52 +0000 Subject: [PATCH 1/2] use Mtime object for setting mtime in inventory --- snakemake_storage_plugin_fs/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/snakemake_storage_plugin_fs/__init__.py b/snakemake_storage_plugin_fs/__init__.py index 077aac1..ffa5201 100644 --- a/snakemake_storage_plugin_fs/__init__.py +++ b/snakemake_storage_plugin_fs/__init__.py @@ -21,6 +21,7 @@ from snakemake_interface_storage_plugins.io import ( IOCacheStorageInterface, get_constant_prefix, + Mtime, ) @@ -140,7 +141,7 @@ async def inventory(self, cache: IOCacheStorageInterface): lstat = self._stat(follow_symlinks=False) else: lstat = stat - cache.mtime[key] = lstat.st_mtime + cache.mtime[key] = Mtime(storage=lstat.st_mtime) cache.size[key] = stat.st_size cache.exists_in_storage[key] = True From 77b9ad5e64efb8e8b119447985f6e13e976c5ca6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 20 Nov 2023 17:33:19 +0100 Subject: [PATCH 2/2] chore(main): release 0.1.2 (#3) :robot: I have created a release *beep* *boop* --- ## [0.1.2](https://github.com/snakemake/snakemake-storage-plugin-fs/compare/v0.1.1...v0.1.2) (2023-11-20) ### Bug Fixes * create directory if not yet existing ([e8d959f](https://github.com/snakemake/snakemake-storage-plugin-fs/commit/e8d959faeea27face12dcb785679cfc7fa45595d)) * fix inventory ([25e56ba](https://github.com/snakemake/snakemake-storage-plugin-fs/commit/25e56ba4b4b5edf44c7838915b3b6ea6f2c95bb8)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 95ea9d4..8f1909d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [0.1.2](https://github.com/snakemake/snakemake-storage-plugin-fs/compare/v0.1.1...v0.1.2) (2023-11-20) + + +### Bug Fixes + +* create directory if not yet existing ([e8d959f](https://github.com/snakemake/snakemake-storage-plugin-fs/commit/e8d959faeea27face12dcb785679cfc7fa45595d)) +* fix inventory ([25e56ba](https://github.com/snakemake/snakemake-storage-plugin-fs/commit/25e56ba4b4b5edf44c7838915b3b6ea6f2c95bb8)) + ## [0.1.1](https://github.com/snakemake/snakemake-storage-plugin-fs/compare/v0.1.0...v0.1.1) (2023-11-17) diff --git a/pyproject.toml b/pyproject.toml index 1f0677b..f8cedf6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "snakemake-storage-plugin-fs" -version = "0.1.1" +version = "0.1.2" description = " A Snakemake storage plugin that reads and writes from a locally mounted filesystem using rsync" authors = ["Johannes Koester "] readme = "README.md"