Noa
5c22697344
Implement fsencode/fsdecode for FsPath
2025-03-25 19:05:12 -05:00
Noa
cc6f3d3051
Make TextIOWrapper wtf8-compatible
2025-03-25 19:05:12 -05:00
Noa
b36b32bfe8
Make re wtf8-compatible
2025-03-25 19:05:12 -05:00
Noa
3945d3b2fe
Make format wtf8-compatible
2025-03-25 19:05:12 -05:00
Noa
ba1b5811ee
Update encoding to use wtf8
2025-03-25 19:05:11 -05:00
Noa
7f4582bb23
Make cformat wtf8-compatible
2025-03-25 19:05:11 -05:00
Noa
cace112b1a
Allow surrogates in str
2025-03-25 19:05:11 -05:00
Noa
e3a1031081
Refactor cformat in prep for wtf8
2025-03-26 08:36:16 +09:00
Jeong, YunWon
2a41072b44
Windows installer via cargo-packager ( #5549 )
...
* cargo-packager config
Signed-off-by: Ashwin Naren <arihant2math@gmail.com >
* add templates
* update release.yml
* update wix installer config
---------
Signed-off-by: Ashwin Naren <arihant2math@gmail.com >
2025-03-25 10:27:45 +09:00
Ashwin Naren
01d470ff77
_ctypes pt. 4 ( #5582 )
...
* correct error type when symbol is not found
* restype get/set
* base of PyCSimple for PyCArray
* PyCSimple::to_arg
* par down ctypes
* nt._LOAD_LIBRARY_SEARCH_DEFAULT_DIRS
* arguments for ctypes function
* force failure to import ctypes
2025-03-25 09:09:29 +09: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
Jeong, YunWon
eaf4cdf5e1
Update to ruff_python_parser 0.11 ( #5615 )
...
* Update to ruff_python_parser 0.11
* Try fix windows long paths error
2025-03-23 08:28:29 +09:00
Noa
948368fdb4
Try fix windows long paths error
2025-03-20 11:29:49 -05:00
Myeongseon Choi
0717d5a331
remove wrong cpython_only tag
2025-03-20 14:35:04 +09:00
Myeongseon Choi
a9bfaa96c5
remove unnecessary cpython_only
2025-03-20 14:35:04 +09:00
Myeongseon Choi
70a5774737
Update CPYTHON_SPECIFIC_MODS to include '_testlimitedcapi'
2025-03-20 14:35:04 +09:00
Myeongseon Choi
2d3b125d51
Add expectedFailure and skip decorators for RUSTPYTHON tests in test_class.py
2025-03-20 14:35:04 +09:00
Myeongseon Choi
4081c08b5a
add cpython_only tag for tests required _testlimitedcapi
2025-03-20 14:35:04 +09:00
Myeongseon Choi
70c36a48a8
Copy test_class.py from cpython v3.13.2
2025-03-20 14:35:04 +09:00
Ashwin Naren
37bd49cf38
add _pylong.py at 3.13.2
2025-03-20 14:33:54 +09:00
Ashwin Naren
081dc4e8ca
removed cgib ( #5609 )
2025-03-20 14:28:53 +09:00
Ashwin Naren
a4466adf8b
add _aix_support
2025-03-20 14:28:26 +09:00
Noa
bfe72689fc
Remove -merge from Cargo.lock gitattributes
2025-03-20 14:28:03 +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
Jeong, YunWon
bd94d8d50c
Remove uu.py and test_uu.py ( #5607 )
...
* Remove uu.py and test_uu.py
* patch email.message
2025-03-17-main-21
2025-03-14 11:42:26 +09:00
Ashwin Naren
7fab64ed9c
Revert "Update statistics to 3.13.2 ( #5592 )" ( #5606 )
...
This reverts commit ff970b0e1c .
2025-03-14 11:41:14 +09:00
Ashwin Naren
8e22c399df
partially fix sys.getwindowsversion() ( #5595 )
2025-03-14 11:38:35 +09:00
Ashwin Naren
7546ea91a9
patch email.message
2025-03-13 10:16:51 -07:00
Ashwin Naren
8da66978bf
Remove uu.py and test_uu.py
2025-03-13 09:49:10 -07:00
Ashwin Naren
8484bfa2e0
Remove cgi module ( #5597 )
...
* no cgi
* mark failing test
2025-03-12 09:47:34 +09:00
Ashwin Naren
ff970b0e1c
Update statistics to 3.13.2 ( #5592 )
...
* statistics to 3.13.2
* set flaky test
2025-03-11 22:37:26 +09:00
Jeong, YunWon
8be7e4327d
Merge pull request #5596 from arihant2math/osx-support-313
...
_osx_support update to 3.13.2
2025-03-11 15:58:19 +09:00
Jeong, YunWon
82eeb237dc
Merge pull request #5598 from arihant2math/fix-whats-left-again
...
Fixed whats left
2025-03-11 15:57:57 +09:00
Ashwin Naren
cbbadf562f
Fixed whats left
2025-03-10 23:27:05 -07:00
Ashwin Naren
4308321f39
_osx_support update to 3.13
2025-03-10 23:13:32 -07:00
Jeong, YunWon
985eebf9b0
Merge pull request #5589 from youknowone/pyattr-const
...
Replace pyattr(once) to constant
2025-03-11 10:12:50 +09:00
Ashwin Naren
bf28152a32
add os support modules
2025-03-10-main-20
2025-03-10 11:43:53 +09:00
Ashwin Naren
bae0ad3aeb
Fix extra newline in module.csv generation in cron ci ( #5591 )
2025-03-10 11:43:26 +09:00
Jeong YunWon
87fae150da
Replace pyattr(once) to constant
2025-03-09 12:39:12 +09:00
Ashwin Naren
97853bf0f1
Fix module.csv generation in cron ci ( #5586 )
2025-03-06 13:20:04 +09:00
Noa
cc0a1ce9e2
Update webpack ( #5585 )
...
* Update webpack
* Build demo before notebook
* Use with instead of env for actions-gh-pages
2025-03-05 16:15:14 -06:00
58ebf04bac
Add JIT compilation support for integer multiplication, division, and exponents ( #5561 )
...
* Initial commit for power function
* Float power jit developed
* Addded support for Floats and Ints
* Integration Testing for JITPower implementation.
* 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
---------
Co-authored-by: Nicholas Paulick <paulicknicholas@gmail.com >
Co-authored-by: Nick <nick@Samanthas-MBP.wi.rr.com >
Co-authored-by: JoeLoparco <loparcojoseph@gmail.com >
Co-authored-by: Nathan Rusch <nathan.rusch@icloud.com >
Co-authored-by: dohear <daniel.ohear@marquette.edu >
2025-03-05 14:41:45 -06:00
Ashwin Naren
7fea1e1b4a
fix what is left data upload to website and trigger cron-ci on workflow update
2025-03-05 13:50:52 -06:00
Ashwin Naren
d2bf31724f
fix clippy
2025-03-05 13:49:37 -06:00
Ashwin Naren
b4929d258d
formatting
2025-03-05 13:49:37 -06:00
Ashwin Naren
ddf2e591c6
resolve comments
2025-03-05 13:49:37 -06:00