Skip to content

Commit 9b79ad3

Browse files
committed
fixies + update latch_persistence
Signed-off-by: Ayush Kamat <[email protected]>
1 parent 8fccd7b commit 9b79ad3

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
**/__pycache__
33
tests/*
44
!tests/Snakefile
5+
credentials
6+
dist

Justfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@build:
2+
rm -rf dist
3+
poetry build
4+
5+
@publish:
6+
poetry publish -u __token__ -p "$(<credentials/pypi_token)"
7+
rm -rf dist

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[tool.poetry]
22
name = "snakemake-storage-plugin-latch"
3-
version = "0.1.4"
3+
version = "0.1.8"
44
description = ""
55
authors = ["Ayush Kamat <[email protected]>"]
66
readme = "README.md"
77

88
[tool.poetry.dependencies]
99
python = ">=3.11,<4.0"
1010
snakemake-interface-storage-plugins = "^3.3.0"
11-
latch-persistence = "^0.1.0"
11+
latch-persistence = "^0.1.1"
1212
gql = "^3.5.0"
1313
python-dateutil = "^2.9.0.post0"
1414
requests-toolbelt = "^1.0.0"

snakemake_storage_plugin_latch/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import os
22
import re
3-
import traceback
43
from dataclasses import dataclass
5-
from pathlib import Path, PosixPath
4+
from pathlib import Path
65
from typing import Any, Iterable, List, Optional, cast
76
from urllib.parse import urlparse
87

@@ -277,7 +276,7 @@ def local_suffix(self) -> str:
277276
if self.is_remote:
278277
return self.path.local_suffix()
279278

280-
return self.path.resolve()
279+
return str(self.path.resolve())
281280

282281
def cleanup(self):
283282
"""Perform local cleanup of any remainders of the storage object."""

0 commit comments

Comments
 (0)