Skip to content

Commit 67293c2

Browse files
committed
Merge branch 'main' into board-bus
2 parents 30c0891 + dab35f7 commit 67293c2

File tree

396 files changed

+11554
-2032
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

396 files changed

+11554
-2032
lines changed

.github/workflows/build.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ jobs:
3030
with:
3131
submodules: false
3232
fetch-depth: 1
33-
- name: Set up Python 3.8
34-
uses: actions/setup-python@v1
33+
- name: Set up Python 3
34+
uses: actions/setup-python@v2
3535
with:
36-
python-version: 3.8
36+
python-version: "3.x"
3737
- name: Get CP deps
3838
run: python tools/ci_fetch_deps.py test ${{ github.sha }}
3939
- name: CircuitPython version
@@ -136,10 +136,10 @@ jobs:
136136
with:
137137
submodules: false
138138
fetch-depth: 1
139-
- name: Set up Python 3.8
140-
uses: actions/setup-python@v1
139+
- name: Set up Python 3
140+
uses: actions/setup-python@v2
141141
with:
142-
python-version: 3.8
142+
python-version: "3.x"
143143
- name: Get CP deps
144144
run: python tools/ci_fetch_deps.py mpy-cross-mac ${{ github.sha }}
145145
- name: CircuitPython version
@@ -202,10 +202,10 @@ jobs:
202202
run: |
203203
git describe --dirty --tags
204204
echo >>$GITHUB_ENV CP_VERSION=$(git describe --dirty --tags)
205-
- name: Set up Python 3.8
206-
uses: actions/setup-python@v1
205+
- name: Set up Python 3
206+
uses: actions/setup-python@v2
207207
with:
208-
python-version: 3.8
208+
python-version: "3.x"
209209
- name: Install dependencies
210210
run: |
211211
sudo apt-get update
@@ -241,7 +241,7 @@ jobs:
241241
zip -9r circuitpython-stubs.zip circuitpython-stubs
242242
[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp circuitpython-stubs/dist/*.tar.gz s3://adafruit-circuit-python/bin/stubs/circuitpython-stubs-${{ env.CP_VERSION }}.zip --no-progress --region us-east-1
243243
- name: Upload stubs to PyPi
244-
if: (github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository_owner == 'adafruit') || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
244+
if: github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested')
245245
env:
246246
TWINE_USERNAME: ${{ secrets.pypi_username }}
247247
TWINE_PASSWORD: ${{ secrets.pypi_password }}
@@ -260,10 +260,10 @@ jobs:
260260
board: ${{ fromJSON(needs.test.outputs.boards-arm) }}
261261
if: ${{ needs.test.outputs.boards-arm != '[]' }}
262262
steps:
263-
- name: Set up Python 3.8
264-
uses: actions/setup-python@v1
263+
- name: Set up Python 3
264+
uses: actions/setup-python@v2
265265
with:
266-
python-version: 3.8
266+
python-version: "3.x"
267267
- uses: actions/[email protected]
268268
with:
269269
submodules: false
@@ -312,10 +312,10 @@ jobs:
312312
board: ${{ fromJSON(needs.test.outputs.boards-riscv) }}
313313
if: ${{ needs.test.outputs.boards-riscv != '[]' }}
314314
steps:
315-
- name: Set up Python 3.8
316-
uses: actions/setup-python@v1
315+
- name: Set up Python 3
316+
uses: actions/setup-python@v2
317317
with:
318-
python-version: 3.8
318+
python-version: "3.x"
319319
- uses: actions/[email protected]
320320
with:
321321
submodules: false
@@ -364,10 +364,10 @@ jobs:
364364
board: ${{ fromJSON(needs.test.outputs.boards-espressif) }}
365365
if: ${{ needs.test.outputs.boards-espressif != '[]' }}
366366
steps:
367-
- name: Set up Python 3.8
368-
uses: actions/setup-python@v1
367+
- name: Set up Python 3
368+
uses: actions/setup-python@v2
369369
with:
370-
python-version: 3.8
370+
python-version: "3.x"
371371
- uses: actions/[email protected]
372372
with:
373373
submodules: false
@@ -451,10 +451,10 @@ jobs:
451451
board: ${{ fromJSON(needs.test.outputs.boards-aarch) }}
452452
if: ${{ needs.test.outputs.boards-aarch != '[]' }}
453453
steps:
454-
- name: Set up Python 3.8
455-
uses: actions/setup-python@v1
454+
- name: Set up Python 3
455+
uses: actions/setup-python@v2
456456
with:
457-
python-version: 3.8
457+
python-version: "3.x"
458458
- uses: actions/[email protected]
459459
with:
460460
submodules: false

.github/workflows/create_website_pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
with:
2121
submodules: false
2222
fetch-depth: 1
23-
- name: Set up Python 3.8
24-
uses: actions/setup-python@v1
23+
- name: Set up Python 3
24+
uses: actions/setup-python@v2
2525
with:
26-
python-version: 3.8
26+
python-version: "3.x"
2727
- name: Get CP deps
2828
run: python tools/ci_fetch_deps.py website ${{ github.sha }}
2929
- name: Install deps

.github/workflows/pre-commit.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ jobs:
1313
runs-on: ubuntu-20.04
1414
steps:
1515
- uses: actions/[email protected]
16-
- uses: actions/setup-python@v1
16+
- name: Set up Python 3
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: "3.x"
1720
- name: Install deps
1821
run: |
1922
sudo apt-add-repository -y -u ppa:pybricks/ppa

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
url = https://github.com/adafruit/Adafruit_CircuitPython_RFM69.git
149149
[submodule "ports/espressif/esp-idf"]
150150
path = ports/espressif/esp-idf
151-
url = https://github.com/espressif/esp-idf.git
151+
url = https://github.com/adafruit/esp-idf.git
152152
branch = release/v4.4
153153
[submodule "ports/espressif/certificates/nina-fw"]
154154
path = ports/espressif/certificates/nina-fw

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
repos:
66
- repo: https://github.com/pre-commit/pre-commit-hooks
7-
rev: v2.3.0
7+
rev: v4.0.1
88
hooks:
99
- id: check-yaml
1010
- id: end-of-file-fixer

.readthedocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ version: 2
1111
build:
1212
os: ubuntu-20.04
1313
tools:
14-
python: "3.9"
14+
python: "3"
1515

1616
submodules:
1717
include:
@@ -22,4 +22,4 @@ formats:
2222

2323
python:
2424
install:
25-
- requirements: docs/requirements.txt
25+
- requirements: requirements-doc.txt

BUILDING.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ https://learn.adafruit.com/building-circuitpython/
1515

1616
## Setup
1717

18-
Please ensure you setup your build environment appropriately, as per the guide. You will need:
18+
Please ensure you set up your build environment appropriately, as per the guide. You will need:
1919

2020
* Linux: https://learn.adafruit.com/building-circuitpython/linux
2121
* MacOS: https://learn.adafruit.com/building-circuitpython/macos
@@ -25,8 +25,9 @@ Please ensure you setup your build environment appropriately, as per the guide.
2525

2626
This project has a bunch of git submodules. You will need to update them regularly.
2727

28-
git submodule sync
29-
git submodule update --init
28+
In the root folder of the CircuitPython repository, execute the following:
29+
30+
make fetch-submodules
3031

3132
### Required Python Packages
3233

@@ -100,7 +101,7 @@ We apply code quality checks using pre-commit. Install pre-commit once per syst
100101

101102
Activate it once per git clone with
102103

103-
pre-commit --install
104+
pre-commit install
104105

105106
Pre-commit also requires some additional programs to be installed through your package manager:
106107

docs/library/re.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ Supported operators and special sequences are:
9595

9696
Example::
9797

98-
import ure
98+
import re
9999

100-
# As ure doesn't support escapes itself, use of r"" strings is not
100+
# As re doesn't support escapes itself, use of r"" strings is not
101101
# recommended.
102-
regex = ure.compile("[\r\n]")
102+
regex = re.compile("[\r\n]")
103103

104104
regex.split("line1\rline2\nline3\r\n")
105105

docs/requirements.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/templates/breadcrumbs.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{%- extends "sphinx_rtd_theme/breadcrumbs.html" %}
2+
3+
{% block breadcrumbs_aside %}
4+
{% endblock %}

extmod/ulab

Submodule ulab updated 100 files

lib/protomatter

lib/sdmmc/sdmmc_io.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,10 @@ static sdmmc_err_t cis_tuple_func_manfid(const void* p, uint8_t* data, FILE* fp)
420420
int size = *(data++);
421421
fprintf(fp, "TUPLE: %s, size: %d\n", tuple->name, size);
422422
CIS_CHECK_SIZE(size, 4);
423+
#pragma GCC diagnostic push
424+
#pragma GCC diagnostic ignored "-Wcast-align"
423425
fprintf(fp, " MANF: %04X, CARD: %04X\n", *(uint16_t*)(data), *(uint16_t*)(data+2));
426+
#pragma GCC diagnostic pop
424427
return SDMMC_OK;
425428
}
426429

@@ -480,7 +483,10 @@ static sdmmc_err_t cis_tuple_func_cftable_entry(const void* p, uint8_t* data, FI
480483
CIS_CHECK_SIZE(size, 2);
481484
size-=2;
482485
CIS_CHECK_UNSUPPORTED(mem_space==1); //other cases not handled yet
486+
#pragma GCC diagnostic push
487+
#pragma GCC diagnostic ignored "-Wcast-align"
483488
int len = *(uint16_t*)data;
489+
#pragma GCC diagnostic pop
484490
fprintf(fp, " LEN: %04X\n", len);
485491
data+=2;
486492
}

lib/tinyusb

Submodule tinyusb updated 156 files

0 commit comments

Comments
 (0)