From 6e20aa3060ab5429d29c36b4f565882aa0a617b8 Mon Sep 17 00:00:00 2001 From: Jason Nance Date: Fri, 28 Aug 2020 09:22:26 -0400 Subject: [PATCH 1/2] Fix Unix-specific code to get directory creation time --- gobbli/interactive/util.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gobbli/interactive/util.py b/gobbli/interactive/util.py index f5ab7d4..2785ef5 100644 --- a/gobbli/interactive/util.py +++ b/gobbli/interactive/util.py @@ -325,7 +325,13 @@ def format_task(task_dir: Path) -> str: String-formatted, human-readable task metadata. """ task_id = task_dir.name - task_creation_time = dt.datetime.fromtimestamp(task_dir.stat().st_birthtime) + try: + # Should work on OS X, Linux + task_creation_ts = task_dir.stat().st_birthtime + except AttributeError: + # Should work on Windows + task_creation_ts = task_dir.stat().st_ctime + task_creation_time = dt.datetime.fromtimestamp(task_creation_ts) return f"{task_id[:5]} - Created {task_creation_time.strftime('%Y-%m-%d %H:%M:%S')}" From 4717ac9da72baae3b4c872b23f97701e9caf85aa Mon Sep 17 00:00:00 2001 From: Jason Nance Date: Fri, 28 Aug 2020 13:48:17 -0400 Subject: [PATCH 2/2] Bump version number --- meta.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta.json b/meta.json index 640ac1a..d055b59 100644 --- a/meta.json +++ b/meta.json @@ -4,6 +4,6 @@ "download_url": "", "author": "RTI International", "maintainer": "Jason Nance", - "version": "0.2.2", + "version": "0.2.3", "description": "Uniform interface to deep learning approaches via Docker containers." }