summaryrefslogtreecommitdiff
path: root/unix
AgeCommit message (Collapse)Author
2017-01-16tests: Improve frozen import test coverage.Rami Ali
2017-01-16unix/coverage: Move coverage #if guard back to top of file.Damien George
2017-01-16tests: Improve stream.c test coverage.Rami Ali
2017-01-08tests/unix/extra_coverage: Add tests for importing frozen packages.Damien George
2017-01-05unix/Makefile: Allow cache-map-lookup optimisation with frozen bytecode.Damien George
2017-01-05unix: Enable and add basic frozen str and frozen mpy in coverage build.Damien George
2017-01-05unix/Makefile: Split long line for coverage target, easier to modify.Damien George
2017-01-05tests/unix: Improve formatfloat.c test coverage using C.Rami Ali
2017-01-05tests: Improve warning.c test coverage.Rami Ali
2017-01-04all: Consistently update signatures of .make_new and .call methods.Paul Sokolovsky
Otherwise, they serve reoccurring source of copy-paste mistakes and breaking nanbox build.
2016-12-31unix/moduselect: Fix nanbox build with recent changes.Paul Sokolovsky
2016-12-31unix/moduselect: If file object passed to .register(), return it in .poll().Paul Sokolovsky
This makes unix "uselect" compatible with baremetal "uselect". Previosuly, unix version accepted file/socket objects, but internally converted that to file descriptors, and that's what .poll() returned. To acheive new behavior, file-like objects are stored internally in an array, in addition to existing array of struct pollfd. This array is created only on first case of file-like object being passed to .register(). If only raw fd's are passed, there will be no additional memory used comparing to the original implementation.
2016-12-29tests/unix: Improve runtime_utils.c test coverage.Rami Ali
2016-12-22unix/Makefile: Make "coverage_test" target mirror Travis test actions.Damien George
2016-12-22unix/main: Allow to print the parse tree in coverage build.Damien George
Passing -v -v -v on the command line of the coverage build will now print the parse tree (as well as other things at this verbosity level).
2016-12-22unix: Enable utimeq module.Paul Sokolovsky
2016-11-21unix/Makefile: Update freedos target for change of USELECT config name.Damien George
2016-11-21unix: Rename define for unix moduselect to MICROPY_PY_USELECT_POSIX.Paul Sokolovsky
To not conflict with recently made available globally baremetal moduselect.
2016-11-16py: Factor out persistent-code reader into separate files.Damien George
Implementations of persistent-code reader are provided for POSIX systems and systems using FatFS. Macros to use these are MICROPY_READER_POSIX and MICROPY_READER_FATFS respectively. If an alternative implementation is needed then a port can define the function mp_reader_new_file.
2016-11-14all: Remove readall() method, which is equivalent to read() w/o args.Paul Sokolovsky
Its addition was due to an early exploration on how to add CPython-like stream interface. It's clear that it's not needed and just takes up bytes in all ports.
2016-11-08unix: Add symlinks for upip to make it frozen into binary.Damien George
2016-11-08py: Move frozen bytecode Makefile rules from ports to common mk files.Damien George
Now, to use frozen bytecode all a port needs to do is define FROZEN_MPY_DIR to the directory containing the .py files to freeze, and define MICROPY_MODULE_FROZEN_MPY and MICROPY_QSTR_EXTRA_POOL.
2016-11-07tools, unix: Replace upip tarball with just source files.Paul Sokolovsky
To make its inclusion as frozen modules in multiple ports less magic. Ports are just expected to symlink 2 files into their scripts/modules subdirs. Unix port updated to use this and in general follow frozen modules setup tested and tried on baremetal ports, where there's "scripts" predefined dir (overridable with FROZEN_DIR make var), and a user just drops Python files there.
2016-11-03windows: Implement mp_hal_ticks_cpu in terms of QueryPerformanceCounterstijn
2016-11-02unix: fix symbol references for x86 MacJan Pochyla
2016-10-29extmod/utime_mphal: Implement ticks_add(), add to all maintained ports.Paul Sokolovsky
2016-10-29unix/mphalport.h: Add dummy definition of mp_hal_ticks_cpu().Paul Sokolovsky
To fix coverage build.
2016-10-29unix/modtime: Switch ticks/sleep_ms/us() to utime_mphal.Paul Sokolovsky
2016-10-29unix/mphalport.h: Add warning of mp_hal_delay_ms() implementation.Paul Sokolovsky
It's implemented in terms of usleep(), and POSIX doesn't guarantee that usleep() can sleep for more than a second. This restriction unlikely applies to any real-world system, but...
2016-10-29unix/modtime: Use ticks_diff() implementation from extmod/utime_mphal.c.Paul Sokolovsky
2016-10-25unix/Makefile: Remove references to deprecated pip-micropython.Paul Sokolovsky
2016-10-21py: Be more specific with MP_DECLARE_CONST_FUN_OBJ macros.Damien George
In order to have more fine-grained control over how builtin functions are constructed, the MP_DECLARE_CONST_FUN_OBJ macros are made more specific, with suffix of _0, _1, _2, _3, _VAR, _VAR_BETEEN or _KW. These names now match the MP_DEFINE_CONST_FUN_OBJ macros.
2016-10-16esp8266, stmhal, unix: MAKE_FROZEN is consistently defined in mkenv.mk.Paul Sokolovsky
2016-10-14py/vstr: Combine vstr_new_size with vstr_new since they are rarely used.Damien George
Now there is just one function to allocate a new vstr, namely vstr_new (in addition to vstr_init etc). The caller of this function should know what initial size to allocate for the buffer, or at least have some policy or config option, instead of leaving it to a default (as it was before).
2016-10-07unix: Use common RAISE_ERRNO macro from mphalport.h.Damien George
2016-10-07unix: Use mp_raise_OSError helper function.Damien George
2016-09-23py/py.mk: Add support for building modussl_mbedtls.Paul Sokolovsky
2016-09-22unix: Enable btree module for coverage build.Damien George
2016-09-22all: Remove 'name' member from mp_obj_module_t struct.Damien George
One can instead lookup __name__ in the modules dict to get the value.
2016-09-18unix/modjni: array(): Support creation of object arrays.Paul Sokolovsky
2016-09-17unix/modjni: Add array() top-level function to create Java array.Paul Sokolovsky
Takes element primitive type encoded as a char per standard JNI encoding, and array size. TODO: Support object arrays.
2016-09-16unix/modjni: Implement subscription for object arrays.Paul Sokolovsky
2016-09-12unix: Fix build for when MICROPY_PY_SOCKET=0.Renato Aguiar
2016-09-05unix,stmhal,esp8266: When find'ing frozen files follow symbolic links.Damien George
It's useful to be able to use symbolic links to add files and directories to the set of scripts to be frozen.
2016-09-05py: Add MICROPY_USE_INTERNAL_PRINTF option, defaults to enabled.Delio Brignoli
This new config option allows to control whether MicroPython uses its own internal printf or not (if not, an external one should be linked in). Accompanying this new option is the inclusion of lib/utils/printf.c in the core list of source files, so that ports no longer need to include it themselves.
2016-09-04tests/extmod: Add a test for framebuf module, tested by coverage build.Damien George
2016-09-02tests/unix/extra_coverage: Add test for str/bytes with invalid hash.Damien George
2016-09-01py/mpprint: Fail an assertion with unsupported format specifiers.Delio Brignoli
Arguments of an unknown type cannot be skipped and continuing to parse a format string after encountering an unknown format specifier leads to undefined behaviour. This patch helps to find use of unsupported formats.
2016-08-31unix,stmhal,esp8266: When find'ing frozen files don't use extra slash.Damien George
This extra forward slash for the starting-point directory is unnecessary and leads to additional slashes on Max OS X which mean that the frozen files cannot be imported. Fixes #2374.
2016-08-24extmod/modubinascii: Make crc32() support configurable.Paul Sokolovsky
Disable by default, enable in unix port.