simulate-circuitpython-nativesim 2.0.0__tar.gz → 3.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 (24) hide show
  1. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.0}/PKG-INFO +2 -2
  2. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.0}/README.md +1 -1
  3. simulate_circuitpython_nativesim-3.0.0/VERSION +1 -0
  4. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.0}/build-firmware/action.yml +6 -4
  5. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.0}/prepare-flash/action.yml +0 -12
  6. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.0}/simulate_circuitpython_nativesim.egg-info/PKG-INFO +2 -2
  7. simulate_circuitpython_nativesim-2.0.0/VERSION +0 -1
  8. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.0}/.github/workflows/publish.yml +0 -0
  9. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.0}/.pre-commit-config.yaml +0 -0
  10. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.0}/LICENSE +0 -0
  11. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.0}/LICENSES/MIT.txt +0 -0
  12. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.0}/LICENSES/Unlicense.txt +0 -0
  13. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.0}/README.md.license +0 -0
  14. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.0}/VERSION.license +0 -0
  15. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.0}/circuitpy_sim.py +0 -0
  16. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.0}/prepare-system/action.yml +0 -0
  17. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.0}/pyproject.toml +0 -0
  18. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.0}/setup.cfg +0 -0
  19. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.0}/simulate/action.yml +0 -0
  20. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.0}/simulate_circuitpython_nativesim.egg-info/SOURCES.txt +0 -0
  21. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.0}/simulate_circuitpython_nativesim.egg-info/dependency_links.txt +0 -0
  22. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.0}/simulate_circuitpython_nativesim.egg-info/entry_points.txt +0 -0
  23. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.0}/simulate_circuitpython_nativesim.egg-info/requires.txt +0 -0
  24. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.0}/simulate_circuitpython_nativesim.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: simulate-circuitpython-nativesim
3
- Version: 2.0.0
3
+ Version: 3.0.0
4
4
  Summary: Simulate CircuitPython using Zephyr simulator
5
5
  Author-email: Alec Delaney <tekktrik@gmail.com>
6
6
  License-Expression: MIT
@@ -41,7 +41,7 @@ Build the nativesim firmware (or use a cached version if available)
41
41
 
42
42
  | Argument Name | Description | Default | Notes |
43
43
  | --- | --- | --- | --- |
44
- | ``version`` | Version of CircuitPython to simulate | ``main`` | Must be a version that supports the Zephyr OS native sim |
44
+ | ``version`` | Version of CircuitPython to simulate | ``latest`` | Must be a version that supports the Zephyr OS native sim |
45
45
  | ``circuitpython-folder`` | Folder name to use for the CircuitPython checkout | ``cpysim`` | Change this if it conflicts with another file/folder |
46
46
  | ``firmware-filepath`` | Filepath for the built firmware | ``./firmware.exe`` | |
47
47
 
@@ -22,7 +22,7 @@ Build the nativesim firmware (or use a cached version if available)
22
22
 
23
23
  | Argument Name | Description | Default | Notes |
24
24
  | --- | --- | --- | --- |
25
- | ``version`` | Version of CircuitPython to simulate | ``main`` | Must be a version that supports the Zephyr OS native sim |
25
+ | ``version`` | Version of CircuitPython to simulate | ``latest`` | Must be a version that supports the Zephyr OS native sim |
26
26
  | ``circuitpython-folder`` | Folder name to use for the CircuitPython checkout | ``cpysim`` | Change this if it conflicts with another file/folder |
27
27
  | ``firmware-filepath`` | Filepath for the built firmware | ``./firmware.exe`` | |
28
28
 
@@ -0,0 +1 @@
1
+ v3.0.0
@@ -7,8 +7,7 @@ inputs:
7
7
  version:
8
8
  description: 'Version of CircuitPython to simulate'
9
9
  required: true
10
- # TODO: Should default to latest
11
- default: main
10
+ default: latest
12
11
  circuitpython-folder:
13
12
  description: 'Folder name to use for the CircuitPython checkout, if needed'
14
13
  required: true
@@ -31,6 +30,9 @@ runs:
31
30
  path: ${{ inputs.circuitpython-folder }}
32
31
  ref: ${{ inputs.version }}
33
32
  fetch-depth: 0
33
+ - name: Get latest CircuitPython version
34
+ id: latest-cpy-version
35
+ uses: tekktrik/latest-circuitpython-version@v1
34
36
  - name: Determine cache key
35
37
  id: cache-key
36
38
  shell: bash
@@ -39,6 +41,8 @@ runs:
39
41
  if [[ "${{ inputs.version }}" == "main" ]]; then
40
42
  GITREV=$(git rev-parse --short HEAD)
41
43
  CACHE_KEY="$GITREV-zephyr-cache"
44
+ elif [[ "${{ inputs.version }}" == "latest" ]]; then
45
+ CACHE_KEY="${{ steps.latest-cpy-version.outputs.version }}-zephyr-cache"
42
46
  else
43
47
  CACHE_KEY="${{ inputs.version }}-zephyr-cache"
44
48
  fi
@@ -109,5 +113,3 @@ runs:
109
113
  id: cache-hit
110
114
  shell: bash
111
115
  run: echo "cached=${{ steps.cache-firmware.outputs.cache-hit }}" >> "$GITHUB_OUTPUT"
112
-
113
- # TODO: Upload firmware as an artifact
@@ -14,18 +14,6 @@ inputs:
14
14
  runs:
15
15
  using: "composite"
16
16
  steps:
17
- - name: Install system dependencies
18
- shell: bash
19
- run: |
20
- sudo apt-get update
21
- sudo apt-get install -y \
22
- libusb-1.0-0-dev \
23
- libudev-dev \
24
- mtools \
25
- protobuf-compiler \
26
- dosfstools \
27
- gcc-multilib \
28
- g++-multilib
29
17
  - name: Install flash preparation command
30
18
  shell: bash
31
19
  run: pipx install ${{ github.action_path }}/..
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: simulate-circuitpython-nativesim
3
- Version: 2.0.0
3
+ Version: 3.0.0
4
4
  Summary: Simulate CircuitPython using Zephyr simulator
5
5
  Author-email: Alec Delaney <tekktrik@gmail.com>
6
6
  License-Expression: MIT
@@ -41,7 +41,7 @@ Build the nativesim firmware (or use a cached version if available)
41
41
 
42
42
  | Argument Name | Description | Default | Notes |
43
43
  | --- | --- | --- | --- |
44
- | ``version`` | Version of CircuitPython to simulate | ``main`` | Must be a version that supports the Zephyr OS native sim |
44
+ | ``version`` | Version of CircuitPython to simulate | ``latest`` | Must be a version that supports the Zephyr OS native sim |
45
45
  | ``circuitpython-folder`` | Folder name to use for the CircuitPython checkout | ``cpysim`` | Change this if it conflicts with another file/folder |
46
46
  | ``firmware-filepath`` | Filepath for the built firmware | ``./firmware.exe`` | |
47
47
 
@@ -1 +0,0 @@
1
- v2.0.0