Commit graph

17 commits

Author SHA1 Message Date
Ankush Menat
004990e53e
perf: Make frappe._dict great again (#28824)
* perf: Restore dict's flat overrides

Using `super()` is unnecessary cost. This class is used A LOT. Ref: https://github.com/frappe/frappe/pull/16449/

Please consider performance while adding types, it's almost always possible to achieve good typing without this.

Also `frappe._dict` is almost always used as `dict[Any, Any]` or
`dict[str, Any]`, type annotations are useless here.

* ci: ugh wait for processes to exit
2024-12-18 16:36:31 +05:30
Akhil Narang
fadbddff2e
refactor(ci): don't fetch actions from develop
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-12-16 16:10:46 +05:30
David Arnold
6e02bfedcd
fix: add backward compatibility for 5 item filter (#28678) 2024-12-05 09:10:45 +00:00
Akhil Narang
a390992408
chore: python3.13 support (#28624)
* chore: python3.13 support

Signed-off-by: Akhil Narang <me@akhilnarang.dev>

* chore: bump pydantic

```
  error: the configured Python interpreter version (3.13) is newer than PyO3's maximum supported version (3.12)
        = help: please check if an updated version of PyO3 is available. Current version: 0.21.2
        = help: set PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1 to suppress this check and build anyway using the stable ABI
```

Signed-off-by: Akhil Narang <me@akhilnarang.dev>

* chore: bump uuid-utils

https://katb.in/ahaqabugefo

Signed-off-by: Akhil Narang <me@akhilnarang.dev>

* chore: bump RestrictedPython

7.4 has support for py3.13
https://restrictedpython.readthedocs.io/en/latest/changes.html#id1

Signed-off-by: Akhil Narang <me@akhilnarang.dev>

* fix(deprecation_dumpster): import functools uncondtionally

Used here: 60f0b1d5c7/frappe/deprecation_dumpster.py (L177C10-L177C19)

Signed-off-by: Akhil Narang <me@akhilnarang.dev>

* chore(docref): improve error message

* fix: error on unability to hash; TypeError expected

* fix: migrate from 3.10 onwards

---------

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
Co-authored-by: David <dgx.arnold@gmail.com>
2024-12-04 15:35:06 +00:00
David Arnold
7748910ddc
ci: chore revert using forked bench (#28584)
* ci: chore revert using branched bench

merge after is released: https://github.com/frappe/bench/pull/1600

* ci: name downstream job
2024-11-28 09:32:12 +01:00
David Arnold
9ed08706a2
ci: make db-migration arifact part of the workflow inputs (#28604)
* ci: make db-migration arifact part of the workflow inputs

* ci: chore cleanup

* ci: introduce
2024-11-27 21:18:20 +01:00
David Arnold
a4014ab1c4
fix(json-serialization): prioritize explicit __json__ before iterable (#28597) 2024-11-27 13:11:53 +00:00
David Arnold
92fb8e5c04
ci: fix migration base workflow when used downstream git ref (#28589)
* ci: fix migration base workflow when used downstream git ref

* ci: temporarily redirect
2024-11-27 00:28:15 +01:00
David Arnold
306c935fba
ci: fix migration base workflow when used downstream (#28588) 2024-11-26 22:28:55 +00:00
David Arnold
be4a561c92
ci: add a flexible migration pre-step to perpare the environment (#28587) 2024-11-26 21:02:46 +00:00
David Arnold
894c7d871c
ci: prepare shared action for concrete downstream use (#28572)
* ci: cleanup setup action

* ci: make migration & setup downstream-ready

* ci: replace obscure bench remove-app with an equivalent rm -rf
2024-11-26 17:11:08 +00:00
David Arnold
75ed8a8503
ci: small speed up (#28569)
* ci: small speedup

* chore: small fixes
2024-11-25 19:10:34 +01:00
David Arnold
08ef9df94c
ci: fixup bis (#28566) (#28568)
* ci: ensure new success checks fail when they should
2024-11-25 17:43:50 +01:00
David Arnold
4c5ecfa9e2
ci: fixup (#28566)
* ci: fixup

* ci: temporarily redirect to fixed base workflows

the purpose of this is to pass checks and get this fixed base workflows into develop asap
2024-11-25 14:34:05 +00:00
David Arnold
9cab72843f
ci: add unified success actions for checks (#28563) [follow up] (#28564) 2024-11-25 14:47:21 +01:00
David Arnold
7e6380ddc8
ci: add unified success actions for checks (#28563) 2024-11-25 12:48:36 +00:00
David Arnold
120566c0a0
chore: organize gh workflow names (#28562) 2024-11-25 13:10:02 +01:00
Renamed from .github/workflows/patch-base.yml (Browse further)