Wykres commitów

1057 Commity (5cb3fe10f0a534f1506bde6a4b757e3d2cb0c048)

Autor SHA1 Wiadomość Data
Paul Sokolovsky 5cb3fe10f0 sqlite3: test_sqlite3: Turn into a real test (with asserts). 2017-08-30 00:05:07 +03:00
Paul Sokolovsky d113ea4751 sqlite3: Release 0.2.4. 2017-08-29 00:32:16 +03:00
Paul Sokolovsky 2d4bc69975 sqlite3: Pass sys.byteorder to int.from_bytes().
Following it now being mandatory in MicroPython.
2017-08-29 00:31:44 +03:00
Paul Sokolovsky 4cae9a3fc0 time: Add test_strftime.py.
Based on test patterns prepared by @sschwartzcpu.
2017-08-27 12:34:47 +03:00
Paul Sokolovsky eaf7228ce6 time: Release 0.3.2. 2017-08-27 12:24:10 +03:00
sschwartzcpu ac66b1ca1a time: strftime: 2nd parameter must be a struct tm tuple.
As described in https://docs.python.org/3/library/time.html#time.strftime
2017-08-27 12:19:47 +03:00
Paul Sokolovsky e14d8532fd codecs: Add dummy module. 2017-08-26 10:28:41 +03:00
Paul Sokolovsky 935509ac4b ssl: Release 0.0.1. 2017-08-20 17:59:54 +03:00
Paul Sokolovsky ea60d9d71f ssl: Add dummy module, redirecting to ussl. 2017-08-20 17:59:01 +03:00
Paul Sokolovsky da9228c9b2 xmltok: Release 0.2. 2017-08-20 17:53:57 +03:00
ThunderEX fdf984d07d xmltok: Skip comment markup in XML.
This is provisional solution, at later time, comments may become tokenized
and fed to the caller, like other syntactic elements.
2017-08-20 17:52:28 +03:00
Paul Sokolovsky 79f13b6e4a uasyncio.core/test_full_wait: Update for .wait() called on each loop iter.
This fixes this mock test after the recent change to make I/O scheduling
fair.
2017-08-20 17:06:07 +03:00
Paul Sokolovsky eef054d98a uasyncio.core: Make I/O scheduling fair wrt to computational scheduling.
If there is a coroutine to run immediately (with wait delay <= 0),
uasyncio.core never called .wait() method, which is required to
process I/O events (and schedule coroutines waiting for them). So
now, call .wait(0) even if there's a coroutine to run immediately.
2017-08-20 17:04:31 +03:00
Peter Hinch 65605e3de8 uasyncio: Add test showing I/O scheduling starvation.
If there is a coroutine to run immediately (with wait delay <= 0),
uasyncio.core never calls .wait() method, which is required to
process I/O events (and schedule coroutines waiting for them).

This test demonstrates the problem.
2017-08-20 16:36:15 +03:00
Paul Sokolovsky c7b277ff7c binascii: Add test which exposes to_bytes() problem in the module. 2017-08-15 10:26:25 +03:00
Christopher Cooper 20d9cdbd5f binascii: Add required argument to <int>.to_bytes(...) call.
The <int>.to_bytes(...) function requires two arguments.  The first
specifies the number of bytes to return, and the second specifies the
endianness of those bytes.  By definition, Base64 encoding is big
endian.
2017-08-15 10:24:59 +03:00
Christopher Cooper 96c981b1ee hmac: Calculate correct digest when non-trivial key is used.
This incorrect behavior was a result of the function that performs
table-driven byte translation. The function first used the chr(...)
function to convert each resulting byte, represented as an integer,
to a string of length one. Then, the <str>.encode(...) function was
used to convert the string to a byte string with an intended length
of one. That didn't work well for bytes with high bit set, as they
were trated as UTF-8 chars. Instead, perform operations directly on
bytes.

This was an artifact of porting this to MicroPython, as the original
CPython module uses bytes.translate(...) method (not available in
uPy).
2017-08-13 14:52:52 +03:00
Paul Sokolovsky 6bf4207215 README: Update, more details about package sources. 2017-08-13 13:52:49 +03:00
Christopher Cooper c5ebfe1c72 base64: Add missing dependencies. 2017-08-12 08:46:38 +03:00
Paul Sokolovsky c265899cb7 re-pcre: Release 0.2.5. 2017-07-06 00:15:54 +03:00
Paul Sokolovsky b8718dc7cc re-pcre: Support .group() method without args.
Defaults to 0.
2017-07-06 00:15:17 +03:00
Paul Sokolovsky 607c62a813 umqtt.simple: Release 1.3.4. 2017-06-27 21:18:43 +03:00
puuu a09b3ec20a umqtt.simple: Do DNS lookup in connect() method. 2017-06-27 21:16:13 +03:00
Paul Sokolovsky f9f2264d99 typing: Add dummy module. 2017-06-23 15:41:15 +03:00
Paul Sokolovsky 24ba28a352 socket: Add INADDR_ANY. 2017-06-22 19:59:54 +03:00
Paul Sokolovsky 0636230639 upip: Release 1.2.1. 2017-06-16 02:47:52 +03:00
Anne Jan Brouwer e8053fb06a upip: Add server_hostname param to ussl.wrap_socket() call. 2017-06-15 16:04:58 +02:00
Paul Sokolovsky 7522c14183 urequests: Release 0.4.4. 2017-06-14 19:37:36 +03:00
Paul Sokolovsky 78ce2a8957 urequests: Add server_hostname param to ussl.wrap_socket() call. 2017-06-14 19:37:08 +03:00
Paul Sokolovsky efd7cd5ff9 urllib.urequest: Release 0.4.4. 2017-06-14 19:35:25 +03:00
Paul Sokolovsky 633f030d6f urllib.urequest: Add server_hostname param to ussl.wrap_socket() call. 2017-06-14 18:31:16 +03:00
Paul Sokolovsky 98502a223a pkg_resources: Release 0.2.1. 2017-06-10 16:16:29 +03:00
Paul Sokolovsky 154b8b02b9 pkg_resources: Don't try to make FS path absolute so far.
There's no uos.getcwd() on Unix - so far.
2017-06-10 16:15:09 +03:00
Paul Sokolovsky 7d9eb0716c uasyncio: Release 1.2.2. 2017-06-10 16:11:41 +03:00
Paul Sokolovsky a191626c2e uasyncio: Add awriteiter() method.
Write piecewise content from iterable (usually, a generator).
2017-06-10 16:10:27 +03:00
Paul Sokolovsky 1096940769 pkg_resources: Release 0.2. 2017-06-10 00:23:20 +03:00
Paul Sokolovsky 8a2958ee36 pkg_resources: Support "frozen" resources (in R.py module). 2017-06-10 00:22:50 +03:00
Paul Sokolovsky e1f75100cf uasyncio: Release 1.2.1. 2017-06-08 02:54:42 +03:00
Paul Sokolovsky a2097be138 uasyncio: Add own set_debug() function.
set_debug() from uasyncio.core doesn't have effect on the main uasyncio
package, so let them both have set_debug() function, and allow to enable
debug logging independently.
2017-06-08 02:51:29 +03:00
Paul Sokolovsky a4b75ab2bf uasyncio.core: Release 1.4.2. 2017-06-08 02:48:45 +03:00
Paul Sokolovsky b9540e4afe uasyncio.core: Use "uasyncio.core" logger. 2017-06-08 02:48:04 +03:00
Paul Sokolovsky 808e0bba0c umqtt.robust: Elaborate README.
Add intro section on complexities of achieving "robustness" and make
expicit that umqtt.robust requires an MQTT server with persistence
enabled.
2017-06-07 20:28:30 +03:00
Paul Sokolovsky 75e1474ddf uasyncio: awrite: Use 3-arg .write(), accept offset/size too.
Use MicroPython .write() extension of passing offset/size to efficiently
spool buffers larger than socket output buffer. Also, make awrite()
accept these params too.
2017-06-07 03:09:34 +03:00
Paul Sokolovsky 87e30182a1 uasyncio: test-ab-medium.sh: Run ab on http://127.0.0.1 .
On some hosts, http://localhost doesn't work, apparently ab resolve it
via IPv6 or something.
2017-06-06 21:37:55 +03:00
Paul Sokolovsky f5fe55aaef uasyncio: Release 1.2. 2017-06-06 21:27:50 +03:00
Paul Sokolovsky 16afc06b8c uasyncio: Switch to memory-efficient poll.ipoll() method.
As added in MicroPython 1.9.
2017-06-06 21:04:37 +03:00
Paul Sokolovsky 21d60a8b5f uasyncio.core: Release 1.4.1. 2017-05-23 01:27:33 +03:00
Paul Sokolovsky e13e139f51 uasyncio.core: Don't feed old send arguments into next coro invocation.
As all current syscalls don't return any value, there's nothing to feed
actually.
2017-05-23 01:26:08 +03:00
Paul Sokolovsky 191de78b16 uasyncio.core: Release 1.4. 2017-05-22 13:58:51 +03:00
Paul Sokolovsky c01004d71f uasyncio.core: Add test for callback args to call_soon(). 2017-05-22 13:57:57 +03:00