Skip to content

Commit 2394ec6

Browse files
committedMar 24, 2025
replace llm clients implementation by modihub
1 parent 3b9f523 commit 2394ec6

28 files changed

+2881
-24088
lines changed
 

‎Makefile

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.PHONY: publish res
2+
3+
publish:
4+
@echo "Building and publishing package..."
5+
@export $(shell grep -v '^#' .env | xargs) && \
6+
uv build && \
7+
uv publish --token $$PYPI_TOKEN
8+
res:
9+
@echo "Building app resources file..."
10+
@export $(shell grep -v '^#' .env | xargs) && \
11+
cd scripts && sh generate_resources_file.sh

‎pyproject.toml

+54-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "quack2tex"
3-
version = "1.0.4"
3+
version = "1.0.5"
44
description = "Add your description here"
55
readme = "README.md"
66
requires-python = ">=3.10"
@@ -22,12 +22,65 @@ dependencies = [
2222
"typer>=0.12.5",
2323
"pyqt6>=6.8.0",
2424
"pyqt6-webengine>=6.8.0",
25+
"modihub",
26+
"pyqt6-qt6>=6.8.1",
2527
]
2628

2729

2830
[project.scripts]
2931
quack2tex = "quack2tex.cli:run"
3032

33+
[project.optional-dependencies]
34+
dev = [
35+
"pyside6>=6.8.2.1",
36+
]
37+
3138
[build-system]
3239
requires = ["hatchling"]
3340
build-backend = "hatchling.build"
41+
42+
[tool.uv.sources]
43+
modihub = { path = "../modihub" , editable = true }
44+
45+
46+
[tool.hatch.build]
47+
exclude = [
48+
"tests/",
49+
"docs/",
50+
"examples/",
51+
"assets/",
52+
"keys/",
53+
".git/",
54+
".github/",
55+
"scripts/",
56+
"configs/",
57+
"README.md",
58+
".env",
59+
"config.json",
60+
"*/**/.sh",
61+
"Makefile",
62+
"cloudbuild.yaml",
63+
"*/**/Dockerfile",
64+
"Dockerfile",
65+
"requirements.txt",
66+
"docker/",
67+
"*.sh",
68+
"*.yml",
69+
"analysis/",
70+
"data/",
71+
"images/",
72+
"ui/",
73+
"web.ps1",
74+
".vscode/",
75+
".idea/",
76+
".gitignore",
77+
".gitattributes",
78+
".gitmodules",
79+
".gitkeep",
80+
".gitlab-ci.yml",
81+
".gitlab/",
82+
".gitlab-ci/",
83+
".gitlab-ci.yml",
84+
".python-version"
85+
86+
]

‎scripts/generate_build.sh

-2
This file was deleted.

‎scripts/generate_resources_file.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ python ./generate_resources_file.py \
22
./../src/quack2tex/resources \
33
./../src/quack2tex/resources/resources.qrc
44

5-
pyside6-rcc -o ./../src/quack2tex/resources/resources_rc.py \
6-
./../src/quack2tex/resources/resources.qrc
5+
pyside6-rcc ./../src/quack2tex/resources/resources.qrc \
6+
| sed '0,/PySide6/s//PyQt6/' > ./../src/quack2tex/resources/resources_rc.py
7+

‎src/quack2tex/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
from quack2tex.pyqt import (
88
QApplication, Qt, QIcon, QFile, QPalette, QColor, QCursor, QFontDatabase,QIODevice
99
)
10-
from .llm import LLM
11-
from .resources import resources_rc # noqa: F401
10+
from modihub.llm import LLM
11+
from .resources import * # noqa
1212
from .utils import GuiUtils
1313
from .windows import MainWindow
1414

‎src/quack2tex/llm/__init__.py

-4
This file was deleted.

‎src/quack2tex/llm/base.py

-67
This file was deleted.

‎src/quack2tex/llm/google_client.py

-43
This file was deleted.

‎src/quack2tex/llm/llm.py

-45
This file was deleted.

‎src/quack2tex/llm/main.py

-72
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.