Skip to content

Commit a280db6

Browse files
authored
Remove debug prints (bump to 0.4.4) (#86)
1 parent e608fb0 commit a280db6

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

exca/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
from .task import SubmitInfra as SubmitInfra
1313
from .task import TaskInfra as TaskInfra
1414

15-
__version__ = "0.4.3"
15+
__version__ = "0.4.4"

exca/workdir.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,10 @@ def identify_path(name: str | Path) -> Path:
167167
"""
168168
# local files or folder get precedence
169169
folders = ["."] + os.environ.get("PYTHONPATH", "").split(os.pathsep)
170-
print("ckpt1")
171170
for folder in folders:
172171
fp = Path(folder) / name
173172
if fp.exists():
174-
print("Exists", fp)
175173
return fp.absolute()
176-
print("ckpt1")
177174
# otherwise check for editable installations
178175
try:
179176
pdistrib = metadata.Distribution.from_name(str(name))
@@ -185,7 +182,6 @@ def identify_path(name: str | Path) -> Path:
185182
direct_url_json = pdistrib.read_text("direct_url.json")
186183
if direct_url_json is None: # folder
187184
raise ValueError(f"Package {name} has not been installed from source")
188-
print("ckpt2")
189185
direct_url = json.loads(direct_url_json)
190186
pkg_is_editable = direct_url.get("dir_info", {}).get("editable", False)
191187
if not pkg_is_editable:
@@ -194,7 +190,6 @@ def identify_path(name: str | Path) -> Path:
194190
url = direct_url["url"]
195191
if not url.startswith(tag):
196192
raise ValueError("Package url {url} for {name} is not local")
197-
print("ckpt3")
198193
fp = Path(url[len(tag) :]) / name
199194
if not fp.exists():
200195
raise ValueError(f"Expected to copy {fp} but there's nothing there")

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "exca"
33
readme = "README.md"
44
authors = [{name = "Meta FAIR"}]
55
requires-python = ">=3.10"
6-
version = "0.4.3"
6+
version = "0.4.4"
77
description = "Execution and caching tool for python"
88

99
dependencies = [

0 commit comments

Comments
 (0)