From 1dbfaa89d1444b8292889b144427474f7d2ae83f Mon Sep 17 00:00:00 2001 From: Usama Sadiq Date: Tue, 30 Jul 2024 20:44:46 +0500 Subject: [PATCH] feat!: Python 3.12 Upgrade --- .github/workflows/ci.yml | 2 +- .github/workflows/mysql8-check-migrations.yml | 2 +- .github/workflows/upgrade-python-requirements.yml | 2 +- requirements/constraints.txt | 4 ---- tox.ini | 2 +- 5 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dc44ef57..781d1a2e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: os: [ubuntu-20.04] - python-version: ['3.8', '3.12'] + python-version: ['3.12'] toxenv: [django42] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/mysql8-check-migrations.yml b/.github/workflows/mysql8-check-migrations.yml index 604b218f..51ca32f9 100644 --- a/.github/workflows/mysql8-check-migrations.yml +++ b/.github/workflows/mysql8-check-migrations.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: os: [ ubuntu-20.04 ] - python-version: [ 3.8 ] + python-version: [ 3.12 ] steps: - name: Checkout repo diff --git a/.github/workflows/upgrade-python-requirements.yml b/.github/workflows/upgrade-python-requirements.yml index 8b797093..28c1303e 100644 --- a/.github/workflows/upgrade-python-requirements.yml +++ b/.github/workflows/upgrade-python-requirements.yml @@ -15,7 +15,7 @@ jobs: uses: openedx/.github/.github/workflows/upgrade-python-requirements.yml@master with: branch: ${{ github.event.inputs.branch || 'master' }} - python_version: "3.8" + python_version: "3.12" # optional parameters below; fill in if you'd like github or email notifications # user_reviewers: "" # team_reviewers: "" diff --git a/requirements/constraints.txt b/requirements/constraints.txt index 9e40c380..ff3fb0f8 100644 --- a/requirements/constraints.txt +++ b/requirements/constraints.txt @@ -46,9 +46,5 @@ wrapt < 1.14.0 # At the time of adding this, the moto version 4.1.9 requires urllib3<1.27,>=1.25.4 urllib3<1.27,>=1.25.4 -# backports.zoneinfo needed for Python 3.12 + Django 4.2 compatibility -# Can be removed once requirements have been upgraded with Python>=3.9 -backports.zoneinfo; python_version<'3.9' - # path>16.14.0 has removed the deprecated abspath function, which is breaking the docs build path<16.15.0 diff --git a/tox.ini b/tox.ini index a8591756..f2e6536c 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py{38, 312}-django{42} +envlist = py{312}-django{42} skipsdist = true [testenv]