From d3ca36d59640621c2349c0e277faa62001af279f Mon Sep 17 00:00:00 2001 From: 18alantom <2.alan.tom@gmail.com> Date: Mon, 6 May 2024 15:35:24 +0530 Subject: [PATCH] chore: deprecate 3.7 support --- .github/workflows/ci.yml | 11 +++-------- README.md | 2 +- bench/app.py | 5 ++++- pyproject.toml | 2 +- 4 files changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74b1b0d2..1c9dac49 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [ '3.7', '3.8', '3.9', '3.10' ] + python-version: ['3.8', '3.9', '3.10' ] name: Base (${{ matrix.python-version }}) @@ -58,7 +58,7 @@ jobs: strategy: matrix: - python-version: [ '3.7', '3.10' ] + python-version: ['3.10' ] name: Production (${{ matrix.python-version }}) @@ -96,7 +96,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [ '3.7', '3.10' ] + python-version: ['3.10' ] name: Tests (${{ matrix.python-version }}) @@ -120,11 +120,6 @@ jobs: with: node-version: 18 - - uses: actions/setup-node@v3 - if: ${{ matrix.python-version == '3.7' }} - with: - node-version: 14 - - run: | wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_amd64.deb; sudo apt install ./wkhtmltox_0.12.6-1.focal_amd64.deb; diff --git a/README.md b/README.md index e523672c..3a6eb130 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Bench is a command-line utility that helps you to install, update, and manage mu
- + diff --git a/bench/app.py b/bench/app.py index 288a7ee5..0c2eea90 100755 --- a/bench/app.py +++ b/bench/app.py @@ -595,7 +595,10 @@ def remove_unused_node_modules(app_path: Path) -> None: can_delete = "vite build" in build_script if can_delete: - click.secho(f"Bench app-cache: removing {node_modules.as_posix()}") + click.secho( + f"Bench app-cache: removing {node_modules.as_posix()}", + fg="yellow", + ) shutil.rmtree(node_modules) diff --git a/pyproject.toml b/pyproject.toml index 01db07b0..2b8421f3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "frappe-bench" description = "CLI to manage Multi-tenant deployments for Frappe apps" readme = "README.md" license = "GPL-3.0-only" -requires-python = ">=3.7" +requires-python = ">=3.8" authors = [ { name = "Frappe Technologies Pvt Ltd", email = "developers@frappe.io" }, ]