File tree Expand file tree Collapse file tree 7 files changed +307
-367
lines changed Expand file tree Collapse file tree 7 files changed +307
-367
lines changed Original file line number Diff line number Diff line change @@ -19,17 +19,21 @@ jobs:
19
19
20
20
- name : Install GTK deps
21
21
run : |
22
- sudo apt install libgirepository1.0-dev gcc libgtk-4-dev -y
22
+ sudo apt install libgirepository1.0-dev libcairo2-dev gcc libgtk-4-dev -y
23
23
24
- - name : Install Poetry and Deps
25
- run : |
26
- python -m pip install --upgrade pip
27
- pip install poetry && poetry --version
28
- poetry install --with dev
24
+ - name : Install uv
25
+ uses : astral-sh/setup-uv@v4
26
+ with :
27
+ enable-cache : true
28
+ cache-dependency-glob : " uv.lock"
29
+ python-version : ${{ matrix.python-version }}
30
+
31
+ - name : Install the dependencies
32
+ run : uv sync --all-extras --dev
29
33
30
34
- name : Run Pyinstaller
31
35
run : |
32
- poetry run pyinstaller keyboard.spec
36
+ uv run pyinstaller keyboard.spec
33
37
version=$(ldd --version | head -n 1 | awk '{print $NF}')
34
38
pyversion=$(python --version 2>&1 | awk '{print $2}')
35
39
mv ./dist/keyboard ./dist/virtual-keyboard-py$pyversion-glib$version-x86_64
Original file line number Diff line number Diff line change @@ -23,19 +23,23 @@ jobs:
23
23
24
24
- name : Install GTK deps
25
25
run : |
26
- sudo apt install libgirepository1.0 -dev -y
26
+ sudo apt install libgirepository-1.0-dev libcairo2 -dev -y
27
27
28
- - name : Install Poetry and Deps
29
- run : |
30
- python -m pip install --upgrade pip
31
- pip install poetry && poetry --version
32
- poetry install --with dev
28
+ - name : Install uv
29
+ uses : astral-sh/setup-uv@v4
30
+ with :
31
+ enable-cache : true
32
+ cache-dependency-glob : " uv.lock"
33
+ python-version : ${{ matrix.python-version }}
34
+
35
+ - name : Install the dependencies
36
+ run : uv sync --all-extras --dev
33
37
34
38
- name : Ruff Format/Lint
35
39
run : |
36
- poetry run ruff format --check
37
- poetry run ruff check
40
+ uv run ruff format --check
41
+ uv run ruff check
38
42
39
43
- name : Run Pytest
40
44
run : |
41
- poetry run coverage run -m pytest -v && poetry run coverage report -m
45
+ uv run coverage run -m pytest -v && uv run coverage report -m
Original file line number Diff line number Diff line change
1
+ 3.12
Original file line number Diff line number Diff line change @@ -16,20 +16,18 @@ I have been inspired by [this website](https://www.branah.com/) in my trilingual
16
16
- GTK (>=4) download [ here] ( https://gnome.pages.gitlab.gnome.org/pygobject/getting_started.html )
17
17
- Sarabun font download [ here] ( https://fonts.google.com/specimen/Sarabun )
18
18
19
- Note: please don't do global system installation of python dependencies through pip, poetry can install it safely for you
20
-
21
19
Run with python
22
20
23
21
``` shell
24
- poetry shell && poetry install
22
+ uv sync
25
23
python ./keyboard.py
26
24
```
27
25
28
26
Or roll your own binary
29
27
30
28
``` shell
31
- poetry shell && poetry install --with dev
32
- poetry run pyinstaller keyboard.spec
29
+ uv sync --all-extras -- dev
30
+ uv run pyinstaller keyboard.spec
33
31
./dist/keyboard
34
32
```
35
33
@@ -64,3 +62,7 @@ No, please use up-to-date software
64
62
- [X] Add sub-menu to pick target languages
65
63
- [X] Key Event presses follows target language mapping
66
64
- [X] Port it to GTK 4
65
+
66
+ ### References
67
+
68
+ - [ PyGObject Docs] ( https://amolenaar.pages.gitlab.gnome.org/pygobject-docs/index.html )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- [tool . poetry ]
1
+ [project ]
2
2
name = " virtual-keyboard"
3
- version = " 0.0.1 "
3
+ version = " 0.0.5 "
4
4
description = " on-screen keyboard to help typing faster internationally"
5
5
authors = [
" F. Talha Altinel <[email protected] >" ]
6
6
license = " MIT"
7
7
readme = " README.md"
8
+ requires-python = " >=3.12"
9
+ dependencies = [
10
+ " pygobject>=3.50.0" ,
11
+ ]
8
12
9
- [tool .poetry .dependencies ]
10
- python = " >=3.11,<3.13"
11
- PyGObject = " ^3.46.0"
13
+ [dependency-groups ]
14
+ dev = [
15
+ " coverage>=7.6.9" ,
16
+ " pygobject-stubs>=2.12.0" ,
17
+ " pyinstaller>=6.11.1" ,
18
+ " pytest>=8.3.4" ,
19
+ " ruff>=0.8.4" ,
20
+ ]
12
21
13
22
[tool .ruff ]
14
23
line-length = 180
15
24
16
25
[tool .ruff .lint ]
17
26
ignore = [" E402" ]
18
-
19
-
20
- [tool .poetry .group .dev .dependencies ]
21
- pygobject-stubs = " ^2.10.0"
22
- pytest = " ^8.2.0"
23
- coverage = " ^7.5.3"
24
- ruff = " ^0.4.8"
25
- pyinstaller = " ^6.7.0"
26
-
27
- [build-system ]
28
- requires = [" poetry-core" ]
29
- build-backend = " poetry.core.masonry.api"
You can’t perform that action at this time.
0 commit comments