winipedia-pyside 0.2.34__py3-none-any.whl → 0.2.35__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.
Potentially problematic release.
This version of winipedia-pyside might be problematic. Click here for more details.
- winipedia_pyside/workflows/configs.py +45 -20
- {winipedia_pyside-0.2.34.dist-info → winipedia_pyside-0.2.35.dist-info}/METADATA +1 -1
- {winipedia_pyside-0.2.34.dist-info → winipedia_pyside-0.2.35.dist-info}/RECORD +5 -5
- {winipedia_pyside-0.2.34.dist-info → winipedia_pyside-0.2.35.dist-info}/WHEEL +0 -0
- {winipedia_pyside-0.2.34.dist-info → winipedia_pyside-0.2.35.dist-info}/licenses/LICENSE +0 -0
|
@@ -19,43 +19,50 @@ class PySide6WorkflowMixin(WinipediaWorkflow):
|
|
|
19
19
|
"""
|
|
20
20
|
|
|
21
21
|
@classmethod
|
|
22
|
-
def
|
|
22
|
+
def step_run_pre_commit_hooks(
|
|
23
|
+
cls,
|
|
24
|
+
*,
|
|
25
|
+
step: dict[str, Any] | None = None,
|
|
26
|
+
) -> dict[str, Any]:
|
|
23
27
|
"""Get the pre-commit step.
|
|
24
28
|
|
|
25
29
|
We need to add some env vars
|
|
26
30
|
so QtWebEngine doesn't try to use GPU acceleration etc.
|
|
27
31
|
"""
|
|
28
|
-
step = super().
|
|
29
|
-
step
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
step = super().step_run_pre_commit_hooks(step=step)
|
|
33
|
+
step.setdefault("env", {}).update(
|
|
34
|
+
{
|
|
35
|
+
"QT_QPA_PLATFORM": "offscreen",
|
|
36
|
+
"QTWEBENGINE_DISABLE_SANDBOX": "1",
|
|
37
|
+
"QTWEBENGINE_CHROMIUM_FLAGS": "--no-sandbox --disable-gpu --disable-software-rasterizer --disable-dev-shm-usage", # noqa: E501
|
|
38
|
+
}
|
|
39
|
+
)
|
|
34
40
|
return step
|
|
35
41
|
|
|
36
42
|
@classmethod
|
|
37
|
-
def
|
|
38
|
-
cls,
|
|
39
|
-
*args: Any,
|
|
40
|
-
**kwargs: Any,
|
|
43
|
+
def steps_core_matrix_setup(
|
|
44
|
+
cls, python_version: str | None = None, *, repo_token: bool = False
|
|
41
45
|
) -> list[dict[str, Any]]:
|
|
42
46
|
"""Get the poetry setup steps.
|
|
43
47
|
|
|
44
48
|
We need to install additional system dependencies for pyside6.
|
|
45
49
|
"""
|
|
46
|
-
steps = super().
|
|
47
|
-
|
|
48
|
-
**kwargs,
|
|
49
|
-
)
|
|
50
|
+
steps = super().steps_core_matrix_setup(python_version, repo_token=repo_token)
|
|
51
|
+
|
|
50
52
|
steps.append(
|
|
51
|
-
|
|
52
|
-
"name": "Install PySide6 System Dependencies",
|
|
53
|
-
"run": "sudo apt-get update && sudo apt-get install -y libegl1 libpulse0", # noqa: E501
|
|
54
|
-
"if": "runner.os == 'Linux'",
|
|
55
|
-
}
|
|
53
|
+
cls.step_install_pyside_system_dependencies(),
|
|
56
54
|
)
|
|
57
55
|
return steps
|
|
58
56
|
|
|
57
|
+
@classmethod
|
|
58
|
+
def step_install_pyside_system_dependencies(cls) -> dict[str, Any]:
|
|
59
|
+
"""Get the step to install PySide6 dependencies."""
|
|
60
|
+
return cls.get_step(
|
|
61
|
+
step_func=cls.step_install_pyside_system_dependencies,
|
|
62
|
+
run="sudo apt-get update && sudo apt-get install -y libegl1 libpulse0",
|
|
63
|
+
if_condition="runner.os == 'Linux'",
|
|
64
|
+
)
|
|
65
|
+
|
|
59
66
|
|
|
60
67
|
class HealthCheckWorkflow(PySide6WorkflowMixin, WinipediaHealthCheckWorkflow):
|
|
61
68
|
"""Health check workflow.
|
|
@@ -73,3 +80,21 @@ class ReleaseWorkflow(HealthCheckWorkflow, WinipediaReleaseWorkflow):
|
|
|
73
80
|
This is necessary to make pyside6 work on github actions which is a headless linux
|
|
74
81
|
environment.
|
|
75
82
|
"""
|
|
83
|
+
|
|
84
|
+
@classmethod
|
|
85
|
+
def steps_release(cls) -> list[dict[str, Any]]:
|
|
86
|
+
"""Get the release steps."""
|
|
87
|
+
steps = super().steps_release()
|
|
88
|
+
# find the index of the cls.step_install_python_dependencies step and insert
|
|
89
|
+
# the pyside6 dependencies step after it
|
|
90
|
+
index = (
|
|
91
|
+
next(
|
|
92
|
+
i
|
|
93
|
+
for i, step in enumerate(steps)
|
|
94
|
+
if step["id"]
|
|
95
|
+
== cls.make_id_from_func(cls.step_install_python_dependencies)
|
|
96
|
+
)
|
|
97
|
+
+ 1
|
|
98
|
+
)
|
|
99
|
+
steps.insert(index, cls.step_install_pyside_system_dependencies())
|
|
100
|
+
return steps
|
|
@@ -19,8 +19,8 @@ winipedia_pyside/ui/windows/__init__.py,sha256=XHsbmjiaGom-KX-S3leCY9cJD3aP9p_0X
|
|
|
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
21
|
winipedia_pyside/workflows/__init__.py,sha256=XHsbmjiaGom-KX-S3leCY9cJD3aP9p_0X6xYMcdkHBU,23
|
|
22
|
-
winipedia_pyside/workflows/configs.py,sha256=
|
|
23
|
-
winipedia_pyside-0.2.
|
|
24
|
-
winipedia_pyside-0.2.
|
|
25
|
-
winipedia_pyside-0.2.
|
|
26
|
-
winipedia_pyside-0.2.
|
|
22
|
+
winipedia_pyside/workflows/configs.py,sha256=yysoLLvPmId2iiDMviqLNRfZo6xmXk7a2FOYxL9auB4,3382
|
|
23
|
+
winipedia_pyside-0.2.35.dist-info/METADATA,sha256=pXnR9hYnF3zsJqGBOy_MFi8QGDKagsFF8Y5RV3HpR_M,6575
|
|
24
|
+
winipedia_pyside-0.2.35.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
25
|
+
winipedia_pyside-0.2.35.dist-info/licenses/LICENSE,sha256=o316mE2gGzd__JT69p7S_zlOmKiHh8YjpImCCcWyTvM,1066
|
|
26
|
+
winipedia_pyside-0.2.35.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|