Skip to content

Commit be6fa2a

Browse files
committed
merge from main
2 parents 014d5a5 + 8350097 commit be6fa2a

File tree

100 files changed

+1907
-486
lines changed

Some content is hidden

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

100 files changed

+1907
-486
lines changed

.gitattributes

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@
2727
# These should also not be modified by git.
2828
tests/basics/string_cr_conversion.py -text
2929
tests/basics/string_crlf_conversion.py -text
30-
# CIRCUITPY-CHANGE: remove non-CircuitPython tests
30+
# CIRCUITPY-CHANGE: remove non-CircuitPython tests

.mailmap

+126-7
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,36 @@
11
# SPDX-FileCopyrightText: 2020 Diego Elio Pettenò
2+
# SPDX-FileCopyrightText: 2024, Rylie Pavlik
23
#
34
# SPDX-License-Identifier: Unlicense
45

6+
Alec Delaney <[email protected]>
7+
8+
9+
Alex Sirota <[email protected]>
10+
511
Alexander Steffen <[email protected]>
612
713
14+
15+
Ayke van Laethem <[email protected]>
816
Benjamin Vernoux <[email protected]>
17+
18+
19+
Bernhard Bablok <[email protected]>
20+
Bernhard Boser <[email protected]>
21+
22+
23+
Bill Sideris <[email protected]>
24+
925
Brent Rubell <[email protected]>
1026
1127
1228
29+
Carter Nelson <[email protected]>
30+
Chris Dailey <[email protected]>
1331
Chris Packham <[email protected]>
1432
33+
Chris Wilson <[email protected]>
1534
Damiano Mazzella <[email protected]>
1635
Damien George <[email protected]>
1736
Dan Halbert <[email protected]>
@@ -20,45 +39,92 @@ Daniel Pollard <[email protected]>
2039
2140
Daniel Tralamazza <[email protected]>
2241
42+
2343
David Glaude <[email protected]>
2444
45+
Elvis Pfützenreuter <[email protected]>
46+
Enrique Casado <[email protected]>
47+
48+
Eva Herrada <[email protected]>
49+
50+
51+
52+
53+
Eva Herrada <[email protected]> dherrada <=>
54+
Florin Maticu <[email protected]>
55+
56+
57+
Frédéric Pierson <[email protected]>
58+
Fábio Souza <[email protected]>
2559
George Waters <[email protected]>
2660
61+
Glenn Moloney <[email protected]>
2762
2863
Henrik Sölver <[email protected]>
64+
Ihor Nehrutsa <[email protected]>
65+
2966
Ilya Dmitrichenko <[email protected]>
3067
68+
James Bowman <[email protected]>
69+
James Bowman <[email protected]> <James Bowman>
70+
James Carr <[email protected]>
71+
72+
James Nadeau <[email protected]>
73+
Jan Hrudka <[email protected]>
3174
Jason Pecor <[email protected]>
3275
Jeff Epler <[email protected]>
3376
3477
3578
79+
Jensen Kuras <[email protected]>
80+
Jeremy Littler <[email protected]>
81+
3682
Jerry Needell <[email protected]>
3783
Joe Bakalor <[email protected]>
84+
Jonah Yolles-Murphy <[email protected]>
85+
Jonah Yolles-Murphy <[email protected]> <[email protected]>
86+
Jonah Yolles-Murphy <[email protected]> <[email protected]>
87+
Jonah Yolles-Murphy <[email protected]> <[email protected]>
88+
Jonathan Giles <[email protected]>
89+
90+
Jonny Bergdahl <[email protected]>
91+
92+
Jos Verlinde <[email protected]>
93+
94+
3895
Josh Klar <[email protected]>
3996
4097
Juan Biondi <[email protected]>
4198
99+
Julia Hathaway <[email protected]>
42100
KalbeAbbas <[email protected]>
43101
KalbeAbbas <[email protected]> <kalbeabbas@[email protected]>
44102
Kamil Tomaszewski <[email protected]>
45103
46-
47-
Kattni Rembor <[email protected]>
104+
Kattni Rembor <[email protected]>
105+
106+
48107
49108
109+
Kevin Matocha <[email protected]>
110+
50111
Kevin Townsend <[email protected]>
51112
52113
Krzysztof Blazewicz <[email protected]>
53114
Krzysztof Blazewicz <[email protected]> <[email protected]>
115+
Lee Atkinson <[email protected]>
54116
Li Weiwei <[email protected]>
55117
56118
Limor "Ladyada" Fried <[email protected]>
57119
Limor "Ladyada" Fried <[email protected]> <ladyada>
58120
Lucian Copeland <[email protected]>
59121
122+
Mariusz Ćwikła <[email protected]>
123+
60124
Mark Olsson <[email protected]>
61125
126+
Mark Roberts <[email protected]>
127+
Martin Fischer <[email protected]>
62128
Matt Land <[email protected]>
63129
64130
Matt Wozniski <[email protected]>
@@ -67,17 +133,44 @@ Melissa LeBlanc-Williams <[email protected]>
67133
Melissa LeBlanc-Williams <[email protected]> <[email protected]>
68134
Metallicow <[email protected]>
69135
136+
Michael McWethy <[email protected]>
137+
Michael Weiss <[email protected]>
138+
139+
140+
Mike Teachman <[email protected]>
141+
Milind Movasha <[email protected]>
142+
Miroslav Zuzelka <[email protected]>
143+
Noel Gaetan <[email protected]>
144+
Pablo Martinez Bernal <[email protected]>
145+
Pablo Martinez Bernal <[email protected]> <[email protected]>
146+
Paint Your Dragon <[email protected]>
147+
70148
Peter Hinch <[email protected]>
71149
150+
Pierre Constantineau <[email protected]>
151+
Pierre Constantineau <[email protected]> <[email protected]>
72152
Radomir Dopieralski <[email protected]>
73153
Radomir Dopieralski <[email protected]> <[email protected]>
74154
Rafa Gould <[email protected]>
75155
156+
157+
158+
Reinhard Feger <[email protected]>
159+
160+
Rick Sorensen <[email protected]>
161+
Rick Sorensen <[email protected]> <rick@ricklinux2>
162+
Robert HH <[email protected]>
163+
Rose Hooper <[email protected]>
76164
Ryan Shaw <[email protected]>
77165
166+
Ryan T. Hamilton <[email protected]>
167+
168+
Rylie Pavlik <[email protected]>
169+
78170
79171
80172
173+
81174
Scott Shawcroft <[email protected]>
82175
83176
@@ -87,22 +180,48 @@ Sebastian Plamauer <[email protected]>
87180
Sebastian Plamauer <[email protected]> <[email protected]>
88181
89182
183+
Seth Kerr <[email protected]>
184+
185+
186+
Shawn Hymel <[email protected]>
187+
Sky Bryant <[email protected]>
188+
189+
Stephane Smith <[email protected]>
90190
Stewart Colborne <[email protected]>
91191
92-
TG-Techie <TGTechie01@gmail.com>
93-
192+
Sébastien Rinsoz <sebastien@yoctopuce.com>
193+
Takeo Takahashi <takeo.takahashi.xv@renesas.com>
94194
Thea Flowers <[email protected]>
95195
196+
Thorsten von Eicken <[email protected]>
197+
Thorsten von Eicken <[email protected]> <[email protected]>
198+
199+
96200
Tobias Badertscher <[email protected]>
97201
Tobias Badertscher <[email protected]> <[email protected]>
202+
Tobias Schmale <[email protected]>
203+
Trammell Hudson <[email protected]>
204+
Tyeth Gundry <[email protected]>
205+
Unexpected Maker <[email protected]>
206+
Vladimír Smitka <[email protected]>
207+
Yuuki NAGAO <[email protected]>
208+
adam_cummick <[email protected]>
209+
applecuckoo <[email protected]>
210+
211+
98212
danicampora <[email protected]>
99213
100-
101-
102-
dherrada <[email protected]> <=>
214+
103215
216+
jposada202020 <[email protected]>
217+
218+
219+
220+
221+
104222
105223
224+
roland van straten <[email protected]>
106225
siddacious <[email protected]>
107226
108227

conf.py

+2
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
autoapi_python_class_content = "both"
111111
autoapi_python_use_implicit_namespaces = True
112112
autoapi_root = "shared-bindings"
113+
autoapi_file_patterns = ["*.pyi"]
113114

114115
# Suppress cache warnings to prevent "unpickable" [sic] warning
115116
# about autoapi_prepare_jinja_env() from sphinx >= 7.3.0.
@@ -180,6 +181,7 @@ def autoapi_prepare_jinja_env(jinja_env):
180181
".venv",
181182
".direnv",
182183
".devcontainer/Readme.md",
184+
"circuitpython-stubs",
183185
"data",
184186
"docs/autoapi",
185187
"docs/README.md",

docs/library/sys.rst

+17-14
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,23 @@ Functions
1515
function raise as `SystemExit` exception. If an argument is given, its
1616
value given as an argument to `SystemExit`.
1717

18+
.. function:: print_exception(exc, file=sys.stdout, /)
19+
20+
This function is being deprecated and will be removed starting in
21+
CircuitPython 10.x, `traceback.print_exception()` should be used instead.
22+
23+
Print exception with a traceback to a file-like object *file* (or
24+
`sys.stdout` by default).
25+
26+
.. admonition:: Difference to CPython
27+
:class: attention
28+
29+
This is simplified version of a function which appears in the
30+
`traceback` module in CPython. Unlike `traceback.print_exception()`,
31+
this function takes just exception value instead of exception type,
32+
exception value, and traceback object; *file* argument should be
33+
positional; further arguments are not supported.
34+
1835
Constants
1936
---------
2037

@@ -97,12 +114,6 @@ Constants
97114
If you need to check whether your program runs on CircuitPython (vs other
98115
Python implementation), use `sys.implementation` instead.
99116

100-
.. data:: ps1
101-
ps2
102-
103-
Mutable attributes holding strings, which are used for the REPL prompt. The defaults
104-
give the standard Python prompt of ``>>>`` and ``...``.
105-
106117
.. data:: stderr
107118

108119
Standard error ``stream``.
@@ -115,14 +126,6 @@ Constants
115126

116127
Standard output ``stream``.
117128

118-
.. data:: tracebacklimit
119-
120-
A mutable attribute holding an integer value which is the maximum number of traceback
121-
entries to store in an exception. Set to 0 to disable adding tracebacks. Defaults
122-
to 1000.
123-
124-
Note: this is not available on all ports.
125-
126129
.. data:: version
127130

128131
Python language version that this implementation conforms to, as a string.

docs/shared_bindings_matrix.py

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
"sys": "CIRCUITPY_SYS",
8686
"terminalio": "CIRCUITPY_DISPLAYIO",
8787
"usb": "CIRCUITPY_PYUSB",
88+
"socketpool.socketpool.AF_INET6": "CIRCUITPY_SOCKETPOOL_IPV6",
8889
}
8990

9091
MODULES_NOT_IN_BINDINGS = ["binascii", "errno", "json", "re", "ulab"]

lib/littlefs/lfs2.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,7 @@ static lfs2_stag_t lfs2_dir_fetchmatch(lfs2_t *lfs2,
10791079

10801080
// if either block address is invalid we return LFS2_ERR_CORRUPT here,
10811081
// otherwise later writes to the pair could fail
1082-
if (lfs2->block_count
1082+
if (lfs2->block_count
10831083
&& (pair[0] >= lfs2->block_count || pair[1] >= lfs2->block_count)) {
10841084
return LFS2_ERR_CORRUPT;
10851085
}

lib/littlefs/lfs2.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ struct lfs2_config {
267267
#ifdef LFS2_MULTIVERSION
268268
// On-disk version to use when writing in the form of 16-bit major version
269269
// + 16-bit minor version. This limiting metadata to what is supported by
270-
// older minor versions. Note that some features will be lost. Defaults to
270+
// older minor versions. Note that some features will be lost. Defaults to
271271
// to the most recent minor version when zero.
272272
uint32_t disk_version;
273273
#endif

locale/ID.po

+9-1
Original file line numberDiff line numberDiff line change
@@ -1185,6 +1185,7 @@ msgid "Interrupted by output function"
11851185
msgstr ""
11861186

11871187
#: ports/espressif/common-hal/espulp/ULP.c
1188+
#: ports/espressif/common-hal/microcontroller/Processor.c
11881189
#: ports/mimxrt10xx/common-hal/audiobusio/__init__.c
11891190
#: ports/mimxrt10xx/common-hal/pwmio/PWMOut.c
11901191
#: ports/raspberrypi/bindings/picodvi/Framebuffer.c
@@ -1292,6 +1293,10 @@ msgstr ""
12921293
msgid "Layer must be a Group or TileGrid subclass"
12931294
msgstr ""
12941295

1296+
#: shared-bindings/audiocore/RawSample.c
1297+
msgid "Length of %q must be an even multiple of channel_count * type_size"
1298+
msgstr ""
1299+
12951300
#: ports/espressif/common-hal/espidf/__init__.c
12961301
msgid "MAC address was invalid"
12971302
msgstr ""
@@ -1566,7 +1571,6 @@ msgstr ""
15661571
msgid "Only IPv4 addresses supported"
15671572
msgstr "Hanya alamat IPv4 yang didukung"
15681573

1569-
#: ports/espressif/common-hal/socketpool/Socket.c
15701574
#: ports/raspberrypi/common-hal/socketpool/Socket.c
15711575
msgid "Only IPv4 sockets supported"
15721576
msgstr "Hanysa socket IPv4 yang didukung"
@@ -2241,6 +2245,10 @@ msgstr "Format tidak didukung"
22412245
msgid "Unsupported hash algorithm"
22422246
msgstr ""
22432247

2248+
#: ports/espressif/common-hal/socketpool/Socket.c
2249+
msgid "Unsupported socket type"
2250+
msgstr ""
2251+
22442252
#: ports/espressif/common-hal/_bleio/Adapter.c
22452253
#: ports/espressif/common-hal/dualbank/__init__.c
22462254
msgid "Update failed"

0 commit comments

Comments
 (0)