dynamic-icon-engine 1.0.0__tar.gz

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.
Files changed (113) hide show
  1. dynamic_icon_engine-1.0.0/.github/workflows/ci.yml +245 -0
  2. dynamic_icon_engine-1.0.0/.github/workflows/release.yml +258 -0
  3. dynamic_icon_engine-1.0.0/CHANGELOG.md +70 -0
  4. dynamic_icon_engine-1.0.0/CONTRIBUTING.md +69 -0
  5. dynamic_icon_engine-1.0.0/LICENSE +21 -0
  6. dynamic_icon_engine-1.0.0/MANIFEST.in +20 -0
  7. dynamic_icon_engine-1.0.0/PKG-INFO +176 -0
  8. dynamic_icon_engine-1.0.0/README.md +151 -0
  9. dynamic_icon_engine-1.0.0/SECURITY.md +33 -0
  10. dynamic_icon_engine-1.0.0/docs/assets/user-guide/eigenes-grafikset.png +0 -0
  11. dynamic_icon_engine-1.0.0/docs/assets/user-guide/kreisprofil-und-quadrat.png +0 -0
  12. dynamic_icon_engine-1.0.0/docs/developer-guide/architektur.md +72 -0
  13. dynamic_icon_engine-1.0.0/docs/developer-guide/datenfluss-lebenszyklus.md +113 -0
  14. dynamic_icon_engine-1.0.0/docs/developer-guide/erweiterung-invarianten.md +63 -0
  15. dynamic_icon_engine-1.0.0/docs/developer-guide/fehler-threading.md +70 -0
  16. dynamic_icon_engine-1.0.0/docs/developer-guide/grafikset-provenienz.md +148 -0
  17. dynamic_icon_engine-1.0.0/docs/developer-guide/index.md +43 -0
  18. dynamic_icon_engine-1.0.0/docs/developer-guide/offene-vertraege.md +188 -0
  19. dynamic_icon_engine-1.0.0/docs/developer-guide/testlab-werkzeuge.md +155 -0
  20. dynamic_icon_engine-1.0.0/docs/reference/animation.md +177 -0
  21. dynamic_icon_engine-1.0.0/docs/reference/api_inventory.json +1145 -0
  22. dynamic_icon_engine-1.0.0/docs/reference/appearance.md +90 -0
  23. dynamic_icon_engine-1.0.0/docs/reference/controller.md +107 -0
  24. dynamic_icon_engine-1.0.0/docs/reference/errors.md +65 -0
  25. dynamic_icon_engine-1.0.0/docs/reference/graphic-set.md +134 -0
  26. dynamic_icon_engine-1.0.0/docs/reference/index.md +144 -0
  27. dynamic_icon_engine-1.0.0/docs/reference/manifest-format.md +65 -0
  28. dynamic_icon_engine-1.0.0/docs/reference/renderer.md +129 -0
  29. dynamic_icon_engine-1.0.0/docs/reference/testlab.md +33 -0
  30. dynamic_icon_engine-1.0.0/docs/reference/tools/check_reference.py +519 -0
  31. dynamic_icon_engine-1.0.0/docs/user-guide/animationen.md +109 -0
  32. dynamic_icon_engine-1.0.0/docs/user-guide/darstellung.md +117 -0
  33. dynamic_icon_engine-1.0.0/docs/user-guide/erste-schritte.md +119 -0
  34. dynamic_icon_engine-1.0.0/docs/user-guide/fehlersuche.md +92 -0
  35. dynamic_icon_engine-1.0.0/docs/user-guide/grafiksets.md +119 -0
  36. dynamic_icon_engine-1.0.0/docs/user-guide/index.md +45 -0
  37. dynamic_icon_engine-1.0.0/docs/user-guide/installation.md +93 -0
  38. dynamic_icon_engine-1.0.0/docs/user-guide/integration.md +117 -0
  39. dynamic_icon_engine-1.0.0/docs/user-guide/szenarien.md +120 -0
  40. dynamic_icon_engine-1.0.0/docs/user-guide/testlabor.md +58 -0
  41. dynamic_icon_engine-1.0.0/examples/circle_profile.py +75 -0
  42. dynamic_icon_engine-1.0.0/examples/custom_graphic_set.py +96 -0
  43. dynamic_icon_engine-1.0.0/examples/demo_graphics.py +99 -0
  44. dynamic_icon_engine-1.0.0/examples/finite_animation.py +81 -0
  45. dynamic_icon_engine-1.0.0/examples/headless_render.py +42 -0
  46. dynamic_icon_engine-1.0.0/examples/pulse_animation.py +78 -0
  47. dynamic_icon_engine-1.0.0/examples/quickstart.py +46 -0
  48. dynamic_icon_engine-1.0.0/examples/static_icon.py +57 -0
  49. dynamic_icon_engine-1.0.0/examples/tray_example.py +70 -0
  50. dynamic_icon_engine-1.0.0/pyproject.toml +56 -0
  51. dynamic_icon_engine-1.0.0/scripts/ci/check_dist.py +244 -0
  52. dynamic_icon_engine-1.0.0/scripts/ci/check_workflows.py +169 -0
  53. dynamic_icon_engine-1.0.0/scripts/ci/pretag_policy.py +114 -0
  54. dynamic_icon_engine-1.0.0/scripts/ci/requirements-ci.txt +7 -0
  55. dynamic_icon_engine-1.0.0/scripts/ci/smoke_installed.py +146 -0
  56. dynamic_icon_engine-1.0.0/scripts/release/check_release_readiness.py +204 -0
  57. dynamic_icon_engine-1.0.0/setup.cfg +4 -0
  58. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine/__init__.py +37 -0
  59. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine/_version.py +1 -0
  60. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine/animation.py +247 -0
  61. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine/appearance.py +77 -0
  62. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine/controller.py +266 -0
  63. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine/errors.py +34 -0
  64. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine/graphic_set.py +436 -0
  65. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine/renderer.py +228 -0
  66. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine/resources/__init__.py +0 -0
  67. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine/resources/default/manifest.json +84 -0
  68. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine/resources/default/symbol.png +0 -0
  69. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine/resources/default/symbol_16.png +0 -0
  70. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine/resources/default/symbol_20.png +0 -0
  71. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine/resources/default/symbol_24.png +0 -0
  72. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine/resources/default/symbol_32.png +0 -0
  73. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine/resources/default/symbol_ext.png +0 -0
  74. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine/resources/default/symbol_ext_16.png +0 -0
  75. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine/resources/default/symbol_ext_20.png +0 -0
  76. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine/resources/default/symbol_ext_24.png +0 -0
  77. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine/resources/default/symbol_ext_32.png +0 -0
  78. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine/resources/default/symbol_ext_clearance.png +0 -0
  79. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine/resources/default/symbol_ext_clearance_16.png +0 -0
  80. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine/resources/default/symbol_ext_clearance_20.png +0 -0
  81. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine/resources/default/symbol_ext_clearance_24.png +0 -0
  82. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine/resources/default/symbol_ext_clearance_32.png +0 -0
  83. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine/testlab/__init__.py +4 -0
  84. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine/testlab/__main__.py +87 -0
  85. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine/testlab/palette.py +96 -0
  86. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine/testlab/window.py +417 -0
  87. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine.egg-info/PKG-INFO +176 -0
  88. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine.egg-info/SOURCES.txt +111 -0
  89. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine.egg-info/dependency_links.txt +1 -0
  90. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine.egg-info/entry_points.txt +2 -0
  91. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine.egg-info/requires.txt +4 -0
  92. dynamic_icon_engine-1.0.0/src/dynamic_icon_engine.egg-info/top_level.txt +1 -0
  93. dynamic_icon_engine-1.0.0/tests/conftest.py +58 -0
  94. dynamic_icon_engine-1.0.0/tests/test_animation.py +155 -0
  95. dynamic_icon_engine-1.0.0/tests/test_appearance.py +56 -0
  96. dynamic_icon_engine-1.0.0/tests/test_circle_profile.py +82 -0
  97. dynamic_icon_engine-1.0.0/tests/test_contract_fixes.py +96 -0
  98. dynamic_icon_engine-1.0.0/tests/test_controller.py +324 -0
  99. dynamic_icon_engine-1.0.0/tests/test_graphic_set.py +184 -0
  100. dynamic_icon_engine-1.0.0/tests/test_invalid_sizes_subprocess.py +90 -0
  101. dynamic_icon_engine-1.0.0/tests/test_neutrality.py +69 -0
  102. dynamic_icon_engine-1.0.0/tests/test_public_api.py +89 -0
  103. dynamic_icon_engine-1.0.0/tests/test_public_contracts.py +122 -0
  104. dynamic_icon_engine-1.0.0/tests/test_release_guard.py +227 -0
  105. dynamic_icon_engine-1.0.0/tests/test_renderer.py +150 -0
  106. dynamic_icon_engine-1.0.0/tests/test_resources_manifest.py +111 -0
  107. dynamic_icon_engine-1.0.0/tests/test_testlab.py +49 -0
  108. dynamic_icon_engine-1.0.0/tests/test_testlab_cli.py +55 -0
  109. dynamic_icon_engine-1.0.0/tests/test_tools.py +79 -0
  110. dynamic_icon_engine-1.0.0/tools/compare_circle.py +63 -0
  111. dynamic_icon_engine-1.0.0/tools/derive_default_graphic_set.py +212 -0
  112. dynamic_icon_engine-1.0.0/tools/frozen_smoke/frozen_smoke.py +55 -0
  113. dynamic_icon_engine-1.0.0/tools/make_visual_evidence.py +202 -0
@@ -0,0 +1,245 @@
1
+ # CI for dynamic-icon-engine: tests from source, build once, check wheel/sdist/resources,
2
+ # installed-wheel smoke outside the source tree. Read-only; never publishes; no secrets.
3
+ name: CI
4
+
5
+ on:
6
+ push:
7
+ branches: [main, "release/**", "work/**", "prep/**"]
8
+ pull_request:
9
+ workflow_dispatch:
10
+ workflow_call:
11
+ outputs:
12
+ artifact_id:
13
+ value: ${{ jobs.build.outputs.artifact_id }}
14
+ manifest_sha:
15
+ value: ${{ jobs.build.outputs.manifest_sha }}
16
+
17
+ permissions:
18
+ contents: read
19
+
20
+ concurrency:
21
+ group: ci-${{ github.workflow }}-${{ github.ref }}
22
+ cancel-in-progress: true
23
+
24
+ env:
25
+ PYTHON_VERSION: "3.12" # requires-python >=3.12; classifier: 3.12
26
+ # Fixed qualified build epoch (same as release.yml); wheel bytes are reproducible.
27
+ SOURCE_DATE_EPOCH: "1796342400"
28
+ QT_QPA_PLATFORM: offscreen
29
+ PIP_DISABLE_PIP_VERSION_CHECK: "1"
30
+ PYTHONDONTWRITEBYTECODE: "1"
31
+ # Qt runtime libraries for PySide6 wheels on ubuntu-24.04 (offscreen platform plugin)
32
+ QT_APT_PACKAGES: libegl1 libgl1 libxkbcommon0 libfontconfig1 libdbus-1-3 libglib2.0-0t64 libx11-6
33
+
34
+ jobs:
35
+ workflow-lint:
36
+ name: Workflow lint
37
+ runs-on: ubuntu-24.04
38
+ timeout-minutes: 10
39
+ steps:
40
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
41
+ with:
42
+ persist-credentials: false
43
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
44
+ with:
45
+ python-version: ${{ env.PYTHON_VERSION }}
46
+ - name: Install check tools
47
+ run: python -m pip install -r scripts/ci/requirements-ci.txt
48
+ - name: Install workflow security tools
49
+ run: python -m pip install "actionlint-py==1.7.12.25" "zizmor==1.33.1"
50
+ - name: Lint and security
51
+ run: |
52
+ actionlint .github/workflows/ci.yml .github/workflows/release.yml
53
+ zizmor --offline --persona=regular .github/workflows/ci.yml .github/workflows/release.yml
54
+ - name: Validate workflow schema
55
+ run: |
56
+ check-jsonschema --builtin-schema vendor.github-workflows .github/workflows/ci.yml
57
+ check-jsonschema --builtin-schema vendor.github-workflows .github/workflows/release.yml
58
+ - name: Check workflow policy
59
+ run: python scripts/ci/check_workflows.py --allow-active-release
60
+ - name: Reference checker (strict, no warnings, all links)
61
+ run: python docs/reference/tools/check_reference.py --strict
62
+
63
+ tests:
64
+ name: Tests (${{ matrix.os }})
65
+ runs-on: ${{ matrix.os }}
66
+ timeout-minutes: 20
67
+ strategy:
68
+ fail-fast: false
69
+ matrix:
70
+ os: [ubuntu-24.04, windows-2025]
71
+ steps:
72
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
73
+ with:
74
+ persist-credentials: false
75
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
76
+ with:
77
+ python-version: ${{ env.PYTHON_VERSION }}
78
+ - name: Install Qt system libraries
79
+ if: runner.os == 'Linux'
80
+ run: |
81
+ read -r -a qt_packages <<< "$QT_APT_PACKAGES"
82
+ sudo apt-get update
83
+ sudo apt-get install -y --no-install-recommends "${qt_packages[@]}"
84
+ - name: Install package with test extra
85
+ run: python -m pip install ".[test]"
86
+ - name: Run test suite from source (offscreen, temp data under runner.temp)
87
+ shell: bash
88
+ run: python -m pytest -p no:cacheprovider --basetemp="$RUNNER_TEMP/pytest"
89
+
90
+ build:
91
+ outputs:
92
+ artifact_id: ${{ steps.upload.outputs.artifact-id }}
93
+ manifest_sha: ${{ steps.manifest.outputs.sha }}
94
+ name: Build and check distributions
95
+ runs-on: ubuntu-24.04
96
+ timeout-minutes: 15
97
+ steps:
98
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
99
+ with:
100
+ persist-credentials: false
101
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
102
+ with:
103
+ python-version: ${{ env.PYTHON_VERSION }}
104
+ - name: Install build tools
105
+ run: python -m pip install -r scripts/ci/requirements-ci.txt
106
+ - name: Build sdist and wheel (wheel is built from the sdist)
107
+ run: python -m build --outdir dist
108
+ - name: Check wheel/sdist contents, metadata and resources
109
+ run: python scripts/ci/check_dist.py dist
110
+ - name: twine check
111
+ run: python -m twine check --strict dist/*
112
+ - name: Release guard (fail-closed, licence, version, blocking classifier)
113
+ run: |
114
+ version=$(python - <<'PY'
115
+ import re
116
+ import tomllib
117
+ from pathlib import Path
118
+ project = tomllib.loads(Path("pyproject.toml").read_text(encoding="utf-8"))["project"]
119
+ if "version" in project.get("dynamic", []):
120
+ source = Path("src/dynamic_icon_engine/_version.py").read_text(encoding="utf-8")
121
+ print(re.search(r'''__version__\s*=\s*["']([^"']+)["']''', source).group(1))
122
+ else:
123
+ print(project["version"])
124
+ PY
125
+ )
126
+ python scripts/release/check_release_readiness.py --tag "v$version" --skip-git
127
+ - name: SHA-256 of the artefacts
128
+ run: |
129
+ (cd dist && sha256sum -- *.whl *.tar.gz > SHA256SUMS.txt)
130
+ cat dist/SHA256SUMS.txt >> "$GITHUB_STEP_SUMMARY"
131
+ - name: Bind the qualified distribution manifest
132
+ id: manifest
133
+ run: echo "sha=$(sha256sum dist/SHA256SUMS.txt | cut -d' ' -f1)" >> "$GITHUB_OUTPUT"
134
+ - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
135
+ id: upload
136
+ with:
137
+ name: dist
138
+ path: dist/
139
+ if-no-files-found: error
140
+ retention-days: 7
141
+
142
+ wheel-smoke:
143
+ name: Installed wheel (${{ matrix.os }})
144
+ needs: build
145
+ runs-on: ${{ matrix.os }}
146
+ timeout-minutes: 20
147
+ strategy:
148
+ fail-fast: false
149
+ matrix:
150
+ os: [ubuntu-24.04, windows-2025]
151
+ defaults:
152
+ run:
153
+ shell: bash
154
+ env:
155
+ # Repository tools are not part of the wheel; the copied tests use them read-only.
156
+ DIE_REPO_ROOT: ${{ github.workspace }}
157
+ steps:
158
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
159
+ with:
160
+ persist-credentials: false
161
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
162
+ with:
163
+ python-version: ${{ env.PYTHON_VERSION }}
164
+ - name: Install Qt system libraries
165
+ if: runner.os == 'Linux'
166
+ run: |
167
+ read -r -a qt_packages <<< "$QT_APT_PACKAGES"
168
+ sudo apt-get update
169
+ sudo apt-get install -y --no-install-recommends "${qt_packages[@]}"
170
+ - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
171
+ with:
172
+ artifact-ids: ${{ needs.build.outputs.artifact_id }}
173
+ path: ${{ runner.temp }}/dist
174
+ - name: Verify the exact distribution artifact
175
+ shell: bash
176
+ env:
177
+ MANIFEST_SHA: ${{ needs.build.outputs.manifest_sha }}
178
+ run: |
179
+ set -euo pipefail
180
+ [[ "$MANIFEST_SHA" =~ ^[0-9a-f]{64}$ ]]
181
+ cd "$RUNNER_TEMP/dist"
182
+ test "$(sha256sum SHA256SUMS.txt | cut -d' ' -f1)" = "$MANIFEST_SHA"
183
+ sha256sum --check --strict SHA256SUMS.txt
184
+ - name: Fresh venv outside the source tree, install the wheel
185
+ run: |
186
+ python -m venv "$RUNNER_TEMP/venv"
187
+ if [ "$RUNNER_OS" = "Windows" ]; then py="$RUNNER_TEMP/venv/Scripts/python.exe"; else py="$RUNNER_TEMP/venv/bin/python"; fi
188
+ echo "VENV_PY=$py" >> "$GITHUB_ENV"
189
+ "$py" -m pip install "$RUNNER_TEMP"/dist/*.whl "pytest>=8"
190
+ - name: Installed smoke (imports, metadata, resources, rendering, controller, testlab)
191
+ working-directory: ${{ runner.temp }}
192
+ run: |
193
+ unset PYTHONPATH
194
+ "$VENV_PY" "$GITHUB_WORKSPACE/scripts/ci/smoke_installed.py" --source-root "$GITHUB_WORKSPACE"
195
+ - name: Test suite against the installed wheel (copied tests, no src on the path)
196
+ working-directory: ${{ runner.temp }}
197
+ run: |
198
+ unset PYTHONPATH
199
+ rm -rf installed-tests && cp -r "$GITHUB_WORKSPACE/tests" installed-tests
200
+ "$VENV_PY" -m pytest -p no:cacheprovider --basetemp="$RUNNER_TEMP/pytest-installed" installed-tests
201
+
202
+ sdist-tests:
203
+ name: Tests from extracted sdist (no repo path)
204
+ needs: build
205
+ runs-on: ubuntu-24.04
206
+ timeout-minutes: 20
207
+ permissions:
208
+ contents: read
209
+ steps:
210
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
211
+ with:
212
+ python-version: ${{ env.PYTHON_VERSION }}
213
+ - name: Install Qt system libraries
214
+ run: |
215
+ read -r -a qt_packages <<< "$QT_APT_PACKAGES"
216
+ sudo apt-get update
217
+ sudo apt-get install -y --no-install-recommends "${qt_packages[@]}"
218
+ - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
219
+ with:
220
+ artifact-ids: ${{ needs.build.outputs.artifact_id }}
221
+ path: ${{ runner.temp }}/dist
222
+ - name: Verify the exact distribution artifact
223
+ shell: bash
224
+ env:
225
+ MANIFEST_SHA: ${{ needs.build.outputs.manifest_sha }}
226
+ run: |
227
+ set -euo pipefail
228
+ [[ "$MANIFEST_SHA" =~ ^[0-9a-f]{64}$ ]]
229
+ cd "$RUNNER_TEMP/dist"
230
+ test "$(sha256sum SHA256SUMS.txt | cut -d' ' -f1)" = "$MANIFEST_SHA"
231
+ sha256sum --check --strict SHA256SUMS.txt
232
+ - name: Extract sdist outside any checkout, install it, run its own tests
233
+ working-directory: ${{ runner.temp }}
234
+ env:
235
+ DIE_REPO_ROOT: ${{ runner.temp }}/sdist-root
236
+ run: |
237
+ set -eu
238
+ rm -rf sdist-root sdist-venv
239
+ mkdir sdist-root
240
+ tar -xzf dist/*.tar.gz -C sdist-root --strip-components=1
241
+ python -m venv sdist-venv
242
+ "./sdist-venv/bin/python" -m pip install "./sdist-root[test]"
243
+ cd sdist-root
244
+ unset PYTHONPATH
245
+ "../sdist-venv/bin/python" -m pytest -p no:cacheprovider --basetemp="$RUNNER_TEMP/pytest-sdist"
@@ -0,0 +1,258 @@
1
+ # Qualify one immutable default-branch commit BEFORE creating its release tag.
2
+ # CI is reused in this run; the build artifact ID and manifest digest bind every write job.
3
+ # dry_run=true never creates a tag or publishes. No rebuild after qualification.
4
+ name: Release
5
+
6
+ on:
7
+ workflow_dispatch:
8
+ inputs:
9
+ version:
10
+ description: "Package version, e.g. 1.0.0"
11
+ required: true
12
+ type: string
13
+ commit:
14
+ description: "Full SHA of the candidate on the default branch"
15
+ required: true
16
+ type: string
17
+ confirm:
18
+ description: "Repeat the intended tag (vVERSION)"
19
+ required: true
20
+ type: string
21
+ dry_run:
22
+ description: "Qualify only; never tag or publish"
23
+ required: true
24
+ type: boolean
25
+ default: true
26
+
27
+ permissions: {}
28
+ concurrency:
29
+ group: release
30
+ cancel-in-progress: false
31
+
32
+ jobs:
33
+ preflight:
34
+ runs-on: ubuntu-24.04
35
+ permissions:
36
+ contents: read
37
+ steps:
38
+ - name: Check release identity before running candidate code
39
+ env:
40
+ VERSION: ${{ inputs.version }}
41
+ COMMIT: ${{ inputs.commit }}
42
+ CONFIRM: ${{ inputs.confirm }}
43
+ REF: ${{ github.ref }}
44
+ DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
45
+ RUN_SHA: ${{ github.sha }}
46
+ run: |
47
+ set -euo pipefail
48
+ test "$GITHUB_REPOSITORY" = "marcosudau-qt/dynamic-icon-engine"
49
+ test "$REF" = "refs/heads/$DEFAULT_BRANCH"
50
+ [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+((a|b|rc)[0-9]+)?$ ]]
51
+ [[ "$COMMIT" =~ ^([0-9a-f]{40}|[0-9a-f]{64})$ ]]
52
+ test "$COMMIT" = "$RUN_SHA"
53
+ test "$CONFIRM" = "v$VERSION"
54
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
55
+ with:
56
+ ref: ${{ github.sha }}
57
+ persist-credentials: false
58
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
59
+ with:
60
+ python-version: "3.12"
61
+ - name: Verify candidate version and full MIT license without a tag
62
+ env:
63
+ VERSION: ${{ inputs.version }}
64
+ COMMIT: ${{ inputs.commit }}
65
+ run: |
66
+ set -euo pipefail
67
+ test "$(git rev-parse HEAD)" = "$COMMIT"
68
+ python scripts/release/check_release_readiness.py --tag "v$VERSION" --skip-git
69
+
70
+ qualify:
71
+ needs: preflight
72
+ permissions:
73
+ contents: read
74
+ # A job-level local reusable workflow resolves to the caller's commit.
75
+ # actionlint 1.7.12 does not support the newer self-repository spelling.
76
+ uses: ./.github/workflows/ci.yml # zizmor: ignore[self-repository]
77
+
78
+ dry-run-report:
79
+ if: ${{ inputs.dry_run }}
80
+ needs: [preflight, qualify]
81
+ runs-on: ubuntu-24.04
82
+ permissions:
83
+ contents: read
84
+ steps:
85
+ - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
86
+ with:
87
+ artifact-ids: ${{ needs.qualify.outputs.artifact_id }}
88
+ path: artifact
89
+ - name: Verify the exact qualified files
90
+ env:
91
+ MANIFEST_SHA: ${{ needs.qualify.outputs.manifest_sha }}
92
+ VERSION: ${{ inputs.version }}
93
+ run: |
94
+ set -euo pipefail
95
+ [[ "$MANIFEST_SHA" =~ ^[0-9a-f]{64}$ ]]
96
+ test "$(sha256sum artifact/SHA256SUMS.txt | cut -d' ' -f1)" = "$MANIFEST_SHA"
97
+ test "$(find artifact -type f | wc -l)" -eq 3
98
+ test -f "artifact/dynamic_icon_engine-$VERSION-py3-none-any.whl"
99
+ test -f "artifact/dynamic_icon_engine-$VERSION.tar.gz"
100
+ (cd artifact && sha256sum --check --strict SHA256SUMS.txt)
101
+ - name: Qualification report (no write jobs)
102
+ env:
103
+ COMMIT: ${{ inputs.commit }}
104
+ run: |
105
+ {
106
+ echo "Qualified commit: $COMMIT"
107
+ cat artifact/SHA256SUMS.txt
108
+ echo "DRY RUN: no tag, no PyPI upload, no GitHub release."
109
+ } >> "$GITHUB_STEP_SUMMARY"
110
+
111
+ tag:
112
+ if: ${{ inputs.dry_run == false }}
113
+ needs: [preflight, qualify]
114
+ runs-on: ubuntu-24.04
115
+ environment: pypi
116
+ permissions:
117
+ contents: write
118
+ steps:
119
+ - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
120
+ with:
121
+ artifact-ids: ${{ needs.qualify.outputs.artifact_id }}
122
+ path: artifact
123
+ - name: Verify the exact qualified files
124
+ env:
125
+ MANIFEST_SHA: ${{ needs.qualify.outputs.manifest_sha }}
126
+ VERSION: ${{ inputs.version }}
127
+ run: |
128
+ set -euo pipefail
129
+ [[ "$MANIFEST_SHA" =~ ^[0-9a-f]{64}$ ]]
130
+ test "$(sha256sum artifact/SHA256SUMS.txt | cut -d' ' -f1)" = "$MANIFEST_SHA"
131
+ test "$(find artifact -type f | wc -l)" -eq 3
132
+ test -f "artifact/dynamic_icon_engine-$VERSION-py3-none-any.whl"
133
+ test -f "artifact/dynamic_icon_engine-$VERSION.tar.gz"
134
+ (cd artifact && sha256sum --check --strict SHA256SUMS.txt)
135
+ - name: Check explicit approval and create annotated tag only now
136
+ env:
137
+ GH_TOKEN: ${{ github.token }}
138
+ TAG: v${{ inputs.version }}
139
+ COMMIT: ${{ inputs.commit }}
140
+ VERSION: ${{ inputs.version }}
141
+ APPROVED_VERSION: ${{ vars.RELEASE_APPROVED_VERSION }}
142
+ APPROVED_COMMIT: ${{ vars.RELEASE_APPROVED_COMMIT }}
143
+ DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
144
+ run: |
145
+ set -euo pipefail
146
+ test "$APPROVED_VERSION" = "$VERSION"
147
+ test "$APPROVED_COMMIT" = "$COMMIT"
148
+ test "$(gh api "repos/$GITHUB_REPOSITORY/git/ref/heads/$DEFAULT_BRANCH" --jq .object.sha)" = "$COMMIT"
149
+ refs=$(gh api "repos/$GITHUB_REPOSITORY/git/matching-refs/tags/$TAG")
150
+ existing=$(jq -r --arg ref "refs/tags/$TAG" '.[] | select(.ref == $ref) | .object.sha' <<< "$refs")
151
+ if [ -z "$existing" ]; then
152
+ object=$(gh api --method POST "repos/$GITHUB_REPOSITORY/git/tags" -f tag="$TAG" -f message="Qualified release $TAG" -f object="$COMMIT" -f type=commit --jq .sha)
153
+ [[ "$object" =~ ^([0-9a-f]{40}|[0-9a-f]{64})$ ]]
154
+ test "${#object}" = "${#COMMIT}"
155
+ gh api --method POST "repos/$GITHUB_REPOSITORY/git/refs" -f ref="refs/tags/$TAG" -f sha="$object" >/dev/null
156
+ fi
157
+ ref=$(gh api "repos/$GITHUB_REPOSITORY/git/ref/tags/$TAG")
158
+ test "$(jq -r '.object.type' <<< "$ref")" = tag
159
+ object=$(jq -r '.object.sha' <<< "$ref")
160
+ [[ "$object" =~ ^([0-9a-f]{40}|[0-9a-f]{64})$ ]]
161
+ test "${#object}" = "${#COMMIT}"
162
+ annotated=$(gh api "repos/$GITHUB_REPOSITORY/git/tags/$object")
163
+ test "$(jq -r '.object.type' <<< "$annotated")" = commit
164
+ test "$(jq -r '.object.sha' <<< "$annotated")" = "$COMMIT"
165
+ test "$(jq -r '.tag' <<< "$annotated")" = "$TAG"
166
+
167
+ pypi:
168
+ if: ${{ inputs.dry_run == false }}
169
+ needs: [preflight, qualify, tag]
170
+ runs-on: ubuntu-24.04
171
+ environment: pypi
172
+ permissions:
173
+ contents: read
174
+ id-token: write
175
+ steps:
176
+ - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
177
+ with:
178
+ artifact-ids: ${{ needs.qualify.outputs.artifact_id }}
179
+ path: artifact
180
+ - name: Verify the exact qualified files
181
+ env:
182
+ MANIFEST_SHA: ${{ needs.qualify.outputs.manifest_sha }}
183
+ VERSION: ${{ inputs.version }}
184
+ run: |
185
+ set -euo pipefail
186
+ [[ "$MANIFEST_SHA" =~ ^[0-9a-f]{64}$ ]]
187
+ test "$(sha256sum artifact/SHA256SUMS.txt | cut -d' ' -f1)" = "$MANIFEST_SHA"
188
+ test "$(find artifact -type f | wc -l)" -eq 3
189
+ test -f "artifact/dynamic_icon_engine-$VERSION-py3-none-any.whl"
190
+ test -f "artifact/dynamic_icon_engine-$VERSION.tar.gz"
191
+ (cd artifact && sha256sum --check --strict SHA256SUMS.txt)
192
+ - name: Recheck approval and immutable tag before publication
193
+ env:
194
+ GH_TOKEN: ${{ github.token }}
195
+ TAG: v${{ inputs.version }}
196
+ COMMIT: ${{ inputs.commit }}
197
+ VERSION: ${{ inputs.version }}
198
+ APPROVED_VERSION: ${{ vars.RELEASE_APPROVED_VERSION }}
199
+ APPROVED_COMMIT: ${{ vars.RELEASE_APPROVED_COMMIT }}
200
+ run: |
201
+ set -euo pipefail
202
+ test "$APPROVED_VERSION" = "$VERSION"
203
+ test "$APPROVED_COMMIT" = "$COMMIT"
204
+ ref=$(gh api "repos/$GITHUB_REPOSITORY/git/ref/tags/$TAG")
205
+ test "$(jq -r '.object.type' <<< "$ref")" = tag
206
+ object=$(jq -r '.object.sha' <<< "$ref")
207
+ [[ "$object" =~ ^([0-9a-f]{40}|[0-9a-f]{64})$ ]]
208
+ test "${#object}" = "${#COMMIT}"
209
+ annotated=$(gh api "repos/$GITHUB_REPOSITORY/git/tags/$object")
210
+ test "$(jq -r '.object.type' <<< "$annotated")" = commit
211
+ test "$(jq -r '.object.sha' <<< "$annotated")" = "$COMMIT"
212
+ test "$(jq -r '.tag' <<< "$annotated")" = "$TAG"
213
+ mkdir dist
214
+ cp artifact/*.whl artifact/*.tar.gz dist/
215
+ - uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
216
+ with:
217
+ packages-dir: dist/
218
+
219
+ github-release:
220
+ if: ${{ inputs.dry_run == false }}
221
+ needs: [preflight, qualify, tag, pypi]
222
+ runs-on: ubuntu-24.04
223
+ permissions:
224
+ contents: write
225
+ steps:
226
+ - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
227
+ with:
228
+ artifact-ids: ${{ needs.qualify.outputs.artifact_id }}
229
+ path: artifact
230
+ - name: Verify the exact qualified files
231
+ env:
232
+ MANIFEST_SHA: ${{ needs.qualify.outputs.manifest_sha }}
233
+ VERSION: ${{ inputs.version }}
234
+ run: |
235
+ set -euo pipefail
236
+ [[ "$MANIFEST_SHA" =~ ^[0-9a-f]{64}$ ]]
237
+ test "$(sha256sum artifact/SHA256SUMS.txt | cut -d' ' -f1)" = "$MANIFEST_SHA"
238
+ test "$(find artifact -type f | wc -l)" -eq 3
239
+ test -f "artifact/dynamic_icon_engine-$VERSION-py3-none-any.whl"
240
+ test -f "artifact/dynamic_icon_engine-$VERSION.tar.gz"
241
+ (cd artifact && sha256sum --check --strict SHA256SUMS.txt)
242
+ - name: Recheck tag and create GitHub release with qualified files
243
+ env:
244
+ GH_TOKEN: ${{ github.token }}
245
+ TAG: v${{ inputs.version }}
246
+ COMMIT: ${{ inputs.commit }}
247
+ run: |
248
+ set -euo pipefail
249
+ ref=$(gh api "repos/$GITHUB_REPOSITORY/git/ref/tags/$TAG")
250
+ test "$(jq -r '.object.type' <<< "$ref")" = tag
251
+ object=$(jq -r '.object.sha' <<< "$ref")
252
+ [[ "$object" =~ ^([0-9a-f]{40}|[0-9a-f]{64})$ ]]
253
+ test "${#object}" = "${#COMMIT}"
254
+ annotated=$(gh api "repos/$GITHUB_REPOSITORY/git/tags/$object")
255
+ test "$(jq -r '.object.type' <<< "$annotated")" = commit
256
+ test "$(jq -r '.object.sha' <<< "$annotated")" = "$COMMIT"
257
+ test "$(jq -r '.tag' <<< "$annotated")" = "$TAG"
258
+ gh release create "$TAG" --repo "$GITHUB_REPOSITORY" --verify-tag --title "$TAG" --notes-file artifact/SHA256SUMS.txt artifact/*.whl artifact/*.tar.gz artifact/SHA256SUMS.txt
@@ -0,0 +1,70 @@
1
+ # Änderungsprotokoll
2
+
3
+ Alle nennenswerten Änderungen an `dynamic-icon-engine` werden hier festgehalten.
4
+ Format angelehnt an [Keep a Changelog](https://keepachangelog.com/de/1.1.0/);
5
+ Versionsnummern folgen [Semantic Versioning](https://semver.org/lang/de/).
6
+
7
+ Bisher ist keine Version veröffentlicht. Alle Einträge beschreiben lokale Stände.
8
+
9
+ ## [1.0.0] – 04.12.2026, lokaler Kandidat, nicht veröffentlicht
10
+
11
+ - Release: GitHub-Ziel `marcosudau-qt/dynamic-icon-engine`. Der manuelle Workflow qualifiziert den festgelegten Default-Branch-Commit samt Wheel und sdist vor der Tag-Erzeugung. Dry Run ohne Tag/Upload; Freigabe an Version und Commit gebunden.
12
+
13
+ ### Behoben
14
+ - **DIE-RV01:** `render_image` konnte bei einer für den Sicherheitsabstand zu kleinen Größe
15
+ (1/2 px) nach der fangbaren `GraphicSetError` mit einem Qt-Fatal (`0xC0000409`) abbrechen,
16
+ weil der `QPainter` noch aktiv war. Die Vordergrundmaske wird jetzt vor dem Painter
17
+ aufgelöst; alle Paint-Device-Freigaben nutzen `try/finally`. Regressionstests laufen in
18
+ getrennten Prozessen. Gültige Bilder bleiben pixelgleich.
19
+ - **DIE-RV02/A2:** Ein identisches `set_appearance` nach `unregister` der Animation ist jetzt
20
+ ein No-op (`False`); die laufende Animation behält ihren Snapshot.
21
+ - **DIE-RV02/A3:** Unicode-Ziffern als Manifest-Größe ergeben `GraphicSetError` statt
22
+ `ValueError`.
23
+ - **DIE-RV02/A5–A7:** Falsche Bildtypen im `GraphicSet` ergeben `GraphicSetError`;
24
+ `unhashable in AnimationRegistry` liefert `False`; `max_cached_icons=True` wird abgelehnt.
25
+ - **DIE-RV02/A4:** Der `errors.py`-Docstring beschreibt die tatsächliche Fehlerhierarchie.
26
+
27
+ ### Geändert
28
+ - **Lizenz:** MIT (`LICENSE`, PEP 639 `license = "MIT"`, `license-files = ["LICENSE"]`),
29
+ Copyright (c) 2026 marcosudau-vps; Sperrclassifier `Private :: Do Not Upload` entfernt.
30
+ - **Provenienz:** Das ausgelieferte Manifest nennt keine internen Quell-/Hostpfade mehr,
31
+ sondern neutrale Angaben zu den privaten Originalen; Maskenpixel und Dateihashes bleiben
32
+ unverändert.
33
+ - **Dokumentation:** Anwender-, Entwickler- und Referenzdoku auf 1.0.0 und MIT aktualisiert;
34
+ die 13 früheren `test_gap`-Einträge sind durch semantische Tests belegt.
35
+ - **Paketierung:** `MANIFEST.in` liefert Doku, Beispiele, Tests sowie benötigte `scripts/` und
36
+ `tools/` im sdist; private Originale/Arbeitsakten bleiben ausgeschlossen.
37
+ - **Release:** `.github/workflows/release.yml` startet ausschlie?lich manuell
38
+ vom Default-Branch mit expliziter Version, Commit und Best?tigung; `dry_run=true`
39
+ ist Standard. Die vollst?ndige CI qualifiziert den Commit vor der Tag-Erzeugung.
40
+ Schreibjobs pr?fen Freigabe und qualifizierte Artefakt-ID/Manifest erneut; kein
41
+ erneuter Build. Die Umgebung `pypi` sch?tzt Tag-Erzeugung und Upload.
42
+ Der CI-Build beh?lt den festen `SOURCE_DATE_EPOCH=1796342400`.
43
+ - **Lizenz-Gates:** Guard und `check_dist` verlangen exakt `license = "MIT"`,
44
+ `license-files = ["LICENSE"]`, den vollständigen MIT-Text mit
45
+ `Copyright (c) 2026 marcosudau-vps` sowie die bytegleiche `LICENSE` in Wheel und sdist.
46
+ - **Tests/CI:** 238 Tests gesamt (203 integrierte Bestandstests + 35 Regressionen);
47
+ sdist- und installierte-Wheel-Tests, Referenzchecker `--strict` und Workflow-Policy in CI.
48
+
49
+ ## [0.2.0] – lokaler Stand, nicht veröffentlicht
50
+
51
+ ### Hinzugefügt
52
+ - `CircleProfile`: alternatives Renderprofil mit farbigem Kreis auf transparenter
53
+ Außenfläche, optionaler Kontur und animierter Deckkraft nur für die Füllung. Das Profil
54
+ lädt kein Grafikset; `symbol_ext=True` ist damit ungültig.
55
+
56
+ ## [0.1.x] – interne Vorstufen, nicht veröffentlicht
57
+
58
+ ### Hinzugefügt
59
+ - Erste eigenständige Fassung: `IconAppearance`, `AnimationDefinition`/`AnimationRegistry`
60
+ mit den generischen Presets `pulse_slow`, `blink_fast` und `blink_triple`,
61
+ austauschbares `GraphicSet` mit mitgeliefertem Standardgrafikset, `IconRenderer`
62
+ (`QIcon` in 16–256 px) und `IconController` mit den Signalen `iconChanged` und
63
+ `animationFinished`; Testlabor `dynamic-icon-testlab`.
64
+
65
+ ### Behoben
66
+ - `IconController`: Ein Slot, der synchron auf `iconChanged` reagiert (z. B. mit
67
+ `dispose()`, `stop_animation()`, `replay()` oder einem neuen Aussehen), kann keinen
68
+ veralteten Lauf mehr fortsetzen oder ein überholtes `animationFinished` auslösen.
69
+ - Mutierende Controller-Methoden einschließlich `dispose()` setzen den GUI-Thread voraus
70
+ und weisen andere Threads verständlich ab.
@@ -0,0 +1,69 @@
1
+ # Mitwirken an der Dynamic Icon Engine
2
+
3
+ Danke für das Interesse. Diese Datei beschreibt, wie das Projekt lokal entwickelt, geprüft
4
+ und gebaut wird.
5
+
6
+ > **Stand:** Das Projekt ist noch nicht veröffentlicht. Es steht unter der MIT-Lizenz
7
+ > (siehe [LICENSE](LICENSE)); Beiträge werden unter dieser Lizenz angenommen. Die
8
+ > tatsächliche Veröffentlichung bleibt ein separater manueller Schritt.
9
+
10
+ ## Voraussetzungen
11
+
12
+ - Python 3.12 oder neuer
13
+ - `PySide6>=6.8,<7` (einzige Laufzeitabhängigkeit)
14
+ - Für Tests: `pytest>=8` (Extra `test`)
15
+
16
+ ## Entwicklungsumgebung
17
+
18
+ ```powershell
19
+ py -3.12 -m venv .venv
20
+ .venv\Scripts\python.exe -m pip install -e ".[test]"
21
+ ```
22
+
23
+ Unter Linux/macOS entsprechend `python3.12 -m venv .venv` und `.venv/bin/python`.
24
+
25
+ ## Tests
26
+
27
+ ```powershell
28
+ .venv\Scripts\python.exe -m pytest # headless (offscreen)
29
+ $env:DIE_TEST_NATIVE = "1"; .venv\Scripts\python.exe -m pytest # native Qt-Plattform
30
+ ```
31
+
32
+ Die Tests laufen standardmäßig mit `QT_QPA_PLATFORM=offscreen` und brauchen weder Tray noch
33
+ Bildschirm. Das Testlabor startet mit `dynamic-icon-testlab` bzw.
34
+ `python -m dynamic_icon_engine.testlab`; `--smoke` läuft alle Referenzfälle ohne Eingriff ab.
35
+
36
+ ## Paket bauen
37
+
38
+ ```powershell
39
+ .venv\Scripts\python.exe -m pip install build twine
40
+ .venv\Scripts\python.exe -m build
41
+ .venv\Scripts\python.exe -m twine check dist/*
42
+ ```
43
+
44
+ Das Wheel enthält genau das Paket `dynamic_icon_engine` mit den Ressourcen unter
45
+ `resources/default/` (15 PNG-Masken und `manifest.json`) sowie `LICENSE`. Das sdist enthält
46
+ zusätzlich Doku, Beispiele, Tests und die benötigten `scripts/` und `tools/`; private
47
+ Originale und Arbeitsakten bleiben ausgeschlossen.
48
+
49
+ ## Regeln für Änderungen
50
+
51
+ - **Neutraler Kern:** Die Module direkt unter `dynamic_icon_engine/` kennen keine
52
+ Fachbegriffe eines Hosts und importieren nur die Standardbibliothek und PySide6, aber
53
+ kein `QtWidgets`. `tests/test_neutrality.py` prüft das. Das Testlabor
54
+ (`dynamic_icon_engine.testlab`) ist Demo und gehört nicht zum Kern.
55
+ - **Keine neuen Laufzeitabhängigkeiten** ohne vorherige Abstimmung.
56
+ - **Öffentliche API** (siehe README) nur mit Eintrag im `CHANGELOG.md` ändern; inkompatible
57
+ Änderungen erfordern eine neue Hauptversion nach Semantic Versioning.
58
+ - **Version** nur in `src/dynamic_icon_engine/_version.py` ändern; `pyproject.toml` liest sie
59
+ von dort.
60
+ - **Grafikressourcen** unter `resources/default/` werden nicht von Hand bearbeitet. Eigene
61
+ Grafiksets lassen sich über `GraphicSet.load(...)` einbinden, ohne das Standardset zu
62
+ ändern.
63
+ - Jede Verhaltensänderung braucht einen Test; vor dem Einreichen muss `pytest` grün sein.
64
+ - Keine Zugangsdaten, persönlichen Daten oder lokalen Pfade in Code, Tests oder Commits.
65
+
66
+ ## Sicherheitslücken
67
+
68
+ Sicherheitsrelevante Funde bitte nicht als öffentliches Issue melden, sondern wie in
69
+ [SECURITY.md](SECURITY.md) beschrieben.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 marcosudau-vps
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.