Skip to content

Commit df187b9

Browse files
djgokuLagoja
andauthored
Chore/switch pip plugin reference to python (#2265)
## Summary Remove pip plugin and use Python plugin. ## How was it tested? `devbox run lint` `devbox run test` `go mod tidy` `devbox shell` testing new python plugin (`cp plugins/python.json plugins/plugin.json` and add `"include": ["path:./plugins/"],` to devbox.json. Though this is the output I got (not the Poetry message): ``` devbox % ./dist/devbox shell Info: Ensuring packages are installed. ✓ Computed the Devbox environment. Starting a devbox shell... Virtual environment directory doesn't exist. Creating new one... Poetry could not find a pyproject.toml file in /Users/dj_goku/dev/github/djgoku/devbox or its parents ``` --------- Co-authored-by: John Lago <[email protected]>
1 parent d1ab641 commit df187b9

File tree

4 files changed

+4
-21
lines changed

4 files changed

+4
-21
lines changed

docs/app/docs/guides/plugins.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Built-in plugins are available for the following packages. You can activate the
3232
* [Redis](../devbox_examples/databases/redis.md) (redis)
3333
* [Valkey](../devbox_examples/databases/valkey.md) (valkey)
3434
* [PHP](../devbox_examples/languages/php.md) (php, php80, php81, php82...)
35-
* [Pip](../devbox_examples/languages/python.md) (python39Packages.pip, python310Packages.pip, python311Packages.pip...)
35+
* [Python](../devbox_examples/languages/python.md) (python, python-full, python-minimal...)
3636
* [Ruby](../devbox_examples/languages/ruby.md)(ruby, ruby_3_1, ruby_3_0...)
3737

3838

@@ -163,4 +163,3 @@ Developers should directly edit helper files and check them into source control
163163
## Plugins Source Code
164164

165165
Devbox Plugins are written in JSON and stored in the main Devbox Repo. You can view the source code of the current plugins [here](https://github.com/jetify-com/devbox/tree/main/plugins)
166-

plugins/pip.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

plugins/python.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
"version": "0.0.4",
44
"description": "Python in Devbox works best when used with a virtual environment (venv, 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 `. $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": {
6-
"VENV_DIR": "{{ .DevboxProjectDir }}/.venv"
6+
"VENV_DIR": "{{ .DevboxProjectDir }}/.venv",
7+
"UV_PYTHON": "{{ .DevboxProjectDir }}/.devbox/nix/profile/default/bin/python"
78
},
89
"create_files": {
9-
"{{ .Virtenv }}/bin/venvShellHook.sh": "pip/venvShellHook.sh"
10+
"{{ .Virtenv }}/bin/venvShellHook.sh": "python/venvShellHook.sh"
1011
},
1112
"shell": {
1213
"init_hook": ["{{ .Virtenv }}/bin/venvShellHook.sh"]
File renamed without changes.

0 commit comments

Comments
 (0)