50 Commits

Author SHA1 Message Date
Noa
6daee1b00e Warn on elided_lifetimes_in_paths 2025-03-01 13:49:33 +09:00
Ashwin Naren
b870b0e1b5 2024 edition formatting
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
2025-02-26 11:48:22 -08:00
Noa
8c5602f2fb Fix a bunch of zlib tests 2025-02-26 00:10:24 -06:00
Noa
864e8598f8 Enable rust2024-incompatible pat and keyword-ident lints 2025-02-25 00:32:02 -06:00
Noa
52208b3c90 Update to syn2 (#5556) 2025-02-25 11:54:13 +09:00
Ashwin Naren
d698b28ce5 Ensure pymethod cannot be both magic and named simultaneously + macro documentation (#5538)
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
2025-02-22 17:22:31 +09:00
Ashwin Naren
6e35e20e49 dependency bump
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
2025-02-12 18:16:45 +09:00
Noa
b7db23bbae Fix warnings for Rust 1.84 2025-01-11 18:48:27 +09:00
Noa
fbd0c7a99e Implement IncrementalNewlineDecoder in rust 2024-11-14 23:06:53 -06:00
Jeong YunWon
2919df1df5 Mark rust-version 1.78 2024-08-08 23:20:17 +09:00
Jeong YunWon
8673169ee7 0.4.0 2024-08-07 08:38:21 +09:00
James Clarke
08c9a4d86b Added lints and deny.toml 2024-06-25 03:59:40 +01:00
Jeong YunWon
64cff172a1 pymethod(raw) 2024-06-22 00:40:13 +09:00
Jeong YunWon
52aad1ec08 DefaultConstructor impls Constructor; Unconstructible is not anymore 2024-05-06 00:54:39 +09:00
Lee Dogeon
4d5cf249a0 Allow update __class__ for mutable types or module subclasses (#5225)
* Allow update `__class__` for module subclasses

* Set `IMMUTABLETYPE` flag for static classes

* Unmark fixed tests
2024-04-14 13:03:48 +09:00
Jeong YunWon
8816cd41d5 0.3.1 2024-04-10 17:39:57 +09:00
Jeong YunWon
a0b6c36928 Update indexmap 2024-04-09 11:17:25 +09:00
Noa
87cf891e50 Make PyMethodDef construction const (#5117)
* Make PyMethodDef construction const

* Remove iter_chain![]

Obsolete since arrays now impl IntoIterator
2023-11-15 12:52:47 +09:00
Jeong YunWon
1208416b92 0.3.0 release 2023-09-06 18:49:55 +09:00
Jeong, YunWon
d4d362a9ca Update to Rust 1.72.0 2023-08-27 00:38:10 +09:00
Jeong, YunWon
c28cb3941f prettier *.js + fix miri build (#5028)
* prettier *.js

* bump up proc-macro2
2023-07-19 23:43:26 +09:00
Micha Reiser
7a6000d181 Use format and cformat from rustpython-literal (#4968)
* Use `format` and `cformat` from `rustpython-literal`

* Remove unused dependencies, use `rustpython-format`
2023-05-13 02:58:02 +09:00
Jeong YunWon
dc569e9921 Refactoring 2023-05-10 19:35:27 +09:00
Jeong YunWon
f2cfa5f0a7 Split parser to new repository
6b60f85cc4
2023-05-06 14:38:11 +09:00
Jeong YunWon
98eef0804e Method overhaul with PyMethodDef 2023-04-30 17:33:23 +09:00
Kim Seungha
4a099ab6bc Make builtin method type same as that of builtin function 2023-04-30 13:35:43 +09:00
Jeong YunWon
317f432a20 PyModuleDef and #[pymodule(with(...))] 2023-04-25 04:08:11 +09:00
Jeong, YunWon
ce13fc5f03 Merge pull request #4898 from youknowone/pymodule-expose
module objects' type as PyModule
2023-04-25 04:00:52 +09:00
Jeong YunWon
f256934f93 Merge define_exception into pyexception 2023-04-24 02:06:13 +09:00
discord9
94bdb6b97a feature: PyTraverse derive macro for traverse object's childrens(like CPython's tp_traverse) (#4872) 2023-04-23 21:43:49 +09:00
Jeong YunWon
19224505e8 module objects' type as PyModule 2023-04-20 20:48:57 +09:00
Jeong YunWon
18044abbb6 use interned str for builtin function names 2023-04-06 01:23:36 +09:00
Kangzhi Shi
c5ce44eaaa remove slots.as_number replaced with slots.number 2023-03-21 22:48:56 +02:00
Kangzhi Shi
fb7393e4bb impl create PyNumberSlots from PyNumberMethods 2023-03-21 22:17:14 +02:00
Kangzhi Shi
0a8c642e93 change as_number to static immutable 2023-03-21 21:51:45 +02:00
Jeong YunWon
7b99df6c48 PyPayload::class takes ctx instead of vm 2023-03-20 21:03:40 +09:00
Jeong YunWon
dfb37d9a44 setattro uses Py<PyStr> 2023-03-20 19:00:02 +09:00
Jeong YunWon
cdfc67661e Constructor/Initializer for BaseException 2023-03-19 10:26:25 +09:00
Jeong YunWon
0f24d66234 pyclass macro to recognize Py/PyRef pattern 2023-03-19 04:57:06 +09:00
Jeong YunWon
310a83427c cspell derive 2023-03-16 22:42:03 +09:00
Jeong YunWon
87728c4452 Merge pull request #4608 from coolreader18/bag-deser
Rework frozen modules and directly deserialize to CodeObject<Literal>
2023-03-10 05:19:23 +09:00
Jeong YunWon
05317f1664 temporary fill up missing number protocols 2023-03-09 23:43:15 +09:00
seungha-kim
223fe14d85 Update to pass test for unhashable collections (#4640) 2023-03-07 23:45:33 +09:00
Noa
456bc80697 Rework frozen modules and directly deserialize to CodeObject<Literal> 2023-03-06 13:45:33 -06:00
Jeong YunWon
2a61e1cace Add extend_slot support for protocol traits 2023-03-06 21:02:44 +09:00
Jeong YunWon
42a22c280d use workspace dependencies 2023-02-06 15:30:38 +09:00
Noa
c7faae9b22 Bump all crate versions to 0.2.0 2023-01-11 00:14:28 -06:00
Jeong YunWon
1848c45302 first cspell dict 2023-01-09 19:57:23 +09:00
Jeong YunWon
8d36fe68e7 Fix nightly clippy warnings 2023-01-07 21:07:10 +09:00
Noa
185dd4a795 Split derive-impl and derive 2022-12-19 18:48:17 -06:00