Paul Sokolovsky
4fa29d867a
uasyncio.core: Remove call_at() which takes absolute second time.
...
uasyncio uses different timebase than CPython's asyncio, so absolute
time scheduling compatible with it is impossible. Instead, there's
call_at_() which schedules using modular millisecond time.
2017-05-16 21:53:29 +03:00
Paul Sokolovsky
ad73ee3043
uasyncio.core: Use finalized name for call_later_ms().
2017-05-16 21:53:29 +03:00
Paul Sokolovsky
61392cb641
uasyncio.core: Remove unused Sleep syscall.
...
It's unused since since sleep() was switched to yield an integer for
delay.
2017-05-16 21:45:13 +03:00
Paul Sokolovsky
3ef991c115
uasyncio.core: Remove legacy commented code for add_reader/add_writer.
2017-05-14 16:38:32 +03:00
Paul Sokolovsky
f30c784dcf
pprint: Release 0.0.4.
2017-05-11 21:21:23 +03:00
Paul Sokolovsky
d8c87f8153
pprint: Add dummy pprint() function.
2017-05-11 21:20:51 +03:00
Paul Sokolovsky
d0c6ae0b31
urequests: Add example_xively.py as very basic example.
...
The main purpose is actually to show the need to call .close().
2017-05-05 20:47:08 +03:00
Paul Sokolovsky
577457dbdd
upip: Release 1.2.
2017-05-05 13:10:06 +03:00
Paul Sokolovsky
04eb5b2e7f
optimize_upip.py: Rework inclusion/exclusion logic.
...
We should include files by default, as a package may contain arbitrary
files, e.g. as resources. So, rework inclusion/exlusion logic to work
using incremental refinement.
2017-05-05 13:01:54 +03:00
Paul Sokolovsky
e8e531b754
uasyncio: Release 1.1.2.
2017-05-05 11:35:24 +03:00
Paul Sokolovsky
9a72e29564
uasyncio: Consistently use "if DEBUG and __debug__:" stanza.
...
To make sure this module can work without logging module imported, just
like uasyncio.core was made to.
2017-05-05 11:33:39 +03:00
Paul Sokolovsky
91d9c168b8
upip: url_open: Reworking error handling to guaranteedly close socket.
2017-05-05 03:25:07 +03:00
Paul Sokolovsky
024d6bc2b1
upip: install_pkg: Use try-finally to ensure opened socket always closed.
2017-05-05 03:17:21 +03:00
Paul Sokolovsky
1bfd389a81
upip: url_open: If --debug, dump URL being opened.
2017-05-04 10:44:54 +03:00
Paul Sokolovsky
c9337def58
upip: Treat PyPI redirects as "package not found".
...
PyPI has got too smart and redirects typos, etc. to a similarly-called
packages.
2017-05-04 10:17:27 +03:00
Paul Sokolovsky
823b743daf
upip: get_pkg_metadata: Use ujson.load() to save memory.
2017-05-04 01:12:58 +03:00
Paul Sokolovsky
36744578e2
uasyncio.core: Release 1.2.1.
2017-05-01 16:10:51 +03:00
Paul Sokolovsky
aea501add6
uasyncio.core: Import utime unconditionally, uasyncio depends on MicroPython.
2017-05-01 16:09:34 +03:00
Paul Sokolovsky
b2f69eb23b
uasyncio.core: Add set_debug() method, don't import logging if not called.
2017-05-01 16:04:28 +03:00
Paul Sokolovsky
0a02e2dfff
urequests: Subscript getaddrinfo() result with -1.
2017-05-01 15:28:56 +03:00
Paul Sokolovsky
0496643afb
upip: Release 1.1.6.
2017-05-01 00:02:51 +03:00
Paul Sokolovsky
aa02e41056
upip: Allow to have commented packages in requirements.txt.
2017-05-01 00:02:33 +03:00
Paul Sokolovsky
9b1f0105a5
os: Release 0.6.
2017-04-29 19:43:00 +03:00
Paul Sokolovsky
43ce994fa6
os: listdir: Fix bytes vs str comparison warning.
2017-04-29 19:39:26 +03:00
Paul Sokolovsky
94f1584e48
umqtt.simple: Release 1.3.3.
2017-04-27 17:53:14 +03:00
Damien Mascord
2164c88483
umqtt.simple: Handle CONNECT messages longer than 127 bytes.
2017-04-27 17:52:00 +03:00
Paul Sokolovsky
30c2ac5601
itertools: Release 0.2.3.
2017-04-24 22:08:49 +03:00
stijn
45ff04ac75
itertools: Add accumulate function
2017-04-24 16:00:30 +02:00
Paul Sokolovsky
5cf6600e5e
uasyncio.core: Release 1.2.
2017-04-20 21:32:07 +03:00
Paul Sokolovsky
bb3057ffed
uasyncio.core: Fix scheduling in the presense of I/O completion callbacks.
...
wait() may finish prematurely due to I/O completion, and schedule new,
earlier than before tasks to run. So, after call to wait(), we need to
check current time and time of head task, and continue to wait if needed.
Recently introduced provisional utimeq.peektime() is used to optimize
querying time of a head task.
2017-04-08 01:34:57 +03:00
Paul Sokolovsky
c440f8466e
urequests: Release 0.4.3.
2017-03-25 17:47:27 +03:00
jens persson
6ce081133c
urequests: A Location-header with a 2XX status is not a redirect.
...
When using the POST method you get the Location of the new
object in a Location header but it's not a redirect.
For details see for example RFC2616 10.2.2 and 10.2.3
2017-03-25 17:45:51 +03:00
Paul Sokolovsky
53193ba2e7
uasyncio: benchmark: Modern browsers produce requests more than 256 bytes.
...
So, not all of the request was read, and a browser would report than
connection was reset.
2017-03-16 01:55:32 +03:00
Paul Sokolovsky
a355801fb1
uasyncio: wait: Remove no longer needed "if", artifact of epoll impl.
2017-03-13 00:44:58 +03:00
Paul Sokolovsky
4fc72c6032
uasyncio: Remove "epoll" references from previous Linux-only implementation.
2017-03-12 16:42:02 +03:00
Paul Sokolovsky
aa9bbe839e
uasyncio.core: Add test for full wait for a time-scheduled coro.
...
Specifically, that a coroutine scheduled to run at some time (after some
delay) waits requested time before it's run and not run prematurely in
case an I/O completion happens before it.
2017-03-12 16:02:06 +03:00
Paul Sokolovsky
48ead94116
uasyncio.core: Add test for fair scheduling.
2017-03-06 12:16:34 +01:00
Paul Sokolovsky
aba6935892
uasyncio: Release 1.1.1.
2017-02-16 00:04:39 +03:00
Paul Sokolovsky
853535802f
uasyncio.core: Release 1.1.1.
2017-02-15 23:49:39 +03:00
Paul Sokolovsky
67445f3334
uasyncio: benchmark: Rename test runners to correspond to underlying tests.
2017-02-15 11:19:10 +03:00
Paul Sokolovsky
6a4973331a
uasyncio: benchmark: Set higher queue length for "medium" test.
...
Following setting the default conservatively low in the module.
Surprisingly, heavy test appears to work with new default length
of 42.
2017-02-15 11:17:02 +03:00
Paul Sokolovsky
e3dac1d693
uasyncio: Allow to override queue length, while setting low default.
...
The default queue length is set to take under 0.5K RAM on 32-bit system.
A queue length can be passed to get_event_loop() to override it. This
change follows similar change in uasyncio.core.
2017-02-15 11:14:53 +03:00
Paul Sokolovsky
55b4161512
uasyncio.core: Set lower default queue len and allow to override it.
...
The default is set to be under 0.5K on 32-bit system. A queue length
can be passed to get_event_loop() to override it.
2017-02-15 03:27:59 +03:00
Paul Sokolovsky
12da3a81a6
copy: Use standard metadata, release is 3.3.3-2.
2017-02-08 01:23:00 +03:00
Paul Sokolovsky
d59af2da7b
upip: Release 1.1.5.
2017-02-08 01:15:58 +03:00
Paul Sokolovsky
1f91189e04
upip: Be sure to close socket if we abort with error early.
...
Need to close properly in more places.
2017-02-08 01:14:56 +03:00
Paul Sokolovsky
a86e7cf5a7
upip: Report host name resolve error in user friendly manner.
2017-02-08 01:12:45 +03:00
Paul Sokolovsky
068988085e
upip: Report package not found and similar errors with less noise.
...
While still allow to get full backtrace with --debug.
2017-02-08 00:39:47 +03:00
Paul Sokolovsky
f6668aae28
uasyncio: Release 1.1.
2017-01-28 01:58:05 +03:00
Paul Sokolovsky
1bf1c74ae5
uasyncio: Use builtin uerrno module.
2017-01-28 01:55:40 +03:00