From 54740c4e485924bf3ff4d2d07c97187560ecc6c8 Mon Sep 17 00:00:00 2001 From: Javier Luraschi Date: Fri, 12 Jul 2024 15:44:00 -0700 Subject: [PATCH] fix deployment from notebooks --- CHANGELOG.md | 4 ++++ python/hal9/targets/hal9.py | 3 ++- python/pyproject.toml | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 344aefcc..11321211 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.3.8 + +- Fix deployment from notebooks + ## 2.3.7 - Added `event` function to append application event diff --git a/python/hal9/targets/hal9.py b/python/hal9/targets/hal9.py index bd6891ca..aaec5845 100644 --- a/python/hal9/targets/hal9.py +++ b/python/hal9/targets/hal9.py @@ -44,6 +44,7 @@ def request_deploy(path :str, url :str, name :str, typename :str) -> str: 'content': encoded_content, 'type': typename, 'name': name, + 'format': 'b64', } headers = { @@ -62,7 +63,7 @@ def deploy(path :str, url :str, name :str, typename :str) -> str: if 'HAL9_TOKEN' in os.environ: hal9_token = os.environ['HAL9_TOKEN'] else: - exit(f'HAL9_TOKEN environment variable missing, see {url}/deploy') + exit(f'HAL9_TOKEN environment variable missing, see https://hal9.com/deploy') # hal9_token = browser_login() request_deploy(path, url, name, typename) diff --git a/python/pyproject.toml b/python/pyproject.toml index 520230e9..818d57d5 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "hal9" -version = "2.3.7" +version = "2.3.8" description = "" authors = ["Javier Luraschi "] readme = "README.md"