Skip to content

Commit 8768f9f

Browse files
committed
add actions to ui2py
1 parent 5c8a05a commit 8768f9f

File tree

8 files changed

+156
-2
lines changed

8 files changed

+156
-2
lines changed

.github/workflows/buld.yaml

Whitespace-only changes.

.github/workflows/ui2py.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: ui2py
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
jobs:
10+
convert-ui:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Setup system
15+
run: |
16+
sudo apt-get update
17+
sudo apt-get install -y \
18+
python3-dev \
19+
libcairo2-dev \
20+
libgirepository1.0-dev \
21+
gir1.2-gtk-3.0 \
22+
pkg-config \
23+
build-essential \
24+
libglib2.0-dev \
25+
libgirepository-1.0-1 \
26+
gobject-introspection \
27+
cmake
28+
- name: Set up Python
29+
uses: actions/setup-python@v5
30+
with:
31+
python-version: '3.12'
32+
- name: Install build tools
33+
run: pip install meson wheel
34+
- name: Install uv
35+
run: curl -LsSf https://astral.sh/uv/install.sh | sh
36+
- name: Install dependencies
37+
run: uv sync
38+
- name: Convert .ui files to .py
39+
run: uv run python convert_ui.py

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@ venv
22
__pycache__
33
db
44
data_base
5+
build
6+
dist
7+
*.spec
8+
*.pyc

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ You can find details on the remaining classes in [`docs`](/docs) directory.
7272
### How to run it
7373
One command with `uv`:
7474
```sh
75-
uv run python schoolring/views.py
75+
uv run python schoolring
7676
```
7777

7878
### Questions | Contribute

docs/technical_specification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,4 @@
145145
- `LginData` и `RegistrData` оба класса наледоются от NamedTuple и используются для храниения, передачи, введёных пользователем, данных.
146146
- `RingManager` агрегирует данные рассписаня и воспроизведение мелодии
147147
- `LoginChecker` и `RegistrChecker` у каждого из классов есть свойство `is_correct` котрое равно True если данные веднеы коректно и проходят проверку. Или False во всех остальных случаях
148-
- `DataBaseManager` экземпляры этого класса могут создаваться в других классах и “брать на себя” всё управление базой даных
148+
- `DataBaseManager` экземпляры этого класса могут создаваться в других классах и “брать на себя” всё управление базой даных

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,8 @@ dependencies = [
1313
"pyqt6-sip>=13.10.2",
1414
"schedule>=1.2.2",
1515
]
16+
17+
[dependency-groups]
18+
dev = [
19+
"pyinstaller>=6.14.0",
20+
]

uv.lock

Lines changed: 106 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)