Skip to content

Commit ae052fe

Browse files
committed
explicitly specify datadots-api requirement
1 parent c5d906f commit ae052fe

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

dotscience/__init__.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ def publish(self, description=None, stream=sys.stdout, build=False, deploy=False
368368

369369
def _publish_remote_run(self, build, deploy):
370370
ret = {}
371-
print("\n=== Dotscience publish ===\n")
371+
print("\n=== Dotscience remote publish ===\n")
372372
# - Upload output files via S3 API in a tar stream
373373
# TODO: maybe don't upload all output files, only ones tagged as model?
374374

@@ -637,14 +637,10 @@ def _initiate_build(self, model_id):
637637

638638

639639
def _build_docker_image_on_hub(self):
640-
641640
# find model id
642641
model_id = self._find_model_id(self.currentRun._id)
643-
644642
build = self._initiate_build(model_id)
645-
646643
self._docker_image = build["image_name"]
647-
648644
attempt = 0
649645
the_exc = None
650646
while attempt < 120:
@@ -662,8 +658,6 @@ def _build_docker_image_on_hub(self):
662658
print(".", end="")
663659
sys.stdout.flush()
664660
time.sleep(1.0)
665-
if build is not None:
666-
print("BUILD:", build)
667661
if build is not None and build["status"] == "failed":
668662
raise Exception("Build failed: %s", build)
669663
if attempt == 60:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
long_description_content_type="text/markdown",
1616
url="https://github.com/dotmesh-io/dotscience-python",
1717
packages=setuptools.find_packages(),
18-
install_requires=['jsonrpcclient[requests]', 'requests'],
18+
install_requires=['jsonrpcclient[requests]', 'requests', 'datadots-api>=0.2.1'],
1919
tests_require=['pytest', 'hypothesis'],
2020
zip_safe=True,
2121
classifiers=[

0 commit comments

Comments
 (0)