gp2040ce-hostlighting 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.
- gp2040ce_hostlighting-1.0.0/.git_archival.txt +3 -0
- gp2040ce_hostlighting-1.0.0/.gitattributes +13 -0
- gp2040ce_hostlighting-1.0.0/.github/ISSUE_TEMPLATE/bug-report.yml +76 -0
- gp2040ce_hostlighting-1.0.0/.github/ISSUE_TEMPLATE/config.yml +14 -0
- gp2040ce_hostlighting-1.0.0/.github/ISSUE_TEMPLATE/documentation.yml +35 -0
- gp2040ce_hostlighting-1.0.0/.github/ISSUE_TEMPLATE/enhancement.yml +43 -0
- gp2040ce_hostlighting-1.0.0/.github/workflows/README.md +24 -0
- gp2040ce_hostlighting-1.0.0/.github/workflows/release.yml +145 -0
- gp2040ce_hostlighting-1.0.0/.gitignore +21 -0
- gp2040ce_hostlighting-1.0.0/LICENSE +674 -0
- gp2040ce_hostlighting-1.0.0/LICENSES/GPL-3.0-or-later.txt +674 -0
- gp2040ce_hostlighting-1.0.0/PKG-INFO +752 -0
- gp2040ce_hostlighting-1.0.0/README.md +713 -0
- gp2040ce_hostlighting-1.0.0/REUSE.toml +18 -0
- gp2040ce_hostlighting-1.0.0/docs/README.md +15 -0
- gp2040ce_hostlighting-1.0.0/docs/host-lighting.md +1815 -0
- gp2040ce_hostlighting-1.0.0/gp2040ce_hostlighting/README.md +30 -0
- gp2040ce_hostlighting-1.0.0/gp2040ce_hostlighting/__init__.py +12 -0
- gp2040ce_hostlighting-1.0.0/gp2040ce_hostlighting/cache.py +215 -0
- gp2040ce_hostlighting-1.0.0/gp2040ce_hostlighting/claim.py +466 -0
- gp2040ce_hostlighting-1.0.0/gp2040ce_hostlighting/conformance.py +1669 -0
- gp2040ce_hostlighting-1.0.0/gp2040ce_hostlighting/enums.py +65 -0
- gp2040ce_hostlighting-1.0.0/gp2040ce_hostlighting/frames.py +221 -0
- gp2040ce_hostlighting-1.0.0/gp2040ce_hostlighting/layout.py +95 -0
- gp2040ce_hostlighting-1.0.0/gp2040ce_hostlighting/protocol.py +2177 -0
- gp2040ce_hostlighting-1.0.0/gp2040ce_hostlighting/py.typed +0 -0
- gp2040ce_hostlighting-1.0.0/gp2040ce_hostlighting/records.py +743 -0
- gp2040ce_hostlighting-1.0.0/gp2040ce_hostlighting/runner.py +522 -0
- gp2040ce_hostlighting-1.0.0/gp2040ce_hostlighting/session.py +807 -0
- gp2040ce_hostlighting-1.0.0/gp2040ce_hostlighting/testing.py +1495 -0
- gp2040ce_hostlighting-1.0.0/gp2040ce_hostlighting/tools/README.md +22 -0
- gp2040ce_hostlighting-1.0.0/gp2040ce_hostlighting/tools/__init__.py +9 -0
- gp2040ce_hostlighting-1.0.0/gp2040ce_hostlighting/tools/commands.py +1295 -0
- gp2040ce_hostlighting-1.0.0/gp2040ce_hostlighting/tools/conformance.py +128 -0
- gp2040ce_hostlighting-1.0.0/gp2040ce_hostlighting/tools/hlp.py +346 -0
- gp2040ce_hostlighting-1.0.0/gp2040ce_hostlighting.egg-info/PKG-INFO +752 -0
- gp2040ce_hostlighting-1.0.0/gp2040ce_hostlighting.egg-info/SOURCES.txt +84 -0
- gp2040ce_hostlighting-1.0.0/gp2040ce_hostlighting.egg-info/dependency_links.txt +1 -0
- gp2040ce_hostlighting-1.0.0/gp2040ce_hostlighting.egg-info/entry_points.txt +15 -0
- gp2040ce_hostlighting-1.0.0/gp2040ce_hostlighting.egg-info/requires.txt +19 -0
- gp2040ce_hostlighting-1.0.0/gp2040ce_hostlighting.egg-info/scm_file_list.json +80 -0
- gp2040ce_hostlighting-1.0.0/gp2040ce_hostlighting.egg-info/scm_version.json +8 -0
- gp2040ce_hostlighting-1.0.0/gp2040ce_hostlighting.egg-info/top_level.txt +1 -0
- gp2040ce_hostlighting-1.0.0/packaging/README.md +26 -0
- gp2040ce_hostlighting-1.0.0/packaging/build-constraints.txt +11 -0
- gp2040ce_hostlighting-1.0.0/packaging/hlp.spec +91 -0
- gp2040ce_hostlighting-1.0.0/packaging/icons/README.md +23 -0
- gp2040ce_hostlighting-1.0.0/packaging/icons/hlp.icns +0 -0
- gp2040ce_hostlighting-1.0.0/packaging/icons/hlp.ico +0 -0
- gp2040ce_hostlighting-1.0.0/packaging/icons/hlp.png +0 -0
- gp2040ce_hostlighting-1.0.0/packaging/icons/hlp.svg +1 -0
- gp2040ce_hostlighting-1.0.0/packaging/linux/README.md +19 -0
- gp2040ce_hostlighting-1.0.0/packaging/linux/hlp.desktop +18 -0
- gp2040ce_hostlighting-1.0.0/packaging/macos/Info.plist +40 -0
- gp2040ce_hostlighting-1.0.0/packaging/macos/README.md +22 -0
- gp2040ce_hostlighting-1.0.0/packaging/macos/hlp-launcher +11 -0
- gp2040ce_hostlighting-1.0.0/packaging/notices.py +211 -0
- gp2040ce_hostlighting-1.0.0/packaging/requirements.txt +20 -0
- gp2040ce_hostlighting-1.0.0/packaging/third-party.toml +61 -0
- gp2040ce_hostlighting-1.0.0/pyproject.toml +89 -0
- gp2040ce_hostlighting-1.0.0/scripts/README.md +25 -0
- gp2040ce_hostlighting-1.0.0/scripts/build-app.ps1 +32 -0
- gp2040ce_hostlighting-1.0.0/scripts/build-app.sh +53 -0
- gp2040ce_hostlighting-1.0.0/scripts/fetch-sources.sh +39 -0
- gp2040ce_hostlighting-1.0.0/scripts/make_icons.py +69 -0
- gp2040ce_hostlighting-1.0.0/scripts/test_vectors.py +698 -0
- gp2040ce_hostlighting-1.0.0/setup.cfg +4 -0
- gp2040ce_hostlighting-1.0.0/tests/README.md +40 -0
- gp2040ce_hostlighting-1.0.0/tests/conftest.py +96 -0
- gp2040ce_hostlighting-1.0.0/tests/test_cache.py +204 -0
- gp2040ce_hostlighting-1.0.0/tests/test_claim.py +556 -0
- gp2040ce_hostlighting-1.0.0/tests/test_commands.py +876 -0
- gp2040ce_hostlighting-1.0.0/tests/test_conformance.py +1113 -0
- gp2040ce_hostlighting-1.0.0/tests/test_device.py +354 -0
- gp2040ce_hostlighting-1.0.0/tests/test_enums.py +23 -0
- gp2040ce_hostlighting-1.0.0/tests/test_frames.py +166 -0
- gp2040ce_hostlighting-1.0.0/tests/test_hlp.py +333 -0
- gp2040ce_hostlighting-1.0.0/tests/test_layout.py +48 -0
- gp2040ce_hostlighting-1.0.0/tests/test_licence.py +21 -0
- gp2040ce_hostlighting-1.0.0/tests/test_protocol.py +1133 -0
- gp2040ce_hostlighting-1.0.0/tests/test_runner.py +571 -0
- gp2040ce_hostlighting-1.0.0/tests/test_session.py +1430 -0
- gp2040ce_hostlighting-1.0.0/tests/test_testing.py +596 -0
- gp2040ce_hostlighting-1.0.0/tests/test_vectors.py +152 -0
- gp2040ce_hostlighting-1.0.0/tests/vectors/README.md +125 -0
- gp2040ce_hostlighting-1.0.0/tests/vectors/vectors.json +1807 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# gp2040ce-hostlighting (GP2040-CE Host Lighting library and tools)
|
|
2
|
+
# Filename: .gitattributes
|
|
3
|
+
# Folder: (repository root)
|
|
4
|
+
# https://github.com/djGLiTCH/gp2040ce-hostlighting
|
|
5
|
+
# SPDX-FileCopyrightText: (C) 2026 Jacob Simpson (DJ GLiTCH)
|
|
6
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
7
|
+
# See LICENSES/GPL-3.0-or-later.txt at the repository root.
|
|
8
|
+
|
|
9
|
+
* text=auto
|
|
10
|
+
*.sh text eol=lf
|
|
11
|
+
packaging/macos/hlp-launcher text eol=lf
|
|
12
|
+
packaging/linux/hlp.desktop text eol=lf
|
|
13
|
+
.git_archival.txt export-subst
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# gp2040ce-hostlighting (GP2040-CE Host Lighting library and tools)
|
|
2
|
+
# Filename: bug-report.yml
|
|
3
|
+
# Folder: .github/ISSUE_TEMPLATE
|
|
4
|
+
# https://github.com/djGLiTCH/gp2040ce-hostlighting
|
|
5
|
+
# SPDX-FileCopyrightText: (C) 2026 Jacob Simpson (DJ GLiTCH)
|
|
6
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
7
|
+
# See LICENSES/GPL-3.0-or-later.txt at the repository root.
|
|
8
|
+
|
|
9
|
+
name: Bug report
|
|
10
|
+
description: Something in the library, the hlp app or commands, the conformance check or the Host Lighting firmware does not work as documented
|
|
11
|
+
labels: [bug]
|
|
12
|
+
body:
|
|
13
|
+
- type: dropdown
|
|
14
|
+
id: part
|
|
15
|
+
attributes:
|
|
16
|
+
label: Part
|
|
17
|
+
options:
|
|
18
|
+
- Library (Python API)
|
|
19
|
+
- hlp app or hlp-* commands
|
|
20
|
+
- Conformance check
|
|
21
|
+
- Host Lighting firmware (GP2040-CE with Host Lighting)
|
|
22
|
+
- Not sure
|
|
23
|
+
validations:
|
|
24
|
+
required: true
|
|
25
|
+
- type: textarea
|
|
26
|
+
id: what-happened
|
|
27
|
+
attributes:
|
|
28
|
+
label: What happened
|
|
29
|
+
description: What you did, what you expected and what happened instead
|
|
30
|
+
validations:
|
|
31
|
+
required: true
|
|
32
|
+
- type: textarea
|
|
33
|
+
id: steps
|
|
34
|
+
attributes:
|
|
35
|
+
label: Steps to reproduce
|
|
36
|
+
placeholder: |
|
|
37
|
+
1. hlp fill FF0000
|
|
38
|
+
2.
|
|
39
|
+
validations:
|
|
40
|
+
required: true
|
|
41
|
+
- type: input
|
|
42
|
+
id: version
|
|
43
|
+
attributes:
|
|
44
|
+
label: hlp version
|
|
45
|
+
description: The output of hlp --version
|
|
46
|
+
validations:
|
|
47
|
+
required: true
|
|
48
|
+
- type: dropdown
|
|
49
|
+
id: installed
|
|
50
|
+
attributes:
|
|
51
|
+
label: Installed as
|
|
52
|
+
options:
|
|
53
|
+
- The hlp app from a release
|
|
54
|
+
- pip install from a tag
|
|
55
|
+
- A clone of this repository
|
|
56
|
+
validations:
|
|
57
|
+
required: true
|
|
58
|
+
- type: input
|
|
59
|
+
id: os
|
|
60
|
+
attributes:
|
|
61
|
+
label: Operating system
|
|
62
|
+
placeholder: Windows 11 24H2, macOS 15.7, Ubuntu 24.04
|
|
63
|
+
validations:
|
|
64
|
+
required: true
|
|
65
|
+
- type: textarea
|
|
66
|
+
id: board
|
|
67
|
+
attributes:
|
|
68
|
+
label: Board and firmware
|
|
69
|
+
description: The board, and the output of hlp caps, which names the firmware version
|
|
70
|
+
render: text
|
|
71
|
+
- type: textarea
|
|
72
|
+
id: log
|
|
73
|
+
attributes:
|
|
74
|
+
label: Log
|
|
75
|
+
description: The command's output with -d for the debug log, if it helps
|
|
76
|
+
render: text
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# gp2040ce-hostlighting (GP2040-CE Host Lighting library and tools)
|
|
2
|
+
# Filename: config.yml
|
|
3
|
+
# Folder: .github/ISSUE_TEMPLATE
|
|
4
|
+
# https://github.com/djGLiTCH/gp2040ce-hostlighting
|
|
5
|
+
# SPDX-FileCopyrightText: (C) 2026 Jacob Simpson (DJ GLiTCH)
|
|
6
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
7
|
+
# See LICENSES/GPL-3.0-or-later.txt at the repository root.
|
|
8
|
+
|
|
9
|
+
# The issue forms only, with GP2040-CE's own issues for problems outside Host Lighting
|
|
10
|
+
blank_issues_enabled: false
|
|
11
|
+
contact_links:
|
|
12
|
+
- name: GP2040-CE issues
|
|
13
|
+
url: https://github.com/OpenStickCommunity/GP2040-CE/issues
|
|
14
|
+
about: Problems with GP2040-CE outside Host Lighting
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# gp2040ce-hostlighting (GP2040-CE Host Lighting library and tools)
|
|
2
|
+
# Filename: documentation.yml
|
|
3
|
+
# Folder: .github/ISSUE_TEMPLATE
|
|
4
|
+
# https://github.com/djGLiTCH/gp2040ce-hostlighting
|
|
5
|
+
# SPDX-FileCopyrightText: (C) 2026 Jacob Simpson (DJ GLiTCH)
|
|
6
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
7
|
+
# See LICENSES/GPL-3.0-or-later.txt at the repository root.
|
|
8
|
+
|
|
9
|
+
name: Documentation
|
|
10
|
+
description: Something in the documentation is wrong, unclear or missing
|
|
11
|
+
labels: [documentation]
|
|
12
|
+
body:
|
|
13
|
+
- type: dropdown
|
|
14
|
+
id: where
|
|
15
|
+
attributes:
|
|
16
|
+
label: Where
|
|
17
|
+
options:
|
|
18
|
+
- The README
|
|
19
|
+
- A folder's README
|
|
20
|
+
- The Host Lighting specification (docs/host-lighting.md)
|
|
21
|
+
- A command's help (--help)
|
|
22
|
+
- Somewhere else
|
|
23
|
+
validations:
|
|
24
|
+
required: true
|
|
25
|
+
- type: input
|
|
26
|
+
id: section
|
|
27
|
+
attributes:
|
|
28
|
+
label: Section or link
|
|
29
|
+
placeholder: "README, The library: Testing a host"
|
|
30
|
+
- type: textarea
|
|
31
|
+
id: what
|
|
32
|
+
attributes:
|
|
33
|
+
label: What is wrong, unclear or missing
|
|
34
|
+
validations:
|
|
35
|
+
required: true
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# gp2040ce-hostlighting (GP2040-CE Host Lighting library and tools)
|
|
2
|
+
# Filename: enhancement.yml
|
|
3
|
+
# Folder: .github/ISSUE_TEMPLATE
|
|
4
|
+
# https://github.com/djGLiTCH/gp2040ce-hostlighting
|
|
5
|
+
# SPDX-FileCopyrightText: (C) 2026 Jacob Simpson (DJ GLiTCH)
|
|
6
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
7
|
+
# See LICENSES/GPL-3.0-or-later.txt at the repository root.
|
|
8
|
+
|
|
9
|
+
name: Enhancement request
|
|
10
|
+
description: A change or addition to the library, the hlp app or commands, the conformance check or the Host Lighting firmware
|
|
11
|
+
labels: [enhancement]
|
|
12
|
+
body:
|
|
13
|
+
- type: dropdown
|
|
14
|
+
id: part
|
|
15
|
+
attributes:
|
|
16
|
+
label: Part
|
|
17
|
+
options:
|
|
18
|
+
- Library (Python API)
|
|
19
|
+
- hlp app or hlp-* commands
|
|
20
|
+
- Conformance check
|
|
21
|
+
- Host Lighting firmware (GP2040-CE with Host Lighting)
|
|
22
|
+
- Not sure
|
|
23
|
+
validations:
|
|
24
|
+
required: true
|
|
25
|
+
- type: textarea
|
|
26
|
+
id: problem
|
|
27
|
+
attributes:
|
|
28
|
+
label: The problem
|
|
29
|
+
description: What you cannot do now, or what is harder than it should be
|
|
30
|
+
validations:
|
|
31
|
+
required: true
|
|
32
|
+
- type: textarea
|
|
33
|
+
id: change
|
|
34
|
+
attributes:
|
|
35
|
+
label: The change
|
|
36
|
+
description: What you would like added or changed
|
|
37
|
+
validations:
|
|
38
|
+
required: true
|
|
39
|
+
- type: textarea
|
|
40
|
+
id: alternatives
|
|
41
|
+
attributes:
|
|
42
|
+
label: Alternatives
|
|
43
|
+
description: Other ways you considered or use now
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
gp2040ce-hostlighting (GP2040-CE Host Lighting library and tools)
|
|
3
|
+
Filename: README.md
|
|
4
|
+
Folder: .github/workflows
|
|
5
|
+
https://github.com/djGLiTCH/gp2040ce-hostlighting
|
|
6
|
+
SPDX-FileCopyrightText: (C) 2026 Jacob Simpson (DJ GLiTCH)
|
|
7
|
+
SPDX-License-Identifier: GPL-3.0-or-later
|
|
8
|
+
See LICENSES/GPL-3.0-or-later.txt at the repository root.
|
|
9
|
+
-->
|
|
10
|
+
|
|
11
|
+
# .github/workflows
|
|
12
|
+
|
|
13
|
+
The repository's GitHub Actions workflows. Each action is pinned to a commit.
|
|
14
|
+
|
|
15
|
+
| File | What it does |
|
|
16
|
+
|---|---|
|
|
17
|
+
| `release.yml` | Builds the hlp app on Windows (x64), macOS (x64 and ARM64) and Linux (x64 and ARM64) with `scripts/build-app.*`, checks that each runs, and builds the wheel and sdist. A `v*` tag also makes a draft GitHub release with them, a pre-release for an rc, which the owner writes up and publishes. Run by hand, it keeps the files as the run's artifacts |
|
|
18
|
+
|
|
19
|
+
A release carries `hlp-windows-x64.exe`, `hlp-macos-x64.zip`,
|
|
20
|
+
`hlp-macos-arm64.zip`, `hlp-linux-x64.tar.gz` and `hlp-linux-arm64.tar.gz`, each
|
|
21
|
+
platform's `THIRD-PARTY-NOTICES` (inside each archive, and beside the Windows
|
|
22
|
+
app), `hlp-linux-x64-sources.tar.gz` and `hlp-linux-arm64-sources.tar.gz` (the
|
|
23
|
+
source of the GPL-family libraries the Linux apps bundle), the wheel, the sdist
|
|
24
|
+
and `SHA256SUMS.txt`.
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# gp2040ce-hostlighting (GP2040-CE Host Lighting library and tools)
|
|
2
|
+
# Filename: release.yml
|
|
3
|
+
# Folder: .github/workflows
|
|
4
|
+
# https://github.com/djGLiTCH/gp2040ce-hostlighting
|
|
5
|
+
# SPDX-FileCopyrightText: (C) 2026 Jacob Simpson (DJ GLiTCH)
|
|
6
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
7
|
+
# See LICENSES/GPL-3.0-or-later.txt at the repository root.
|
|
8
|
+
|
|
9
|
+
# Build the hlp app for Windows (x64), macOS (x64 and ARM64) and Linux (x64 and ARM64), and the wheel and sdist.
|
|
10
|
+
# A v* tag also makes a draft GitHub release with them, a pre-release for an rc, for the owner to write up and
|
|
11
|
+
# publish. Run by hand, it builds and keeps the files as the run's artifacts.
|
|
12
|
+
|
|
13
|
+
name: Release
|
|
14
|
+
|
|
15
|
+
on:
|
|
16
|
+
push:
|
|
17
|
+
tags: ['v*']
|
|
18
|
+
workflow_dispatch:
|
|
19
|
+
|
|
20
|
+
permissions:
|
|
21
|
+
contents: read
|
|
22
|
+
|
|
23
|
+
jobs:
|
|
24
|
+
app:
|
|
25
|
+
name: hlp app (${{ matrix.name }})
|
|
26
|
+
strategy:
|
|
27
|
+
fail-fast: false
|
|
28
|
+
matrix:
|
|
29
|
+
include:
|
|
30
|
+
- {name: windows-x64, os: windows-2025}
|
|
31
|
+
- {name: macos-arm64, os: macos-15}
|
|
32
|
+
- {name: macos-x64, os: macos-15-intel}
|
|
33
|
+
- {name: linux-x64, os: ubuntu-22.04}
|
|
34
|
+
- {name: linux-arm64, os: ubuntu-22.04-arm}
|
|
35
|
+
runs-on: ${{ matrix.os }}
|
|
36
|
+
steps:
|
|
37
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
38
|
+
with:
|
|
39
|
+
fetch-depth: 0 # the tags, for the version setuptools-scm gives
|
|
40
|
+
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
|
|
41
|
+
with:
|
|
42
|
+
python-version: '3.14.8' # the version third-party.toml has Doc/license.rst's SHA-256 for
|
|
43
|
+
- name: Prepare Linux
|
|
44
|
+
if: runner.os == 'Linux'
|
|
45
|
+
run: |
|
|
46
|
+
sudo apt-get update -qq
|
|
47
|
+
sudo apt-get install -y -qq libudev-dev libusb-1.0-0-dev # hidapi builds against these
|
|
48
|
+
- name: Build on Windows
|
|
49
|
+
if: runner.os == 'Windows'
|
|
50
|
+
run: |
|
|
51
|
+
python -m venv build\app-venv
|
|
52
|
+
powershell -ExecutionPolicy Bypass -File scripts\build-app.ps1
|
|
53
|
+
- name: Build on macOS or Linux
|
|
54
|
+
if: runner.os != 'Windows'
|
|
55
|
+
run: sh scripts/build-app.sh python
|
|
56
|
+
- name: Check the app
|
|
57
|
+
shell: bash
|
|
58
|
+
run: |
|
|
59
|
+
app=dist/hlp; [ -f dist/hlp.exe ] && app=dist/hlp.exe
|
|
60
|
+
"$app" --version
|
|
61
|
+
"$app" --help > /dev/null
|
|
62
|
+
"$app" ping --help > /dev/null
|
|
63
|
+
"$app" --licences > licences.txt
|
|
64
|
+
grep -q 'Third-party notices for hlp' licences.txt
|
|
65
|
+
if [ "$GITHUB_REF_TYPE" = tag ]; then
|
|
66
|
+
"$app" --version | grep -q "^gp2040ce-hostlighting ${GITHUB_REF_NAME#v} " \
|
|
67
|
+
|| { echo "the app's version is not the tag's" >&2; exit 1; }
|
|
68
|
+
fi
|
|
69
|
+
- name: Fetch the source of the bundled libraries with a GPL-family licence
|
|
70
|
+
if: runner.os == 'Linux'
|
|
71
|
+
run: |
|
|
72
|
+
# deb-src entries from the runner's own deb lines, so the source comes from the mirror the libraries did;
|
|
73
|
+
# fetch-sources.sh takes a version the mirror no longer carries from Launchpad
|
|
74
|
+
grep -h '^deb ' /etc/apt/sources.list /etc/apt/sources.list.d/*.list 2>/dev/null \
|
|
75
|
+
| sed 's/^deb /deb-src /' | sudo tee /etc/apt/sources.list.d/hlp-sources.list
|
|
76
|
+
sudo apt-get update -qq
|
|
77
|
+
sh scripts/fetch-sources.sh "hlp-${{ matrix.name }}-sources"
|
|
78
|
+
- name: Package
|
|
79
|
+
shell: bash
|
|
80
|
+
run: |
|
|
81
|
+
mkdir -p out "stage/hlp-${{ matrix.name }}"
|
|
82
|
+
cp LICENSE dist/THIRD-PARTY-NOTICES.txt "stage/hlp-${{ matrix.name }}/"
|
|
83
|
+
case "${{ matrix.name }}" in
|
|
84
|
+
windows-*)
|
|
85
|
+
cp dist/hlp.exe "out/hlp-${{ matrix.name }}.exe"
|
|
86
|
+
cp dist/THIRD-PARTY-NOTICES.txt "out/THIRD-PARTY-NOTICES-${{ matrix.name }}.txt" ;;
|
|
87
|
+
macos-*)
|
|
88
|
+
cp -R dist/hlp.app "stage/hlp-${{ matrix.name }}/"
|
|
89
|
+
# the terminal's hlp is a link to the copy in hlp.app, so the zip holds the app once
|
|
90
|
+
ln -s hlp.app/Contents/MacOS/hlp "stage/hlp-${{ matrix.name }}/hlp"
|
|
91
|
+
ditto -c -k --keepParent "stage/hlp-${{ matrix.name }}" "out/hlp-${{ matrix.name }}.zip" ;;
|
|
92
|
+
linux-*)
|
|
93
|
+
cp dist/hlp dist/hlp.desktop dist/hlp.png "stage/hlp-${{ matrix.name }}/"
|
|
94
|
+
tar -czf "out/hlp-${{ matrix.name }}.tar.gz" -C stage "hlp-${{ matrix.name }}"
|
|
95
|
+
cp "dist/hlp-${{ matrix.name }}-sources.tar.gz" out/ ;;
|
|
96
|
+
esac
|
|
97
|
+
ls -l out
|
|
98
|
+
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
99
|
+
with:
|
|
100
|
+
name: hlp-${{ matrix.name }}
|
|
101
|
+
path: out/*
|
|
102
|
+
if-no-files-found: error
|
|
103
|
+
|
|
104
|
+
dist:
|
|
105
|
+
name: wheel and sdist
|
|
106
|
+
runs-on: ubuntu-22.04
|
|
107
|
+
steps:
|
|
108
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
109
|
+
with:
|
|
110
|
+
fetch-depth: 0
|
|
111
|
+
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
|
|
112
|
+
with:
|
|
113
|
+
python-version: '3.14'
|
|
114
|
+
- run: |
|
|
115
|
+
python -m pip install --disable-pip-version-check build==1.6.1
|
|
116
|
+
python -m build
|
|
117
|
+
ls -l dist
|
|
118
|
+
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
119
|
+
with:
|
|
120
|
+
name: dist
|
|
121
|
+
path: dist/*
|
|
122
|
+
if-no-files-found: error
|
|
123
|
+
|
|
124
|
+
release:
|
|
125
|
+
name: draft release
|
|
126
|
+
if: github.ref_type == 'tag'
|
|
127
|
+
needs: [app, dist]
|
|
128
|
+
runs-on: ubuntu-22.04
|
|
129
|
+
permissions:
|
|
130
|
+
contents: write
|
|
131
|
+
steps:
|
|
132
|
+
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
133
|
+
with:
|
|
134
|
+
path: assets
|
|
135
|
+
merge-multiple: true
|
|
136
|
+
- name: Make the draft release
|
|
137
|
+
env:
|
|
138
|
+
GH_TOKEN: ${{ github.token }}
|
|
139
|
+
run: |
|
|
140
|
+
cd assets && sha256sum * > SHA256SUMS.txt && cd ..
|
|
141
|
+
prerelease=; case "$GITHUB_REF_NAME" in *rc*) prerelease=--prerelease ;; esac
|
|
142
|
+
gh release create "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" --verify-tag --draft $prerelease \
|
|
143
|
+
--title "gp2040ce-hostlighting $GITHUB_REF_NAME" \
|
|
144
|
+
--notes "Draft made by the Release workflow. The release notes are written before it is published." \
|
|
145
|
+
assets/*
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# gp2040ce-hostlighting (GP2040-CE Host Lighting library and tools)
|
|
2
|
+
# Filename: .gitignore
|
|
3
|
+
# Folder: (repository root)
|
|
4
|
+
# https://github.com/djGLiTCH/gp2040ce-hostlighting
|
|
5
|
+
# SPDX-FileCopyrightText: (C) 2026 Jacob Simpson (DJ GLiTCH)
|
|
6
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
7
|
+
# See LICENSES/GPL-3.0-or-later.txt at the repository root.
|
|
8
|
+
|
|
9
|
+
__pycache__/
|
|
10
|
+
*.py[cod]
|
|
11
|
+
*.egg-info/
|
|
12
|
+
build/
|
|
13
|
+
dist/
|
|
14
|
+
.eggs/
|
|
15
|
+
.pytest_cache/
|
|
16
|
+
.mypy_cache/
|
|
17
|
+
.coverage
|
|
18
|
+
htmlcov/
|
|
19
|
+
.tox/
|
|
20
|
+
venv/
|
|
21
|
+
.venv/
|