<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py/py.mk, branch 5.0.0-beta.4</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=5.0.0-beta.4</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=5.0.0-beta.4'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2020-01-12T05:37:54+00:00</updated>
<entry>
<title>Make all `PYTHON` env vars into `PYTHON3`</title>
<updated>2020-01-12T05:37:54+00:00</updated>
<author>
<name>Steve Theodore</name>
<email>steve@theodox.com</email>
</author>
<published>2020-01-12T05:37:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=dd4b0f6e9c4fd987b5d971c358e17911696054fd'/>
<id>urn:sha1:dd4b0f6e9c4fd987b5d971c358e17911696054fd</id>
<content type='text'>
make file contained a mix of references to `PYTHON` and `PYTHON3`, and did not build on a fresh install of Ubuntu (under Windows LXSS)</content>
</entry>
<entry>
<title>py.mk: Fix race condition building .mo files</title>
<updated>2019-12-16T21:33:55+00:00</updated>
<author>
<name>Jeff Epler</name>
<email>jepler@gmail.com</email>
</author>
<published>2019-12-16T21:33:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=201f4648c40c13bdbf91f8cc078c1fbecc09256d'/>
<id>urn:sha1:201f4648c40c13bdbf91f8cc078c1fbecc09256d</id>
<content type='text'>
By having an order-only dependency on the directory itself, the directory
is sure to be created before the rule to create a .mo file is.

This fixes a low-freqency error on github actions such as

&gt; msgfmt: error while opening "build/genhdr/en_US.mo" for writing: No such file or directory
</content>
</entry>
<entry>
<title>merge from upstream</title>
<updated>2019-12-11T02:04:46+00:00</updated>
<author>
<name>Dan Halbert</name>
<email>halbert@halwitz.org</email>
</author>
<published>2019-12-11T02:04:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=68ae47907c076a966a533d90371acf65ae9875c8'/>
<id>urn:sha1:68ae47907c076a966a533d90371acf65ae9875c8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wip</title>
<updated>2019-12-06T03:45:53+00:00</updated>
<author>
<name>Dan Halbert</name>
<email>halbert@halwitz.org</email>
</author>
<published>2019-12-06T03:45:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=40434d691934cf7f5792f91ce0288beb568bab85'/>
<id>urn:sha1:40434d691934cf7f5792f91ce0288beb568bab85</id>
<content type='text'>
</content>
</entry>
<entry>
<title>protocols: Allow them to be (optionally) type-safe</title>
<updated>2019-12-04T15:29:57+00:00</updated>
<author>
<name>Jeff Epler</name>
<email>jepler@gmail.com</email>
</author>
<published>2019-12-03T20:50:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=238e12123690debaf2cf8488fb2a4d4003a06506'/>
<id>urn:sha1:238e12123690debaf2cf8488fb2a4d4003a06506</id>
<content type='text'>
Protocols are nice, but there is no way for C code to verify whether
a type's "protocol" structure actually implements some particular
protocol.  As a result, you can pass an object that implements the
"vfs" protocol to one that expects the "stream" protocol, and the
opposite of awesomeness ensues.

This patch adds an OPTIONAL (but enabled by default) protocol identifier
as the first member of any protocol structure.  This identifier is
simply a unique QSTR chosen by the protocol designer and used by each
protocol implementer.  When checking for protocol support, instead of
just checking whether the object's type has a non-NULL protocol field,
use `mp_proto_get` which implements the protocol check when possible.

The existing protocols are now named:
    protocol_framebuf
    protocol_i2c
    protocol_pin
    protocol_stream
    protocol_spi
    protocol_vfs
(most of these are unused in CP and are just inherited from MP; vfs and
stream are definitely used though)

I did not find any crashing examples, but here's one to give a flavor of what
is improved, using `micropython_coverage`.  Before the change,
the vfs "ioctl" protocol is invoked, and the result is not intelligible
as json (but it could have resulted in a hard fault, potentially):

    &gt;&gt;&gt; import uos, ujson
    &gt;&gt;&gt; u = uos.VfsPosix('/tmp')
    &gt;&gt;&gt; ujson.load(u)
    Traceback (most recent call last):
      File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    ValueError: syntax error in JSON

After the change, the vfs object is correctly detected as not supporting
the stream protocol:
    &gt;&gt;&gt; ujson.load(p)
    Traceback (most recent call last):
      File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    OSError: stream operation not supported
</content>
</entry>
<entry>
<title>Uncomment vm.c SUPEROPT (debugging typo); trim a few builds</title>
<updated>2019-06-12T17:09:09+00:00</updated>
<author>
<name>Dan Halbert</name>
<email>halbert@halwitz.org</email>
</author>
<published>2019-06-12T17:09:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ba1b36a800393680c6681074c317532312930707'/>
<id>urn:sha1:ba1b36a800393680c6681074c317532312930707</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Turn off SUPEROPT on gc.c instead of trying to squueze inline limit so much; reorganize mpconfigboard.mk files</title>
<updated>2019-06-12T15:08:22+00:00</updated>
<author>
<name>Dan Halbert</name>
<email>halbert@halwitz.org</email>
</author>
<published>2019-06-12T15:08:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=1bb4fccc3b28edd1010013b3043e419ec2940f7f'/>
<id>urn:sha1:1bb4fccc3b28edd1010013b3043e419ec2940f7f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update py.mk</title>
<updated>2019-04-05T19:39:44+00:00</updated>
<author>
<name>Damiano Mazzella</name>
<email>damianomazzella@gmail.com</email>
</author>
<published>2019-04-05T19:39:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=7549326ceb5008a5591e097d20ee1baf349e78dc'/>
<id>urn:sha1:7549326ceb5008a5591e097d20ee1baf349e78dc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Don't build machine class we don't use.</title>
<updated>2019-01-15T01:30:01+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott@tannewt.org</email>
</author>
<published>2019-01-15T01:30:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=12c8b00556859bd9dc97b4f11761f45ad23098a3'/>
<id>urn:sha1:12c8b00556859bd9dc97b4f11761f45ad23098a3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add support for adding release info into adafruit/circuitpython-org</title>
<updated>2018-11-30T08:30:57+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott@tannewt.org</email>
</author>
<published>2018-11-29T00:58:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=9d07e95351f692167a2e178b06311f17d0767df4'/>
<id>urn:sha1:9d07e95351f692167a2e178b06311f17d0767df4</id>
<content type='text'>
This also changes the build script to python with better output.
</content>
</entry>
</feed>
