Commit Graph

7983 Commits

Author SHA1 Message Date
Jeong YunWon
5fa2483ace Merge pull request #2540 from RustPython/ast-optimization
Add the ast::fold::Fold trait, replacing MapAst
2021-04-15 02:55:41 +09:00
Jeong YunWon
cd1d43e637 Merge pull request #2542 from RustPython/sre-cratesio
Switch to sre-engine from crates.io
2021-04-15 02:53:37 +09:00
Noah
f892b06c3e Switch to sre-engine from crates.io 2021-04-13 10:40:15 -05:00
Noah
0ccc263e2f Allow clippy::upper_case_acronyms for sre-engine's constants 2021-04-13 10:40:13 -05:00
Noah
9d7021c4ff Merge pull request #2548 from deantvv/os-symlink
Fix os.symlink 3rd argument
2021-04-12 09:06:26 -05:00
Dean Li
89d0d5a63d os: remove symlink 3rd argument restriction 2021-04-12 21:17:04 +08:00
Dean Li
ac93edbee7 os: fix symlink signature to python doc
From python doc,
`os.symlink(src, dst, target_is_directory=False, *, dir_fd=None)`
which means that `target_is_directory` is both a positional and keyword argument.
2021-04-12 06:43:51 +08:00
Noah
730f37c91a Fix path_from_fd 2021-04-11 13:21:16 -05:00
Noah
8d68e17680 Merge pull request #2541 from RustPython/coolreader18/try-microbenchmarks-again
Optimize(?) microbenchmarks some more
2021-04-09 14:07:24 -05:00
Noah
f9555fd75d Fix getrandbits for k>32 2021-04-07 10:52:40 -05:00
Noah
b870fbef5d Merge pull request #2538 from deantvv/os-fwalk
os: Add support for fd and dir_fd in `listdir`, `stat`, `fstat`
2021-04-07 10:41:36 -05:00
Dean Li
b065c059d2 os: Don't consume File in path_from_fd 2021-04-07 22:40:06 +08:00
Noah
e6b5219393 Fix remaining test_random overflows 2021-04-05 23:15:25 -05:00
Noah
d7d62bfde0 Fix nested folding 2021-04-05 10:47:47 -05:00
Noah
db6fa17ffe Don't recompile CPython microbenchmarks every time 2021-04-05 09:49:16 -05:00
Noah
0a4141c778 Add an ast optimizer 2021-04-05 09:46:30 -05:00
Dean Li
5dae7aacda Remove vm in path_from_fd 2021-04-05 11:13:39 +08:00
Dean Li
84e1cf87ab Extract path_from_fd from make_path and listdir 2021-04-05 10:09:12 +08:00
Noah
d07dca789f Add the ast::fold::Fold trait, replacing MapAst 2021-04-04 17:52:19 -05:00
Noah
3b1e8bccfd Merge pull request #2539 from deantvv/detect_environment
Add os in detect requires environment script
2021-04-04 11:59:24 -05:00
Dean Li
7155decd1f Add os in detect requires environment script 2021-04-04 22:45:15 +08:00
Dean Li
204dccc477 os: Add support_fd for listdir
Use same approach as make_path to add support_fd for `listdir`

After this patch, `os.fwalk` is available.
Noted that, test coverage doesn't increase due to the lack of 3rd argument in `os.symlink`.
2021-04-04 22:34:24 +08:00
Dean Li
a2b97f0f96 os: update support features for stat and fstat 2021-04-04 22:34:24 +08:00
Dean Li
7a890256aa Fix skip condition for test_fd 2021-04-04 22:34:24 +08:00
Noah
e9aa81b003 Merge pull request #2537 from RustPython/try-fix-cron-2
Try fix cron-ci 2
2021-04-03 20:56:16 -05:00
Noah
84ca512b0a Update lock_api to crates.io 0.4.3 2021-04-03 20:55:39 -05:00
Noah
286c784bea Fix overflow in _random 2021-04-03 16:40:40 -05:00
Noah
31721c9d38 Try building benchmarks before running cargo criterion 2021-04-03 16:36:40 -05:00
Noah
68b219ce2f Add rustyline to redox patches 2021-04-03 16:34:55 -05:00
Noah
b47ed5923d Merge pull request #2536 from RustPython/fix-cron-benchmarks
Try running cron-ci benchmarks with cargo-criterion
2021-04-02 21:04:47 -05:00
Noah
0f4fac6a77 Try running cron-ci benchmarks with cargo-criterion 2021-04-02 21:02:29 -05:00
Noah
551ae5115f Merge pull request #2535 from RustPython/update-development
Update the DEVELOPMENT document
2021-04-02 15:11:15 -05:00
Noah
30c2e9e1ba Update the DEVELOPMENT document 2021-04-01 21:24:30 -05:00
Noah
80a5a8390a Merge pull request #2533 from nielsbauman/ci-benchmarks
Run benchmarks in CI
2021-04-01 21:07:32 -05:00
Noah
4343c45d8e Fix clippy for wasm 2021-04-01 21:06:52 -05:00
Niels Bauman
54b9f059df Run benchmarks in CI 2021-03-28 18:18:02 +02:00
Noah
7257785ca4 Merge pull request #2523 from RustPython/fix-cpy-microbenchmarks
Fix CPython microbenchmarks
2021-03-27 20:01:25 -05:00
Noah
605a353bc0 Merge pull request #2518 from RustPython/get-method-opt
Add optimized method lookup to avoid creating intermediate method objects
2021-03-27 15:05:04 -05:00
Jeong YunWon
843895c04d Merge pull request #2531 from RustPython/clippy-1.51
Fix clippy warnings for 1.51
2021-03-28 02:36:20 +09:00
Jeong YunWon
a3c5334b9e Merge pull request #2525 from RustPython/update-deps
Update dependencies
2021-03-28 02:33:32 +09:00
Noah
76f8ed5299 Fix clippy warnings for 1.51 2021-03-26 17:54:22 -05:00
Noah
56e340dbd4 Merge pull request #2530 from verhovsky/redirect-stdout-in-whats_left
remove noise from importing modules in whats_left
2021-03-26 17:34:47 -05:00
Boris Verkhovskiy
3592c74b5f remove noise from importing modules in whats_left
some modules will print something to stdout when imported
2021-03-26 15:51:58 -04:00
Noah
862c80f807 Fix closing fd for dir then calling closedir 2021-03-25 08:06:58 -05:00
Noah
1fff67db2c Correct float rounding algorithm 2021-03-25 08:06:58 -05:00
Noah
5063627aad Fix float.__round__ panic, use new bigint methods 2021-03-25 08:06:58 -05:00
Noah
7961ec9aaa Update parser snapshot tests with new BigInt Debug repr 2021-03-25 08:06:58 -05:00
Noah
25ecd7c38b Upgrade dependencies 2021-03-25 08:06:56 -05:00
Noah
9b0a86d037 Run cargo update 2021-03-25 08:06:14 -05:00
Noah
163cd19533 Merge pull request #2519 from TheOnlyError/2406-parse-multiple-lines-REPL
2406 parse multiple lines REPL
2021-03-25 08:04:07 -05:00