From 205bc92ccfcb8bb15c8e8b32cc7d8de47045e9cc Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Tue, 28 Jan 2025 12:54:57 -0500 Subject: [PATCH] build: Add presubmits for Python 3.14 pre-release (#532) --- .github/sync-repo-settings.yaml | 6 ++++-- .github/workflows/tests.yml | 6 ++++-- noxfile.py | 1 + testing/constraints-3.14.txt | 0 4 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 testing/constraints-3.14.txt diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 2f30ae78..e0e29f08 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -27,8 +27,10 @@ branchProtectionRules: - 'unit (3.12, upb)' - 'unit (3.13, python)' - 'unit (3.13, upb)' - - 'prerelease (3.13, python)' - - 'prerelease (3.13, upb)' + - 'unit (3.14, python)' + - 'unit (3.14, upb)' + - 'prerelease (3.14, python)' + - 'prerelease (3.14, upb)' - cover - OwlBot Post Processor - 'cla/google' diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 472f703f..77bfc9ad 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -45,7 +45,7 @@ jobs: # See https://github.com/actions/setup-python?tab=readme-ov-file#basic-usage # for the format of the entries in 'python'. # See https://downloads.python.org/pypy/ for the current supported versions of PyPy. - python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13', 'pypy3.10'] + python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14', 'pypy3.10'] variant: ['cpp', 'python', 'upb'] # TODO(https://github.com/googleapis/proto-plus-python/issues/389): # Remove the 'cpp' implementation once support for Protobuf 3.x is dropped. @@ -59,6 +59,8 @@ jobs: python: 3.12 - variant: "cpp" python: 3.13 + - variant: "cpp" + python: 3.14 # In PyPy 3.10, we see the following warning # UserWarning: Selected implementation upb is not available. Falling back to the python implementation. - variant: "upb" @@ -92,7 +94,7 @@ jobs: runs-on: ubuntu-22.04 strategy: matrix: - python: ['3.13'] + python: ['3.14'] variant: ['python', 'upb'] steps: - uses: actions/checkout@v4 diff --git a/noxfile.py b/noxfile.py index 01a65b09..1e43d826 100644 --- a/noxfile.py +++ b/noxfile.py @@ -30,6 +30,7 @@ "3.11", "3.12", "3.13", + "3.14", ] # Error if a python version is missing diff --git a/testing/constraints-3.14.txt b/testing/constraints-3.14.txt new file mode 100644 index 00000000..e69de29b