winipedia-pyside 0.2.1__py3-none-any.whl → 0.2.24__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- winipedia_pyside/workflows/__init__.py +1 -0
- winipedia_pyside/workflows/configs.py +81 -0
- {winipedia_pyside-0.2.1.dist-info → winipedia_pyside-0.2.24.dist-info}/METADATA +4 -4
- {winipedia_pyside-0.2.1.dist-info → winipedia_pyside-0.2.24.dist-info}/RECORD +6 -4
- {winipedia_pyside-0.2.1.dist-info → winipedia_pyside-0.2.24.dist-info}/WHEEL +0 -0
- {winipedia_pyside-0.2.1.dist-info → winipedia_pyside-0.2.24.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""__init__ module."""
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"""Workflow configs."""
|
|
2
|
+
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
5
|
+
from winipedia_utils.git.github.workflows.base.base import Workflow as WinipediaWorkflow
|
|
6
|
+
from winipedia_utils.git.github.workflows.health_check import (
|
|
7
|
+
HealthCheckWorkflow as WinipediaHealthCheckWorkflow,
|
|
8
|
+
)
|
|
9
|
+
from winipedia_utils.git.github.workflows.release import (
|
|
10
|
+
ReleaseWorkflow as WinipediaReleaseWorkflow,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class PySide6WorkflowMixin(WinipediaWorkflow):
|
|
15
|
+
"""Mixin to add PySide6-specific workflow steps.
|
|
16
|
+
|
|
17
|
+
This mixin provides common overrides for PySide6 workflows to work on
|
|
18
|
+
GitHub Actions headless Linux environments.
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
@classmethod
|
|
22
|
+
def get_pre_commit_step(cls) -> dict[str, Any]:
|
|
23
|
+
"""Get the pre-commit step.
|
|
24
|
+
|
|
25
|
+
We need to add some env vars
|
|
26
|
+
so QtWebEngine doesn't try to use GPU acceleration etc.
|
|
27
|
+
"""
|
|
28
|
+
step = super().get_pre_commit_step()
|
|
29
|
+
step["env"] = {
|
|
30
|
+
"QT_QPA_PLATFORM": "offscreen",
|
|
31
|
+
"QTWEBENGINE_DISABLE_SANDBOX": "1",
|
|
32
|
+
"QTWEBENGINE_CHROMIUM_FLAGS": "--no-sandbox --disable-gpu --disable-software-rasterizer --disable-dev-shm-usage", # noqa: E501
|
|
33
|
+
}
|
|
34
|
+
return step
|
|
35
|
+
|
|
36
|
+
@classmethod
|
|
37
|
+
def get_poetry_setup_steps(
|
|
38
|
+
cls,
|
|
39
|
+
*,
|
|
40
|
+
install_dependencies: bool = False,
|
|
41
|
+
fetch_depth: int | None = None,
|
|
42
|
+
configure_pipy_token: bool = False,
|
|
43
|
+
force_main_head: bool = False,
|
|
44
|
+
token: bool = False,
|
|
45
|
+
) -> list[dict[str, Any]]:
|
|
46
|
+
"""Get the poetry setup steps.
|
|
47
|
+
|
|
48
|
+
We need to install additional system dependencies for pyside6.
|
|
49
|
+
"""
|
|
50
|
+
steps = super().get_poetry_setup_steps(
|
|
51
|
+
install_dependencies=install_dependencies,
|
|
52
|
+
fetch_depth=fetch_depth,
|
|
53
|
+
configure_pipy_token=configure_pipy_token,
|
|
54
|
+
force_main_head=force_main_head,
|
|
55
|
+
token=token,
|
|
56
|
+
)
|
|
57
|
+
steps.append(
|
|
58
|
+
{
|
|
59
|
+
"name": "Install PySide6 System Dependencies",
|
|
60
|
+
"run": "sudo apt-get update && sudo apt-get install -y libegl1 libpulse0", # noqa: E501
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
return steps
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
class HealthCheckWorkflow(PySide6WorkflowMixin, WinipediaHealthCheckWorkflow):
|
|
67
|
+
"""Health check workflow.
|
|
68
|
+
|
|
69
|
+
Extends winipedia_utils health check workflow to add additional steps.
|
|
70
|
+
This is necessary to make pyside6 work on github actions which is a headless linux
|
|
71
|
+
environment.
|
|
72
|
+
"""
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
class ReleaseWorkflow(PySide6WorkflowMixin, WinipediaReleaseWorkflow):
|
|
76
|
+
"""Release workflow.
|
|
77
|
+
|
|
78
|
+
Extends winipedia_utils release workflow to add additional steps.
|
|
79
|
+
This is necessary to make pyside6 work on github actions which is a headless linux
|
|
80
|
+
environment.
|
|
81
|
+
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: winipedia-pyside
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.24
|
|
4
4
|
Summary: A package for pyside utils
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
License-File: LICENSE
|
|
@@ -10,9 +10,9 @@ Requires-Python: >=3.12,<3.14
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.12
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.13
|
|
13
|
-
Requires-Dist: pyqt-toast-notification
|
|
14
|
-
Requires-Dist: pyside6
|
|
15
|
-
Requires-Dist: winipedia-utils
|
|
13
|
+
Requires-Dist: pyqt-toast-notification
|
|
14
|
+
Requires-Dist: pyside6
|
|
15
|
+
Requires-Dist: winipedia-utils
|
|
16
16
|
Description-Content-Type: text/markdown
|
|
17
17
|
|
|
18
18
|
# winipedia_pyside
|
|
@@ -18,7 +18,9 @@ winipedia_pyside/ui/widgets/notification.py,sha256=RM5oHfqWwvnf3tZ69uOlGrKkWhnpj
|
|
|
18
18
|
winipedia_pyside/ui/windows/__init__.py,sha256=XHsbmjiaGom-KX-S3leCY9cJD3aP9p_0X6xYMcdkHBU,23
|
|
19
19
|
winipedia_pyside/ui/windows/base/__init__.py,sha256=XHsbmjiaGom-KX-S3leCY9cJD3aP9p_0X6xYMcdkHBU,23
|
|
20
20
|
winipedia_pyside/ui/windows/base/base.py,sha256=GMe6dhxrqMSiB_rIYr_dnjw3QYbYErDOoU0bqfEbEOw,1378
|
|
21
|
-
winipedia_pyside
|
|
22
|
-
winipedia_pyside
|
|
23
|
-
winipedia_pyside-0.2.
|
|
24
|
-
winipedia_pyside-0.2.
|
|
21
|
+
winipedia_pyside/workflows/__init__.py,sha256=XHsbmjiaGom-KX-S3leCY9cJD3aP9p_0X6xYMcdkHBU,23
|
|
22
|
+
winipedia_pyside/workflows/configs.py,sha256=wbMyPoQiJOKenyylTnnki7VCmNe-xykQppFhmaB5w-s,2683
|
|
23
|
+
winipedia_pyside-0.2.24.dist-info/METADATA,sha256=oEUZHYqaaq65rqrr9lA7vE66KT5sDbozPtT4nrX2Rxo,6575
|
|
24
|
+
winipedia_pyside-0.2.24.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
25
|
+
winipedia_pyside-0.2.24.dist-info/licenses/LICENSE,sha256=o316mE2gGzd__JT69p7S_zlOmKiHh8YjpImCCcWyTvM,1066
|
|
26
|
+
winipedia_pyside-0.2.24.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|