Skip to content
Snippets Groups Projects
Commit 599f3bb4 authored by François  LAURENT's avatar François LAURENT
Browse files

version increment

parent 0e842e4d
No related branches found
No related tags found
No related merge requests found
[tool.poetry] [tool.poetry]
name = "MaggotUBA-adapter" name = "MaggotUBA-adapter"
version = "0.12.1" version = "0.12.2"
description = "Interface between MaggotUBA and the Nyx tagging UI" description = "Interface between MaggotUBA and the Nyx tagging UI"
authors = ["François Laurent"] authors = ["François Laurent"]
license = "MIT" license = "MIT"
......
...@@ -6,14 +6,16 @@ ...@@ -6,14 +6,16 @@
rm -rf $(poetry env info -p) rm -rf $(poetry env info -p)
poetry env use python3.8 poetry env use python3.8
rm -f poetry.lock rm -f poetry.lock
poetry install -vvv poetry install -v
if [ "$(git branch --show-current)" = "design" ]; then if [ "$(git branch --show-current)" = "design" ]; then
# register the venv with Jupyter # register the venv with Jupyter
envname=$(basename $(poetry env info -p)) envname=$(basename $(poetry env info -p))
poetry run python -m ipykernel install --user --name $envname poetry run python -m ipykernel install --user --name $envname
sed -i "s|],|],\n \"env\": {\n \"JULIA_PROJECT\": \"$(realpath ../TaggingBackends)\"\n },|" ~/.local/share/jupyter/kernels/${envname,,}/kernel.json sed -i "s|],|],\n \"env\": {\n \"JULIA_PROJECT\": \"$(realpath ../TaggingBackends)\"\n },|" ~/.local/share/jupyter/kernels/${envname,,}/kernel.json
else
echo 'Note: only the "design" branch exports its environment as a kernel for Jupyter'
fi fi
# if pyproject.toml was not updated in the first place: # if pyproject.toml was not updated in the first place:
#poetry add ../TaggingBackends -vvv #poetry add ../TaggingBackends -v
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment