Commit Graph

76 Commits

Author SHA1 Message Date
Windel Bouwman
64ab147f64 Compress bytecode using LZ4 2019-10-07 20:54:22 +02:00
coolreader18
50bfc2b357 Rework the pyclass proc macro a bit 2019-10-02 22:18:29 -05:00
Daniel Alley
a6bf19e549 Change sys.version* attributes to return the Python version
Return the version of Python that we attempt to be compatible with, not
the version numbers of the RustPython interpreter itself.

closes #1396
2019-10-01 16:12:45 -04:00
coolreader18
c46b5b50bd Fix weirdness with type.__new__()/type()/metaclass.__new__() 2019-09-29 23:14:31 -05:00
Noah
d88167bb73 Bump crate versions 2019-09-25 11:57:38 -05:00
coolreader18
a0146c5fa6 Add site module and run it on startup 2019-08-15 15:33:36 -05:00
coolreader18
286051383e impl std::str::FromStr for compile::Mode 2019-08-13 12:35:07 -05:00
coolreader18
4f9a71ff89 Change compile::compile() to take a Mode instead of an &Mode 2019-08-13 12:34:39 -05:00
coolreader18
a72ef1e365 Add frozen package support 2019-07-27 14:27:29 -05:00
Aviv Palivoda
0a6253593f Change compile_dir path to &Path 2019-07-22 18:02:57 +03:00
Aviv Palivoda
64f102450b Fix clippy warning 2019-07-22 17:58:33 +03:00
Aviv Palivoda
7226c925d2 Add hashmap macro to __exports 2019-07-20 22:25:46 +03:00
Aviv Palivoda
c480449420 Fix clippy comments 2019-07-20 22:09:24 +03:00
Aviv Palivoda
5c240d71a8 Support freezing of stdlib 2019-07-20 18:06:46 +03:00
Aviv Palivoda
f271a0e5cf Change py_compile_bytecode to return map 2019-07-20 12:23:56 +03:00
coolreader18
402eb8a48b Merge branch 'master' into redox 2019-07-13 11:46:43 -05:00
Windel Bouwman
ac765a957b Add a settings struct for storage of different settings which influence the VM. 2019-07-13 12:23:53 +02:00
coolreader18
86a6b2a366 Use feature for proc_macro_hack 2019-07-13 00:59:18 -05:00
Windel Bouwman
704b15750e Add optimize flag to ignore assert statements. 2019-07-12 18:41:25 +02:00
coolreader18
76dbd8ebb0 Remove proc-macro-hack 2019-07-11 18:40:07 -05:00
coolreader18
9204035d97 Cover up bare trait objects with a dyn 2019-07-10 09:41:58 -05:00
coolreader18
0893076643 Add #![doc(html_logo_url = ...)] to crates 2019-07-08 23:57:18 -05:00
Windel Bouwman
dbc263cc1b Merge pull request #1114 from mkurnikov/fix-clippy-1.36
Enable clippy in CI
2019-07-07 15:28:43 +02:00
Windel Bouwman
cc24b73031 Set all versions to 0.1.0 2019-07-07 13:04:12 +02:00
Maxim Kurnikov
347d48198e fix remaining clippy warnings 2019-07-07 06:27:07 +03:00
Windel Bouwman
6a58b76ef7 Change authors to team name. 2019-07-01 21:14:07 +02:00
Windel Bouwman
bedbad284e Change underscore into hyphen 2019-07-01 21:05:29 +02:00
Windel Bouwman
183415e64b Move bytecode into own crate. 2019-06-30 11:01:40 +02:00
Windel Bouwman
ba88716fbe Merge pull request #1049 from RustPython/coolreader18/fromargs-span-errors
Improve errors messages for derive(FromArgs)
2019-06-23 20:59:11 +02:00
Windel Bouwman
eeb7551692 Merge pull request #1039 from RustPython/coolreader18/wasm-_js-module
[WASM] Add a JsValue class
2019-06-23 11:39:01 +02:00
Windel Bouwman
2f75562f14 Merge pull request #1045 from RustPython/coolreader18/pyclassmethod-attr
Add #[pyclassmethod] to #[pyimpl]
2019-06-22 12:40:49 +02:00
coolreader18
8cf38f5b25 Move classmethods on JsValue to be normal methods 2019-06-21 20:20:21 -05:00
coolreader18
61b26878de Add rustpython_vm::__exports module and fix warning 2019-06-21 20:20:19 -05:00
coolreader18
c359c430c2 Add set_file_attr to import_codeobj 2019-06-20 22:43:13 -05:00
coolreader18
aefbae40e4 Revert "Make CodeObject.source_path an Option<String>" 2019-06-20 12:01:20 -05:00
coolreader18
cb832e9aa1 Improve errors messages for derive(FromArgs) 2019-06-20 11:57:59 -05:00
coolreader18
e68b4943ca Add #[pyclassmethod] to #[pyimpl] 2019-06-18 20:37:08 -05:00
coolreader18
b74b65d37e Make CodeObject.source_path an Option<String> 2019-06-16 19:59:04 -05:00
coolreader18
1814977c45 Add doc comments 2019-06-15 20:19:59 -05:00
coolreader18
75c2e4ae9b Remove lazy_static, just store as a CodeObject 2019-06-15 11:31:30 -05:00
coolreader18
241f5190cc Formatting 2019-06-15 00:30:14 -05:00
coolreader18
b5ba62fe94 Add lazy_static argument 2019-06-14 21:17:12 -05:00
coolreader18
48966a76e2 Make py_compile_bytecode!() an expression 2019-06-14 18:20:02 -05:00
coolreader18
4d0eb06724 Default source_path 2019-06-14 12:40:01 -05:00
coolreader18
d2cde9a3bf Use bincode to deserialize into a CodeObject 2019-06-14 12:26:35 -05:00
coolreader18
e592f3d888 Add py_compile_bytecode! macro 2019-06-14 10:42:45 -05:00
ben
52039845dd Use closure for generated properties in struct sequences. 2019-05-19 15:23:51 +12:00
ben
8b657ab81e Add documentation for sys.flags 2019-05-19 10:32:07 +12:00
ben
2ca96c8ae1 Add sys.flags by creating a pystruct_sequence macro 2019-05-19 10:17:21 +12:00
coolreader18
dc63fc8ce7 Switch to span-based errors for pyclass and pyimpl 2019-04-15 22:15:20 -05:00