From 3c864443f66e17a07ed227f91df3491bdc935309 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Fri, 2 Jan 2026 17:01:35 +0100 Subject: [PATCH] Switch to `uv` --- .gitignore | 1 + README.md | 2 +- pyproject.toml | 19 +++++++++++++++++++ scripts/dev_env.sh | 11 ----------- 4 files changed, 21 insertions(+), 12 deletions(-) delete mode 100755 scripts/dev_env.sh diff --git a/.gitignore b/.gitignore index e5c4cd0..98f0638 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ __pycache__/ *.sublime-project build/ .venv +uv.lock diff --git a/README.md b/README.md index 4a1715c..7547d37 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ First, thanks for that! Here is how to start: - Register an account on our Gitlab [here](https://dev.gajim.org/users/sign_in) - Tell us about your plans at [gajim@conference.gajim.org](xmpp:gajim@conference.gajim.org?join) - Fork the Gajim-Plugins [repository](https://dev.gajim.org/gajim/gajim-plugins) -- Check `./scripts/dev_env.sh` to get a environment with dependencies installed +- To get a dev environment run `uv sync` - When you are finished, do a merge request against the main plugins repository. You can read about how to use git [here](https://dev.gajim.org/gajim/gajim/wikis/howtogit). - Additionally, there is a list of [plugin events](https://dev.gajim.org/gajim/gajim/wikis/development/pluginsevents) which might be helpful diff --git a/pyproject.toml b/pyproject.toml index c7f1451..d60ca1e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,22 @@ +[project] +name = "gajim-plugins" +requires-python = ">=3.11" +license = {text = "GPL-3.0-or-later"} +version = "0.0.1" + +[dependency-groups] +dev = [ + "codespell==2.4.1", + "gajim@git+https://dev.gajim.org/gajim/gajim.git", + "isort==7.0.0", + "nbxmpp@git+https://dev.gajim.org/gajim/python-nbxmpp.git", + "pre-commit", + "pygobject-stubs@git+https://github.com/pygobject/pygobject-stubs.git", + "python-gnupg>=0.5.6", + "rich>=14.2.0", + "ruff==0.14.8", +] + [tool.black] line-length = 88 target-version = ["py310", "py311", "py312"] diff --git a/scripts/dev_env.sh b/scripts/dev_env.sh deleted file mode 100755 index 52ba180..0000000 --- a/scripts/dev_env.sh +++ /dev/null @@ -1,11 +0,0 @@ -echo -e "\e[32mCreate virtualenv\e[0m" -python -m venv .venv -source .venv/bin/activate -echo -e "\e[32mInstall dependencies into virtualenv\e[0m" -pip install "PyGObject-stubs @ git+https://github.com/pygobject/pygobject-stubs.git" -pip install "gajim @ git+https://dev.gajim.org/gajim/gajim.git" -pip install pre-commit -pre-commit install -deactivate -echo -e "\e[32mFinshed\e[0m" -echo -e "\e[34mUse 'source .venv/bin/activate' to activate the virtualenv\e[0m"