build(deps): bump to python>=3.14, nodejs>=24

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
Akhil Narang 2025-12-22 13:38:24 +05:30
parent a13f02a240
commit 345f17558a
No known key found for this signature in database
GPG key ID: 9DCC61E211BF645F
12 changed files with 28 additions and 19 deletions

View file

@ -4,11 +4,11 @@ inputs:
python-version:
description: 'Python version to use'
required: false
default: '3.12.6'
default: '3.14'
node-version:
description: 'Node.js version to use'
required: false
default: '22'
default: '24'
build-assets:
required: false
description: 'Wether to build assets'

View file

@ -12,11 +12,11 @@ on:
python-version:
required: false
type: string
default: '3.10'
default: '3.14'
node-version:
required: false
type: number
default: 22
default: 24
db-artifact-url:
required: false
type: string
@ -49,6 +49,15 @@ jobs:
disable-socketio: true
disable-web: true
db-root-password: ${{ env.DB_ROOT_PASSWORD }}
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: |
3.11
3.13
${{ inputs.python-version }}
- name: Execute pre-migration tasks
if: inputs.pre
@ -108,7 +117,7 @@ jobs:
fi
echo "Setting up environment..."
if rm -rf ${GITHUB_WORKSPACE}/env && python -m venv ${GITHUB_WORKSPACE}/env; then
if rm -rf ${GITHUB_WORKSPACE}/env && python"$2" -m venv ${GITHUB_WORKSPACE}/env; then
source ${GITHUB_WORKSPACE}/env/bin/activate
pip install --quiet --upgrade pip
pip install --quiet frappe-bench
@ -148,13 +157,13 @@ jobs:
- name: Update to v14
run: |
source $RUNNER_TEMP/migrate
update_to_version 14
update_to_version 14 3.11
exit $?
- name: Update to v15
run: |
source $RUNNER_TEMP/migrate
update_to_version 15
update_to_version 15 3.13
exit $?
- name: Update to last commit

View file

@ -13,7 +13,7 @@ on:
node-version:
required: false
type: number
default: 22
default: 24
parallel-runs:
required: false
type: number

View file

@ -13,7 +13,7 @@ on:
node-version:
required: false
type: number
default: 22
default: 24
parallel-runs:
required: false
type: number

View file

@ -19,7 +19,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 22
node-version: 24
- name: Setup dependencies
run: |
npm install @semantic-release/git @semantic-release/exec --no-save

View file

@ -24,7 +24,7 @@ jobs:
fetch-depth: 200
- uses: actions/setup-node@v6
with:
node-version: 22
node-version: 24
check-latest: true
- name: Check commit titles

View file

@ -22,7 +22,7 @@ jobs:
- uses: actions/setup-node@v6
with:
node-version: 22
node-version: 24
- uses: actions/setup-python@v6
with:

View file

@ -16,7 +16,7 @@ jobs:
path: 'frappe'
- uses: actions/setup-node@v6
with:
node-version: 22
node-version: 24
- uses: actions/setup-python@v6
with:
python-version: '3.14'

View file

@ -79,7 +79,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 22
node-version: 24
check-latest: true
- name: Add to Hosts

View file

@ -58,8 +58,8 @@ jobs:
uses: ./.github/workflows/_base-migration.yml
with:
db-artifact-url: https://frappeframework.com/files/v13-frappe.sql.gz
python-version: '3.10'
node-version: 22
python-version: '3.14'
node-version: 24
fake-success: ${{ needs.checkrun.outputs.build != 'strawberry' }}
coverage:

View file

@ -16,7 +16,7 @@
"url": "https://github.com/frappe/frappe/issues"
},
"engines": {
"node": ">=18"
"node": ">=24"
},
"homepage": "https://frappeframework.com",
"dependencies": {

View file

@ -4,7 +4,7 @@ authors = [
{ name = "Frappe Technologies Pvt Ltd", email = "developers@frappe.io"}
]
description = "Metadata driven, full-stack low code web framework"
requires-python = ">=3.10,<3.15"
requires-python = ">=3.14,<3.15"
readme = "README.md"
dynamic = ["version"]
dependencies = [
@ -160,7 +160,7 @@ freezegun = "~=1.2.2"
[tool.ruff]
line-length = 110
target-version = "py310"
target-version = "py314"
exclude = [
"**/doctype/*/boilerplate/*.py" # boilerplate are template strings, not valid python
]