simulate-circuitpython-nativesim 2.0.0__tar.gz → 3.0.1__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.1}/PKG-INFO +2 -2
  2. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.1}/README.md +1 -1
  3. simulate_circuitpython_nativesim-3.0.1/VERSION +1 -0
  4. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.1}/build-firmware/action.yml +21 -7
  5. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.1}/prepare-flash/action.yml +0 -12
  6. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.1}/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.1}/.github/workflows/publish.yml +0 -0
  9. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.1}/.pre-commit-config.yaml +0 -0
  10. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.1}/LICENSE +0 -0
  11. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.1}/LICENSES/MIT.txt +0 -0
  12. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.1}/LICENSES/Unlicense.txt +0 -0
  13. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.1}/README.md.license +0 -0
  14. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.1}/VERSION.license +0 -0
  15. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.1}/circuitpy_sim.py +0 -0
  16. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.1}/prepare-system/action.yml +0 -0
  17. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.1}/pyproject.toml +0 -0
  18. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.1}/setup.cfg +0 -0
  19. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.1}/simulate/action.yml +0 -0
  20. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.1}/simulate_circuitpython_nativesim.egg-info/SOURCES.txt +0 -0
  21. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.1}/simulate_circuitpython_nativesim.egg-info/dependency_links.txt +0 -0
  22. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.1}/simulate_circuitpython_nativesim.egg-info/entry_points.txt +0 -0
  23. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.1}/simulate_circuitpython_nativesim.egg-info/requires.txt +0 -0
  24. {simulate_circuitpython_nativesim-2.0.0 → simulate_circuitpython_nativesim-3.0.1}/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.1
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.1
@@ -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
@@ -24,23 +23,40 @@ outputs:
24
23
  runs:
25
24
  using: "composite"
26
25
  steps:
26
+ - name: Get latest CircuitPython version
27
+ id: latest-cpy-version
28
+ if: inputs.version == 'latest'
29
+ uses: tekktrik/latest-circuitpython-version@v1
30
+ - name: Determine checkout ref
31
+ id: checkout-ref
32
+ shell: bash
33
+ run: |
34
+ if [[ "${{ inputs.version }}" == "latest" ]]; then
35
+ CHECKOUT_REF="${{ steps.latest-cpy-version.outputs.version }}"
36
+ else
37
+ CHECKOUT_REF="${{ inputs.version }}"
38
+ fi
39
+ echo "ref=$CHECKOUT_REF" >> "$GITHUB_OUTPUT"
27
40
  - name: Checkout CircuitPython repository
28
41
  uses: actions/checkout@v6
29
42
  with:
30
43
  repository: adafruit/circuitpython
31
44
  path: ${{ inputs.circuitpython-folder }}
32
- ref: ${{ inputs.version }}
45
+ ref: ${{ steps.checkout-ref.outputs.ref }}
33
46
  fetch-depth: 0
47
+ - name: Get latest CircuitPython version
48
+ id: latest-cpy-version
49
+ uses: tekktrik/latest-circuitpython-version@v1
34
50
  - name: Determine cache key
35
51
  id: cache-key
36
52
  shell: bash
37
53
  working-directory: ${{ inputs.circuitpython-folder }}
38
54
  run: |
39
- if [[ "${{ inputs.version }}" == "main" ]]; then
55
+ if [[ "${{ steps.checkout-ref.outputs.ref }}" == "main" ]]; then
40
56
  GITREV=$(git rev-parse --short HEAD)
41
57
  CACHE_KEY="$GITREV-zephyr-cache"
42
58
  else
43
- CACHE_KEY="${{ inputs.version }}-zephyr-cache"
59
+ CACHE_KEY="${{ steps.checkout-ref.outputs.ref }}-zephyr-cache"
44
60
  fi
45
61
  echo "cache-key=$CACHE_KEY" >> "$GITHUB_OUTPUT"
46
62
  - name: Cache firmware build
@@ -109,5 +125,3 @@ runs:
109
125
  id: cache-hit
110
126
  shell: bash
111
127
  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.1
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