Skip to content

Commit a45f27d

Browse files
authored
[plugins] Make python, pip, and poetry plugins output to stderr (#1667)
1 parent 2c2d48b commit a45f27d

File tree

6 files changed

+7
-8
lines changed

6 files changed

+7
-8
lines changed

examples/development/python/poetry/poetry-demo/devbox.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"packages": {
44
55
"last_modified": "2023-05-19T19:44:39Z",
6-
"plugin_version": "0.0.2",
6+
"plugin_version": "0.0.3",
77
"resolved": "github:NixOS/nixpkgs/4a22f6f0a4b4354778f786425babce9a56f6b5d8#poetry",
88
"source": "devbox-search",
99
"version": "1.4.2",
@@ -24,7 +24,7 @@
2424
},
2525
2626
"last_modified": "2023-06-30T04:44:22Z",
27-
"plugin_version": "0.0.1",
27+
"plugin_version": "0.0.2",
2828
"resolved": "github:NixOS/nixpkgs/3c614fbc76fc152f3e1bc4b2263da6d90adf80fb#python38",
2929
"source": "devbox-search",
3030
"version": "3.8.17",

plugins/pip.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pip",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"readme": "This plugin adds a script for automatically creating a virtual environment using `venv` for python3 projects, so you can install packages with pip as normal.\nTo activate the environment, run `source $VENV_DIR/bin/activate` or add it to the init_hook of your devbox.json\nTo change where your virtual environment is created, modify the $VENV_DIR environment variable in your init_hook",
55
"env": {
66
"VENV_DIR": "{{ .Virtenv }}/.venv"

plugins/pip/venvShellHook.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ if ! [ -d "$VENV_DIR" ]; then
55
python3 -m venv "$VENV_DIR"
66
fi
77

8-
echo "You can activate the virtual environment by running 'source \$VENV_DIR/bin/activate'"
8+
echo "You can activate the virtual environment by running 'source \$VENV_DIR/bin/activate'" >&2

plugins/poetry.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "poetry",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"readme": "This plugin automatically configures poetry to use the version of python installed in your Devbox shell, instead of the Python version that it is bundled with. The pyproject.toml location can be configured by setting DEVBOX_PYPROJECT_DIR (defaults to the devbox.json's directory).",
55
"env": {
66
"DEVBOX_DEFAULT_PYPROJECT_DIR": "{{ .DevboxProjectDir }}",

plugins/poetry/initHook.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
#!/bin/sh
22

3-
poetry env use $(command -v python) --directory="${DEVBOX_PYPROJECT_DIR:-$DEVBOX_DEFAULT_PYPROJECT_DIR}" --no-interaction
4-
3+
poetry env use $(command -v python) --directory="${DEVBOX_PYPROJECT_DIR:-$DEVBOX_DEFAULT_PYPROJECT_DIR}" --no-interaction >&2

plugins/python.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "python",
3-
"version": "0.0.2",
3+
"version": "0.0.3",
44
"readme": "Python in Devbox works best when used with a virtual environment (vent, virtualenv, etc.). Devbox will automatically create a virtual environment using `venv` for python3 projects, so you can install packages with pip as normal.\nTo activate the environment, run `source $VENV_DIR/bin/activate` or add it to the init_hook of your devbox.json\nTo change where your virtual environment is created, modify the $VENV_DIR environment variable in your init_hook",
55
"env": {
66
"VENV_DIR": "{{ .Virtenv }}/.venv"

0 commit comments

Comments
 (0)