Switch to uv
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -12,3 +12,4 @@ __pycache__/
|
||||
*.sublime-project
|
||||
build/
|
||||
.venv
|
||||
uv.lock
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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"]
|
||||
|
||||
@@ -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"
|
||||
Reference in New Issue
Block a user