Skip to content

Commit e27619b

Browse files
author
Maharshi Gor
committed
Installing all the submititnow subpackages, Handling non default submititnow path. Bumping the version to 0.9.1
1 parent 6b18531 commit e27619b

4 files changed

Lines changed: 8 additions & 6 deletions

File tree

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
with open("README.md", "r", encoding="utf-8") as fh:
44
long_description = fh.read()
55

6+
packages = filter(lambda x: x.startswith("submititnow"), setuptools.find_packages())
7+
68
setuptools.setup(
79
name="submititnow",
8-
version="0.9.0",
10+
version="0.9.1",
911
author="Maharshi Gor",
1012
author_email="maharshigor@gmail.com",
1113
description="A package to make submitit easier to use",
@@ -16,7 +18,7 @@
1618
"Bug Tracker": "https://github.com/maharshi95/submititnow/issues",
1719
},
1820
license="MIT",
19-
packages=["submititnow"],
21+
packages=list(packages),
2022
scripts=["bin/jt", "bin/slaunch"],
2123
install_requires=[
2224
"submitit==1.4.5",

submititnow/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
get_slurm_params,
66
)
77

8-
__version__ = "0.9.0"
8+
__version__ = "0.9.1"

submititnow/experiment_lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def _assign_job(self, job: submitit.Job, description: str):
128128

129129
def _update_tracker(self, job, job_desc):
130130
job_start_time_str = str(_job_start_time(job)).split(".")[0]
131-
131+
self.tracker_file.parent.mkdir(parents=True, exist_ok=True)
132132
with open(self.tracker_file, "a") as fp:
133133
row_items = [
134134
job_start_time_str,

submititnow/jt/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
import pandas as pd
66

77

8-
__FALLBACK_SUBMITITNOW_DIR = os.path.expanduser("~/.submititnow")
8+
__FALLBACK_SUBMITITNOW_DIR = "~/.submititnow"
99

1010
SUBMITITNOW_ROOT_DIR = Path(
1111
os.environ.get("SUBMITITNOW_DIR", __FALLBACK_SUBMITITNOW_DIR)
12-
)
12+
).expanduser()
1313

1414
EXPERIMENTS_ROOT_DIR = SUBMITITNOW_ROOT_DIR / "experiments"
1515

0 commit comments

Comments
 (0)