Shahar Naveh
f7ddcd2795
Break after annotation future found ( #6284 )
2025-11-19 01:00:41 +09:00
Jeong, YunWon
bab03bd75b
Merge pull request #6283 from youknowone/test-wasm32-without-js
...
Test wasm32 without js
2025-11-17 22:10:53 +09:00
Jeong YunWon
9134cca17b
Make CI to run rustpython-without-js test
2025-11-17 21:30:28 +09:00
eac8968f84
Add wasm runtime and fix the example code to actually run
...
Co-Authored-By: Valentyn Faychuk <valy@faychuk.com >
Co-Authored-By: Lee Dogeon <dev.moreal@gmail.com >
2025-11-17 21:30:28 +09:00
Jeong YunWon
5fb5db9617
relocate wasm test crate under example_projects
2025-11-17 18:58:07 +09:00
Shahar Naveh
916d3ba94b
Move wasm/lib -> crates/wasm ( #6280 )
2025-11-17 18:47:05 +09:00
Shahar Naveh
88eca9693a
Move stdlib -> crates/stdlib ( #6268 )
2025-11-16 23:25:45 +09:00
Jeong, YunWon
1a783fc9ec
Replace SSL backend to rustls ( #6244 )
2025-11-16 22:17:35 +09:00
Lee Dogeon
7c4c1eabf0
Fix wasm32-unknown-unknown target build ( #6278 )
2025-11-16 22:16:34 +09:00
Shahar Naveh
1568d2a7fb
Remove leftovers after vm crate move ( #6279 )
2025-11-16 19:15:32 +09:00
Shahar Naveh
93e4e42b53
Move compiler/source -> crates/compiler-source ( #6261 )
2025-11-16 19:14:35 +09:00
Jeong YunWon
6991a80e13
Add __main__.__cached__
2025-11-15 23:09:31 +09:00
Jeong YunWon
4f8ef16937
Re-organize vm.run_script inner functions
2025-11-15 23:09:31 +09:00
Shahar Naveh
8715ae76f1
Move derive -> crates/derive ( #6264 )
2025-11-15 22:54:25 +09:00
Shahar Naveh
8968aeafb9
Move vm -> crates/vm ( #6269 )
2025-11-15 21:51:33 +09:00
Shahar Naveh
041dd30602
Move compiler/src -> crates/compiler ( #6270 )
2025-11-15 19:50:19 +09:00
Shahar Naveh
9e60940f1b
Move vm/sre_engine -> crates/sre_engine ( #6265 )
2025-11-15 19:49:48 +09:00
Shahar Naveh
6479a2063c
move derive-impl -> crates/derive-impl ( #6263 )
2025-11-15 19:49:00 +09:00
Shahar Naveh
cc2e84b9fc
Move jit -> crates/jit ( #6262 )
2025-11-15 18:26:24 +09:00
Shahar Naveh
7f45ba4c9c
Move compiler/codegen -> crates/codegen ( #6260 )
2025-11-15 18:25:46 +09:00
Jeong, YunWon
477c9b32f0
Fix OSError.__str__ to not display 'None' for filename ( #6266 )
2025-11-15 12:29:20 +09:00
Shahar Naveh
2071fa2e69
Move compiler/literal -> crates/literal ( #6259 )
...
* Move `compiler/literal` -> `crates/compiler-literal`
* Use correct crate name
2025-11-15 07:27:04 +09:00
Shahar Naveh
bb54c5b0e6
Move compiler-core -> crates/compiler-core ( #6258 )
2025-11-15 07:21:29 +09:00
Shahar Naveh
3728879baf
Move wtf8 -> crates/wtf8 ( #6257 )
2025-11-15 07:21:04 +09:00
Shahar Naveh
4b7e49a17e
Move common -> crates/common ( #6256 )
2025-11-15 07:19:53 +09:00
Shahar Naveh
5eac229eae
Move pylib -> crates/pylib ( #6225 )
...
* Move `pylib
* clean `build.rs` a bit
2025-11-15 07:05:08 +09:00
Jeong, YunWon
609d99f1e3
implement sys.implementation cache_tag ( #6255 )
2025-11-14 23:55:17 +09:00
Shahar Naveh
db1adaa2c2
Move __doc__ crate to crates/doc ( #6234 )
...
* Add `__doc__` crate
* Base auto-generate ci
* Add dummy files
* Update docs
* Set codegen-units to 1 for doc db
* Mark `*.inc.rs` as auto generated
* Disable doctest
* Reset docs
2025-11-14 23:47:51 +09:00
Jiseok CHOI
9ce85862ce
Add BaseException.add_note() and __notes__ attribute support ( #6252 )
2025-11-14 10:31:47 +09:00
dependabot[bot]
4562930233
Bump streetsidesoftware/cspell-action from 7 to 8 ( #6246 )
...
Bumps [streetsidesoftware/cspell-action](https://github.com/streetsidesoftware/cspell-action ) from 7 to 8.
- [Release notes](https://github.com/streetsidesoftware/cspell-action/releases )
- [Changelog](https://github.com/streetsidesoftware/cspell-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/streetsidesoftware/cspell-action/compare/v7...v8 )
---
updated-dependencies:
- dependency-name: streetsidesoftware/cspell-action
dependency-version: '8'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-12 08:24:16 +09:00
Yash Suthar
0f8c0bc8a8
remove old auto-formte implimentaion ( #6251 )
...
Signed-off-by: Yash Suthar <yashsuthar983@gmail.com >
2025-11-11 07:35:08 +09:00
Yash Suthar and fanninpm
2d4617236e
Update CI auto-formate ( #6237 )
...
---------
Signed-off-by: Yash Suthar <yashsuthar983@gmail.com >
Co-authored-by: fanninpm <luxverdans@sbcglobal.net >
2025-11-10 23:46:14 +09:00
Jeong, YunWon
c9ba9560b5
new_buffer_error ( #6243 )
2025-11-10 20:58:08 +09:00
Shahar Naveh
9792001703
Add newtype of CodeUnits ( #6241 )
2025-11-10-main-55
2025-11-10 09:48:25 +09:00
Jeong, YunWon
d8a4a09ec0
Fix #[pyclass(base=...)] notation ( #6242 )
2025-11-10 09:47:57 +09:00
fanninpm
ed9a61d956
Add builtin_items updater to whats_left job ( #6238 )
...
Corresponds to RustPython/rustpython.github.io#81 .
2025-11-09 18:00:59 +09:00
Yash Suthar
5cad66cebf
Revert "Update CI auto-format ( #6233 )" ( #6236 )
...
This reverts commit 377151a57f .
2025-11-05 03:14:27 +09:00
Yash Suthar
377151a57f
Update CI auto-format ( #6233 )
...
---------
Signed-off-by: Yash Suthar <yashsuthar983@gmail.com >
2025-11-04 17:37:22 +09:00
Shahar Naveh
a7e8ac684b
Remove user defined docstrings ( #6232 )
2025-11-03-main-54
2025-11-02 00:01:02 +09:00
Jiseok CHOI
e096ce7bc7
Implement property.__name__ attribute ( #6230 )
...
* Implement property.__name__ attribute
Add getter and setter for the __name__ attribute on property objects.
The getter returns the explicitly set name if available, otherwise
falls back to the getter function's __name__. Raises AttributeError
if no name is available, matching CPython 3.13 behavior.
The implementation handles edge cases:
- Returns None when explicitly set to None
- Propagates non-AttributeError exceptions from getter's __getattr__
- Raises property-specific AttributeError when getter lacks __name__
This fix enables test_property_name in test_property.py to pass.
* Refactor to use get_property_name in __name__ implementation
Consolidate duplicate logic by making name_getter() use the existing
get_property_name() helper method. This eliminates code duplication
and improves maintainability.
Changes:
- Update get_property_name() to return PyResult<Option<PyObjectRef>>
to properly handle and propagate non-AttributeError exceptions
- Simplify name_getter() to delegate to get_property_name()
- Update format_property_error() to handle the new return type
This addresses review feedback about the relationship between
get_property_name() and __name__ implementation.
* style comment
2025-11-01 18:30:03 +09:00
Jiseok CHOI
9e7d291b63
Add callable validation to codecs.register_error ( #6229 )
...
Validate that the handler argument passed to codecs.register_error
is callable, raising TypeError with message 'handler must be callable'
if it is not. This matches CPython behavior.
This fix enables test_badregistercall in test_codeccallbacks.py to pass.
2025-10-31 00:08:04 +09:00
Jeong, YunWon
614028f9a8
more ssl impl ( #6228 )
2025-10-29 23:01:04 +09:00
Yash Suthar
8f048dd9fd
Implement minimal builtins.anext() ( #6226 )
...
* Implement minimal builtins.anext()
* Removed expectedFailure for builtins.anext() tests
* Removed expectedFailure from test_contextlib_async tests fixed by anext
---------
Signed-off-by: Yash Suthar <yashsuthar983@gmail.com >
2025-10-29 19:09:37 +09:00
Jeong, YunWon
fda9ceea54
Update ssl.py from CPython 3.13.9 ( #6217 )
...
* update ssl.py from CPython 3.13.9
* test_ssl
* mark failing tests
* remove test/*.pem
* fix certdata path
* unmark fixed tests
2025-10-28 13:19:12 +09:00
Jeong, YunWon
2acc3be6cf
More SSL impl ( #6224 )
...
* fix ipv6 formattig
* consts
* fspath
* fix set_ecdh_curve
* minimum/maximum version
* Add SSL_CTX_security_level
2025-10-28 12:00:44 +09:00
Yash Suthar
b6e8a875ac
Resolve number slots via MRO in PyNumber and operator, ensure inherit… ( #6222 )
...
* Resolve number slots via MRO in PyNumber and operator, ensure inherited and dynamically added methods are found.
Use class().mro_find_map() to mimic the same behaviour as CPython.
Signed-off-by: Yash Suthar <yashsuthar983@gmail.com >
2025-10-28 12:00:22 +09:00
Christopher Gambrell and Jeong, YunWon
6b25fe5c95
5539 - CTRL+Z then Enter will now close shell on Windows. ( #6223 )
...
* CTRL+Z then Enter will now close shell on Windows.
* Additional comment.
* Use EOF const
* Add cfg(windows) for EOF_CHAR
---------
Co-authored-by: Jeong, YunWon <69878+youknowone@users.noreply.github.com >
2025-10-28 11:02:24 +09:00
dependabot[bot]
0e15e771c3
Bump actions/upload-artifact from 4 to 5 ( #6221 )
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 4 to 5.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-28 09:37:37 +09:00
dependabot[bot]
d63e44aa3a
Bump actions/download-artifact from 5 to 6 ( #6220 )
...
Bumps [actions/download-artifact](https://github.com/actions/download-artifact ) from 5 to 6.
- [Release notes](https://github.com/actions/download-artifact/releases )
- [Commits](https://github.com/actions/download-artifact/compare/v5...v6 )
---
updated-dependencies:
- dependency-name: actions/download-artifact
dependency-version: '6'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-28 09:37:14 +09:00
Jeong, YunWon
9a2792a44b
PySSLCertificate ( #6219 )
2025-10-27 22:31:59 +09:00