From 3bfa45f8100cbe6cc56c804c01392a18713077d0 Mon Sep 17 00:00:00 2001 From: Ang Li Date: Tue, 6 Oct 2026 22:35:45 +0000 Subject: [PATCH] Require Python 3.14+ Aligns with google3, which switched its default interpreter to 3.14 on 2026-08-03 (go/py314-upgrade), and with Mobly's practice of tracking that floor. * `pyproject.toml`: `requires-python = ">=3.14"`. * README: update the stated minimum. * CI: test matrix is now 3.14 only; the pyink format check moves to a single `lint` job instead of running in every matrix cell. No code changes; the release notes for the next release should call out the new minimum. --- .github/workflows/ci.yml | 24 ++++++++++++++++++------ README.md | 4 ++-- pyproject.toml | 2 +- 3 files changed, 21 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 33c25d8e5..4566d679e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,13 +6,30 @@ permissions: contents: read jobs: + lint: + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - name: Checkout repo + uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 + + - name: Set up Python + uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 + with: + python-version: "3.14" + + - name: Check formatting + run: | + python -m pip install pyink==24.3.0 + pyink --check . + build-and-test: runs-on: ${{ matrix.os }} timeout-minutes: 10 strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.11", "3.12", "3.13", "3.14"] + python-version: ["3.14"] steps: - name: Checkout repo uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 @@ -30,8 +47,3 @@ jobs: - name: Test with tox run: | tox - - - name: Check formatting - run: | - python -m pip install pyink==24.3.0 - pyink --check . diff --git a/README.md b/README.md index a9cd38fba..75dbddec4 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ While developed by Googlers, Mobly is not an official Google product. ## Compatibility -Mobly requires *python 3.11* or newer. +Mobly requires *python 3.14* or newer. Mobly tests could run on the following platforms: - Ubuntu 14.04+ @@ -33,7 +33,7 @@ Mobly tests could run on the following platforms: ## System dependencies - adb (1.0.40+ recommended) - - python3.11+ + - python3.14+ ## Installation You can install the released package from pip diff --git a/pyproject.toml b/pyproject.toml index 476302f9e..8c6c38c7f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta" name = "mobly" version = "1.13.1" description = "Automation framework for special end-to-end test cases" -requires-python = ">=3.11" +requires-python = ">=3.14" dependencies = [ "portpicker", "pywin32; platform_system == \"Windows\"", "pyyaml",] [[project.maintainers]]