winipedia-pyside 0.2.29__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.

@@ -19,42 +19,50 @@ class PySide6WorkflowMixin(WinipediaWorkflow):
19
19
  """
20
20
 
21
21
  @classmethod
22
- def get_pre_commit_step(cls) -> dict[str, Any]:
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().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
- }
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 get_poetry_setup_steps(
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().get_poetry_setup_steps(
47
- *args,
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
- }
53
+ cls.step_install_pyside_system_dependencies(),
55
54
  )
56
55
  return steps
57
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
+
58
66
 
59
67
  class HealthCheckWorkflow(PySide6WorkflowMixin, WinipediaHealthCheckWorkflow):
60
68
  """Health check workflow.
@@ -65,10 +73,28 @@ class HealthCheckWorkflow(PySide6WorkflowMixin, WinipediaHealthCheckWorkflow):
65
73
  """
66
74
 
67
75
 
68
- class ReleaseWorkflow(PySide6WorkflowMixin, WinipediaReleaseWorkflow):
76
+ class ReleaseWorkflow(HealthCheckWorkflow, WinipediaReleaseWorkflow):
69
77
  """Release workflow.
70
78
 
71
79
  Extends winipedia_utils release workflow to add additional steps.
72
80
  This is necessary to make pyside6 work on github actions which is a headless linux
73
81
  environment.
74
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: winipedia-pyside
3
- Version: 0.2.29
3
+ Version: 0.2.35
4
4
  Summary: A package for pyside utils
5
5
  License-Expression: MIT
6
6
  License-File: LICENSE
@@ -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=41PUMnUYAux1LfYaz9wystVxEU_OT3L66W1TmCiqDYg,2343
23
- winipedia_pyside-0.2.29.dist-info/METADATA,sha256=ZXh3Ak9HxAoXMFl1pTeW2IOa57Fc0UuU9_QdyrQCGYM,6575
24
- winipedia_pyside-0.2.29.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
25
- winipedia_pyside-0.2.29.dist-info/licenses/LICENSE,sha256=o316mE2gGzd__JT69p7S_zlOmKiHh8YjpImCCcWyTvM,1066
26
- winipedia_pyside-0.2.29.dist-info/RECORD,,
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,,