Commit Graph

1886 Commits

Author SHA1 Message Date
Andrew Scheller
11559cff38 travis: only build unix with gcc-4.7 2014-04-15 04:36:25 +01:00
Andrew Scheller
f0777d1c2c travis: build unix targets first
because @pfalcon says so
2014-04-15 04:15:36 +01:00
Jonathan Greig
e71311ed87 Fixed Travis-CI Build Status Link in README.md 2014-04-14 21:52:22 -05:00
Andrew Scheller
499d50be98 Merge remote-tracking branch 'upstream/master' into patch-1
Conflicts:
	.travis.yml
2014-04-15 03:48:58 +01:00
Paul Sokolovsky
8c1bec4ae7 .travis.yml: Use gcc-4.7 to avoid broken codegeneration and failed tests. 2014-04-15 05:13:48 +03:00
Andrew Scheller
16fecc0a84 Update .travis.yml
Check that the bare-arm, stmhal and unix-cpy ports at least remain compilable, even if we can only actually run tests against the unix port.
2014-04-15 03:02:17 +01:00
Paul Sokolovsky
c1cc4a68bc Merge pull request #486 from lurch/patch-1
Update .travis.yml to use python3.3
2014-04-15 04:58:44 +03:00
Andrew Scheller
c29a0ac56a Update .travis.yml
Seems like I'd inadvertently created invalid YAML!
2014-04-15 02:42:23 +01:00
Andrew Scheller
9b5a9d41dc Update .travis.yml
Add diffing of failure logs
2014-04-15 02:29:59 +01:00
Andrew Scheller
e31a8222f2 Update .travis.yml
Doh, the shebang line for run-tests itself relies on `python3`
2014-04-15 02:14:53 +01:00
Andrew Scheller
0388b2ea78 Update .travis.yml
This *might* fix it enough for all tests to run (maybe?)
2014-04-15 00:52:15 +01:00
Paul Sokolovsky
cc8c0882a0 pip-micropython: Fix inverted condition. 2014-04-15 02:32:41 +03:00
Damien George
e10da77a5c Merge branch 'master' of github.com:micropython/micropython 2014-04-14 23:44:20 +01:00
Damien George
8341725b65 travis: Only run some tests, to work around CPython version issues.
Needs a proper fix, to install/configure CPython 3.3.x (or 3.4.0) on
Travis CI.
2014-04-14 23:43:35 +01:00
Damien George
3683789207 py: Clean up and add comments to makeqstrdata. 2014-04-14 23:38:37 +01:00
Paul Sokolovsky
a5854d2bc5 builtinimport: Add basic support for namespace packages.
That was easy - just avoid erroring out on seeing candidate dir for namespace
package. That's far from being complete though - namespace packages should
support importing portions of package from different sys.path entries, here
we require first matching entry to contain all namespace package's portions.

And yet, that's a way to put parts of the same Python package into multiple
installable package - something we really need for *Micro*Python.
2014-04-15 01:30:25 +03:00
Paul Sokolovsky
75ffcaeace py: Implement __delitem__ method for classes. 2014-04-15 01:30:25 +03:00
Damien George
bc9ec5002d Merge pull request #485 from lurch/patch-1
pip-micropython: revert $HOME back to ~
2014-04-14 22:30:20 +01:00
Andrew Scheller
6fc40cc3da pip-micropython: revert $HOME back to ~ 2014-04-14 22:26:34 +01:00
Damien George
5224705248 travis: Change to tests directory before running. 2014-04-14 22:04:15 +01:00
Damien George
3d867f5eab Merge pull request #479 from lurch/patch-1
Don't allow both ENDIANNESSes to be set
2014-04-14 21:41:05 +01:00
Damien George
a7239b2fc2 Merge pull request #480 from lurch/patch-2
Make pip-micropython more portable
2014-04-14 21:39:31 +01:00
Damien George
98bd4f24ff Fix README build status image. 2014-04-14 21:33:31 +01:00
Damien George
1d8d2f84aa Merge branch 'master' of github.com:micropython/micropython 2014-04-14 21:31:11 +01:00
Damien George
15bbd251f6 Update README to include build status from Travis CI. 2014-04-14 21:30:53 +01:00
Damien George
2a2cfbd0cf Merge pull request #484 from aitjcize/travis
Add Travis CI support.
2014-04-14 21:27:25 +01:00
Damien George
3bb8bd899b Make USE_COMPUTED_GOTO a config option in mpconfig.h.
Disabled by default.  Enabled in unix port.
2014-04-14 21:20:30 +01:00
Damien George
0ae9c7042a Merge branch 'master' of github.com:micropython/micropython 2014-04-14 19:44:49 +01:00
Damien George
1da8a6cfc7 Merge pull request #482 from aitjcize/threaded
Use computed goto instead of switching op-codes.
2014-04-14 19:45:37 +01:00
AZ Huang
b1f692e82e Use computed goto instead of switching op-codes. 2014-04-15 02:40:28 +08:00
Damien George
5904dad842 Merge pull request #483 from aitjcize/parallel
Fix parallel build.
2014-04-14 19:34:08 +01:00
Damien George
ad8abd1a95 Merge branch 'master' of github.com:micropython/micropython 2014-04-14 19:33:23 +01:00
AZ Huang
60993c166d Add Travis CI support. 2014-04-15 02:25:43 +08:00
AZ Huang
658eae308f Fix parallel build. 2014-04-15 01:47:14 +08:00
Andrew Scheller
0aac7ba344 Make pip-micropython more portable
Replace /tmp with a $TMPDIR variable
Replace multiple occurrences of /tmp/pip-micropy-venv with a $TMPVENV variable
Replace ~ with $HOME
2014-04-14 12:26:12 +01:00
Andrew Scheller
cc83737d35 Don't allow both ENDIANNESSes to be set
See discussion on 2da81fa80c

Explicitly set `MP_ENDIANNESS_LITTLE` because that's the #define that is used in code elsewhere.
2014-04-14 02:39:56 +01:00
Damien George
48a9b3fd11 tools: Improve timout/reading of pyboard.py. 2014-04-14 01:47:36 +01:00
Damien George
cce7119a2b stmhal: Work around crazy bug in USB CDC.
Packets of 64 bytes length are not send to the host until the following
packet is sent.  Fixed by never sending packets of 64 bytes length.
2014-04-14 01:46:25 +01:00
Damien George
7e5be0b1b4 stmhal: Improved usart module a bit. 2014-04-14 01:45:58 +01:00
Damien George
6dba016a56 stmhal: Add pyb.wfi() function (calls __WFI). 2014-04-14 01:45:24 +01:00
Paul Sokolovsky
bbae42d62f modsys: Implement sys.version.
The logic appears to be that (at least beginning of) sys.versions is the
version of reference Python language implemented, not version of particular
implementation.

Also, bump set versions at 3.4.0, based on @dpgeorge preference.
2014-04-14 01:46:45 +03:00
Paul Sokolovsky
58676fc2c7 objstr: Allow to define statically allocated str objects.
Similar to tuples, lists, dicts. Statically allocated strings don't have hash
computed.
2014-04-14 01:45:06 +03:00
Paul Sokolovsky
59e269cfec qstr, objstr: Make sure that valid hash != 0, treat 0 as "not computed".
This feature was proposed with initial hashing RFC, and is prerequisite for
seamless static str object definition.
2014-04-14 01:43:01 +03:00
Paul Sokolovsky
14de114ba8 objdict: Add __delitem__. 2014-04-13 23:55:59 +03:00
Paul Sokolovsky
cd94b384a3 objdict: Add __setitem__. 2014-04-13 23:41:49 +03:00
Damien George
86a03044e3 stmhal: Add stdin/stdout/stderr objects.
Available via sys.std{in,out,err}.  Basic reading and writing supported.
Even sys.stdin.readline!
2014-04-13 19:00:56 +01:00
Damien George
e2a48b66c2 tests: Add property test. 2014-04-13 19:00:27 +01:00
Damien George
777b0f32f4 py: Add property object, with basic functionality.
Enabled by MICROPY_ENABLE_PROPERTY.
2014-04-13 18:59:45 +01:00
Damien George
4417478d0f tests: Make tests pass on pyboard. 2014-04-13 17:46:30 +01:00
Damien George
9dcc60d0b1 py: Detect ZeroDivisionError properly for floats. 2014-04-13 17:45:30 +01:00