Skip to content

Commit

Permalink
more stable atlaskit download url
Browse files Browse the repository at this point in the history
  • Loading branch information
adonm authored Dec 1, 2023
1 parent 1b60cda commit 5956cc3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nbdev_squ/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.2.6"
__version__ = "1.2.7"
2 changes: 1 addition & 1 deletion nbdev_squ/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def atlaskit_transformer(inputtext, inputfmt="md", outputfmt="wiki", runtime="no
import nbdev_squ
transformer = dirs.user_cache_path / f"atlaskit-transformer.bundle_v{nbdev_squ.__version__}.js"
if not transformer.exists():
transformer_url = f'{nbdev_squ._modidx.d["settings"]["git_url"]}/releases/download/v{nbdev_squ.__version__}/atlaskit-transformer.bundle.js'
transformer_url = f'https://github.com/wagov/nbdev-squ/releases/download/v{nbdev_squ.__version__}/atlaskit-transformer.bundle.js'
transformer.write_bytes(requests.get(transformer_url).content)
cmd = [runtime, str(transformer), inputfmt, outputfmt]
logger.debug(" ".join(cmd))
Expand Down
2 changes: 1 addition & 1 deletion nbs/01_api.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@
" import nbdev_squ\n",
" transformer = dirs.user_cache_path / f\"atlaskit-transformer.bundle_v{nbdev_squ.__version__}.js\"\n",
" if not transformer.exists():\n",
" transformer_url = f'{nbdev_squ._modidx.d[\"settings\"][\"git_url\"]}/releases/download/v{nbdev_squ.__version__}/atlaskit-transformer.bundle.js'\n",
" transformer_url = f'https://github.com/wagov/nbdev-squ/releases/download/v{nbdev_squ.__version__}/atlaskit-transformer.bundle.js'\n",
" transformer.write_bytes(requests.get(transformer_url).content)\n",
" cmd = [runtime, str(transformer), inputfmt, outputfmt]\n",
" logger.debug(\" \".join(cmd))\n",
Expand Down
2 changes: 1 addition & 1 deletion settings.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[DEFAULT]
repo = nbdev-squ
lib_name = nbdev-squ
version = 1.2.6
version = 1.2.7
min_python = 3.10
license = apache2
black_formatting = False
Expand Down

0 comments on commit 5956cc3

Please sign in to comment.