Noa
b36b32bfe8
Make re wtf8-compatible
2025-03-25 19:05:12 -05:00
Noa
cace112b1a
Allow surrogates in str
2025-03-25 19:05:11 -05:00
Ashwin Naren
9779de98b8
_tkinter pt. 1 ( #5583 )
...
* Add _tkinter module and gate
* add tkinter module
* add tcl_error
* fix tk setup and add demo
* fix TK_VERSION
* create and TkApp
2025-03-23 12:25:52 +09:00
Noa
c585678ec9
Merge format and literal back into this repo (and update malachite) ( #5618 )
...
* Merge format and literal back into this repo
* Update format and literal to work
* Update malachite
* Remove RustPython/Parser from Cargo.toml
2025-03-23 09:27:13 +09:00
Noa
950a8d5694
Update to ruff_python_parser 0.11
2025-03-19 22:45:57 -05:00
a6b4ef7f5d
Replace Python parser with ruff parser ( #5494 )
...
* stage1
* compiler pass build
* introduce rustpython-compiler-source
* stage2
* fixup
* pass compile
* Fix hello world compiler test
* Fix code generation for if-elif-else statement
* Fix code generation for lambda expression
* Fix code generation for integers
* Fix code generation for fstrings
* Fix code generation for if statement
* Fix code generation for if statement
* Fix code generation for if statement
* Fix code generation for fstring
* Fix code generation for class definition
* Replace feature flags
* Initialize frozen core modules
* Allow __future__ import after module doc comment
* Disable ast module
* Commit remaining fixes for compile errors in examples
* Fix some warnings
* Update ast stdlib module
* Update ast stdlib module
* Update ast stdlib module
* Update ast stdlib module
* Update ast stdlib module
* Split ast stdlib module into files
* Fix codegen for positional arguments with defaults
* Update ast stdlib module
* Update ast stdlib module
* Extract string and constant handling from expression.rs
* Always add required fields to AST nodes
* Compile doc strings correctly again
* Enable "ast" Cargo feature by default
* Refactor compilation of big integer literal
* Update ast stdlib module
* Update ast stdlib module
* Update ast stdlib module
* Reset barebones example
* Fix some left-over warnings
* Undo accidential change
* Adapt shell to ruff parser
* Pin parser to v0.4.10
* fix clippy
* Add TODO about interactive mode
* Fix compilation of complex number expression
* Remove moved code
* Update test case to ruff v0.4.10
* Apply suggestion
Co-authored-by: Jeong, YunWon <69878+youknowone@users.noreply.github.com >
* Apply suggestion
Co-authored-by: Jeong, YunWon <69878+youknowone@users.noreply.github.com >
* Fix compilation of fstring expression
* Fix compilation of fstring expression
* Fix wasm compile errors
* Attach correct source locations to ast objects
* Fix some more wasm compile errors
* Consider compile mode and enable AST stdlib module again
* Fix incorrect AST source location end column
* Fix compile error if "compiler" feature is not enabled
* Fix regrtests
* Fix some test_ast tests
* Add source range to type ignore
* Fix incompatibility with Rust 2024 edition
* Fix todos by implementing missing ast conversions and deleting unused code
* Appease clippy
* Fix remaining ast tests
* Fix remaining ast tests
* Mark/fix remaining tests
* Fix more
* Hacky windows fix
---------
Co-authored-by: Kangzhi Shi <shikangzhi@gmail.com >
Co-authored-by: Jeong YunWon <jeong@youknowone.org >
Co-authored-by: Jeong, YunWon <69878+youknowone@users.noreply.github.com >
Co-authored-by: Noa <coolreader18@gmail.com >
2025-03-19 21:06:03 -05:00
+1
45c0fa0e77
Floating Point Power and While Loop JIT ( #5614 )
...
* Initial commit for power function
* Float power jit developed
* Addded support for Floats and Ints
* Integration Testing for JITPower implementation.
* Update instructions.rs
* Update int_tests.rs
* Update float_tests.rs
* Updated cranelift and power function to use magic bs
* Updated the compile_fpow accuracy
* updating while loop test
* Update instructions.rs
cranelift more like painlift
* Update instructions.rs
* Update instructions.rs
* initial commit for making stable PR ready features
* fixed final edge case for compile_ipow
* fixed final edge case for compile_ipow
* commenting out compile_ipow
* fixed spelling errors
* removed unused tests
* forgot to run clippy
* Cleaned the branch
* While loop implementation for Cranelift 0.116.1
* Floating Point
* Removed testing print statement
* Resolved some formatting
* Fixed cargo fmt warning
* Fixed int div and int exp issues
* Fixed formatting
---------
Co-authored-by: Nick <nick@Samanthas-MBP.wi.rr.com >
Co-authored-by: JoeLoparco <loparcojoseph@gmail.com >
Co-authored-by: Daniel O'Hear <149127239+dohear@users.noreply.github.com >
Co-authored-by: Joseph Loparco <149088810+JoeLoparco@users.noreply.github.com >
Co-authored-by: Nick <nick@pcp090057pcs.mu.edu >
Co-authored-by: dohear <daniel.ohear@marquette.edu >
Co-authored-by: Nathan Rusch <nathan.rusch@icloud.com >
Co-authored-by: Nick <nick@pcp093574pcs.mu.edu >
Co-authored-by: Joseph Loparco <--global loparcoJoseph@gmail.com >
Co-authored-by: Nick <nick@Samanthas-MacBook-Pro.local >
2025-03-19 13:50:42 -05:00
Noa
a596568151
Use lexopt for argument parsing ( #5602 )
2025-03-19 12:28:58 -05:00
Ashwin Naren
33940726a8
upgrade to windows-sys 0.59.0
2025-03-05 13:49:37 -06:00
Ashwin Naren
3ae1160868
Remove winapi dependency
2025-03-05 13:49:37 -06:00
Ashwin Naren
40e3f49ab7
_ctypes pt. 3 ( #5530 )
...
* Initial CFuncPtr implementation
* function calling via libffi
* working no-arg function call
Signed-off-by: Ashwin Naren <arihant2math@gmail.com >
2025-03-03 15:53:04 +09:00
Noa
4468dcbe34
Switch to libz-rs-sys for zlib implementation
2025-02-25 23:19:19 -06:00
Noa
52208b3c90
Update to syn2 ( #5556 )
2025-02-25 11:54:13 +09:00
Ashwin Naren
d7a72b5755
add constants and implement functions
...
Signed-off-by: Ashwin Naren <arihant2math@gmail.com >
2025-02-24 16:16:34 +09:00
Noa
331a3c108f
Switch to criterion in sre_engine benchmarks
2025-02-23 09:44:57 +09:00
Noa
a9331bb34d
Fix warnings for rust 1.85
2025-02-20 14:58:59 -06:00
Ashwin Naren
e2b0fe4266
_ctypes pt. 2 ( #5524 )
...
* add __version__
* add more types/constants
* shared library and ExternalLibs implementation
* FreeLibrary for windows
* fixed PyCSimple
* LoadLibrary and FreeLibrary for non-windows
* fault-tolerant float equality
Signed-off-by: Ashwin Naren <arihant2math@gmail.com >
2025-02-20 10:50:10 +09:00
Noa
fa2acd7cde
Update rand to 0.9
2025-02-18 17:07:26 +09:00
Ashwin Naren
630c1ff8d1
simple part of the bump
...
Signed-off-by: Ashwin Naren <arihant2math@gmail.com >
2025-02-17 14:15:57 -06:00
Ashwin Naren
7e1568a1ff
Revert "windows-rs upgrade to 0.59"
...
This reverts commit 547530724e .
2025-02-17 14:15:57 -06:00
Ashwin Naren
6788010f7d
windows-rs upgrade to 0.59
2025-02-17 14:15:57 -06:00
Ashwin Naren
e8a3406624
itertools upgrade
2025-02-16 10:20:56 +09:00
Ashwin Naren
fde87a340c
Initial _ctypes implementation ( #5519 )
...
* initial _ctypes implementation with _CData, get_errno, and set_errno
Signed-off-by: Ashwin Naren <arihant2math@gmail.com >
2025-02-15 16:03:58 +09:00
Ashwin Naren
a46ce8ec3a
Mark version 3.13.0 ( #5495 )
...
* bump to 3.13.1
* fix some tests
* strip left whitespace from doc
* remove specific difflib test that was causing issues
* fix test_enum
Signed-off-by: Ashwin Naren <arihant2math@gmail.com >
2025-02-13 14:11:01 +09:00
Ashwin Naren
6e35e20e49
dependency bump
...
Signed-off-by: Ashwin Naren <arihant2math@gmail.com >
2025-02-12 18:16:45 +09:00
Noa
2d5e4d89b0
Update openssl to fix possible vulnerability
2025-02-12 15:57:41 +09:00
Ashwin Naren and Jeong YunWon
3de1c2ab56
Update malachite-q and base to 0.4.22 ( #5499 )
...
* update malachite-q and base to 0.4.22
* Update malachite-bigint from parser
---------
Co-authored-by: Jeong YunWon <jeong@youknowone.org >
2025-02-10 15:55:08 +09:00
Jeong YunWon
29d014a0e1
Pin malachite versions to avoid API incompatibility
2025-02-03 11:57:30 +09:00
Jeong YunWon
a500178b3c
update parser to fix match crash
2025-01-22 13:41:01 +09:00
Noa
b7db23bbae
Fix warnings for Rust 1.84
2025-01-11 18:48:27 +09:00
Ankit Goel
fef1e31634
Bump rust-caseless to 0.2.2
2024-12-31 12:26:29 +00:00
Ankit Goel
8d187fd275
Bump result-like to 0.5.0
2024-12-28 11:38:00 +09:00
Noa
e4be882994
Miscellaneous cli-related parity fixes
2024-12-03 16:28:32 -06:00
dependabot[bot]
edb7abde5a
Bump pyo3 from 0.22.3 to 0.22.4
...
Bumps [pyo3](https://github.com/pyo3/pyo3 ) from 0.22.3 to 0.22.4.
- [Release notes](https://github.com/pyo3/pyo3/releases )
- [Changelog](https://github.com/PyO3/pyo3/blob/main/CHANGELOG.md )
- [Commits](https://github.com/pyo3/pyo3/compare/v0.22.3...v0.22.4 )
---
updated-dependencies:
- dependency-name: pyo3
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-10-16 05:37:46 +09:00
Noa
37dc28a69d
Update deps ( #5417 )
...
* Upgrade nix
* Update deps
* Upgrade pyo3, winreg
* Fix errors from upgrading
2024-09-27 13:11:00 +09:00
Ankit Goel
d1f95f04a7
Remove dependency on proc-macro-crate
...
This dependency is only useful when modifying the crate name of
`num_enum` crate. RustPython doesn't do that so it's unnecessary.
2024-09-23 16:54:21 +01:00
Ankit Goel
0dacf8a326
Remove dependency on uuid-macro-internal
...
`uuid-macro-internal` is only relevant when using `uuid!` macro to parse
uuids at compile time. RustPython doesn't do that so it's unnecessary.
2024-09-23 15:07:57 +09:00
Noa
a8964f4108
Add select.epoll
2024-09-20 11:46:01 +09:00
Jeong YunWon
8673169ee7
0.4.0
2024-08-07 08:38:21 +09:00
Dan Näsman
2335ca0f72
Add proper underscore handling to float and complex types. ( #5356 )
2024-07-28 12:11:34 +09:00
Jeong YunWon
e42c1a33b5
upgrade unicode_names2
2024-07-28 11:43:00 +09:00
dependabot[bot]
f1f05303db
Bump openssl from 0.10.62 to 0.10.66
...
Bumps [openssl](https://github.com/sfackler/rust-openssl ) from 0.10.62 to 0.10.66.
- [Release notes](https://github.com/sfackler/rust-openssl/releases )
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.62...openssl-v0.10.66 )
---
updated-dependencies:
- dependency-name: openssl
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-23 11:14:45 +09:00
James Clarke
08c9a4d86b
Added lints and deny.toml
2024-06-25 03:59:40 +01:00
Noa
3e98e5e86c
Bump libsqlite3-sys
2024-05-21 09:05:49 +09:00
Jonathan Rotter
07fdcb6160
Fix for test future.py test annotations ( #5319 )
...
* enable test fixed in parser
* update parser dependency
2024-05-13 08:40:14 +09:00
Jeong YunWon
e5bf72e897
contextvars
2024-05-07 22:43:21 +09:00
Jeong YunWon
3370f0f23d
Update wasm-bindgen
2024-05-04 02:00:18 +09:00
Jeong YunWon
f62114c7eb
zlib-ng as default
2024-04-30 23:18:14 +09:00
Noa and Jeong YunWon
84099514e6
Implement socket.socket.sendmsg ( #5205 )
...
* Implement socket.socket.sendmsg
* debugger-friendly newlines
* Fix control_buf error on macOS
---------
Co-authored-by: Jeong YunWon <jeong@youknowone.org >
2024-04-22 11:21:10 +09:00
Jeong, YunWon
3286e683e6
win32_xstat ( #5247 )
...
* win32_xstat
* vm::windows
* Add file_id
2024-04-21 22:02:09 +09:00