ci: Add dev_env.sh

This commit is contained in:
wurstsalat
2024-05-19 14:55:40 +02:00
parent f9d1eaaf26
commit addc9abf76
2 changed files with 9 additions and 0 deletions

1
.gitignore vendored
View File

@@ -11,3 +11,4 @@ __pycache__/
*.sublime-workspace
*.sublime-project
build/
.venv

8
scripts/dev_env.sh Executable file
View File

@@ -0,0 +1,8 @@
echo -e "\e[32mCreate virtualenv\e[0m"
python -m venv .venv
source .venv/bin/activate
echo -e "\e[32mInstall dependencies into virtualenv\e[0m"
PYGOBJECT_STUB_CONFIG=Gtk3,Gdk3,Soup3,GtkSource4 pip install "rich" "ruff>=0.3.2" "codespell[toml]>=2.2.6" "isort>=5.13.2" "PyGObject-stubs @ git+https://github.com/pygobject/pygobject-stubs.git" "gajim @ git+https://dev.gajim.org/gajim/gajim.git"
deactivate
echo -e "\e[32mFinshed\e[0m"
echo -e "\e[34mUse 'source .venv/bin/activate' to activate the virtualenv\e[0m"