From e8af4815448e679f0cf223b5df1d3d315e6f98c1 Mon Sep 17 00:00:00 2001 From: Maria Grimaldi Date: Mon, 16 Sep 2024 18:35:42 +0200 Subject: [PATCH] build: upgrade python version in all CI/CD workflows and implementation --- .github/workflows/ci.yml | 2 +- .github/workflows/pypi-publish.yml | 2 +- .readthedocs.yaml | 2 +- openedx_events/event_bus/tests/test_loader.py | 2 -- requirements/constraints.txt | 3 --- 5 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c3b3ca79..12d957a8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,7 +37,7 @@ jobs: run: tox - name: Run coverage - if: matrix.python-version == '3.8' && matrix.toxenv == 'django42' + if: matrix.python-version == '3.11' && matrix.toxenv == 'django42' uses: codecov/codecov-action@v4 with: flags: unittests diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 8edf5166..42c80d89 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -15,7 +15,7 @@ jobs: - name: setup python uses: actions/setup-python@v5 with: - python-version: 3.8 + python-version: 3.11 - name: Install pip run: pip install -r requirements/pip.txt diff --git a/.readthedocs.yaml b/.readthedocs.yaml index a79cc7fc..679025cf 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -8,7 +8,7 @@ version: 2 build: os: "ubuntu-22.04" tools: - python: "3.8" + python: "3.11" # Build documentation in the docs/ directory with Sphinx sphinx: diff --git a/openedx_events/event_bus/tests/test_loader.py b/openedx_events/event_bus/tests/test_loader.py index 417b89c0..0ec4d4ae 100644 --- a/openedx_events/event_bus/tests/test_loader.py +++ b/openedx_events/event_bus/tests/test_loader.py @@ -85,7 +85,6 @@ def test_missing_attribute(self): ) assert loaded == {'def': 'ault'} - @pytest.mark.skipif(sys.version_info > (3, 9), reason="Python 3.8.x required") # Temporary until 3.8 is dropped @override_settings(EB_LOAD_PATH='builtins.dict') def test_bad_args_for_callable(self): with assert_warnings([ @@ -99,7 +98,6 @@ def test_bad_args_for_callable(self): ) assert loaded == {'def': 'ault'} - @pytest.mark.skipif(sys.version_info < (3, 9), reason="Python 3.11.x required") # Temporary until 3.8 is dropped @override_settings(EB_LOAD_PATH='builtins.dict') def test_bad_args_for_callable(self): with assert_warnings([ diff --git a/requirements/constraints.txt b/requirements/constraints.txt index 7bcb44c8..09c2c45e 100644 --- a/requirements/constraints.txt +++ b/requirements/constraints.txt @@ -15,6 +15,3 @@ # This should be removed once the issue is fixed with a new astroid release or with a test_generate_avro_schemas.py # module refactor. astroid<3.0.0 - -# Temporary to Support the python 3.11 Upgrade -backports.zoneinfo;python_version<"3.9" # Newer versions have zoneinfo available in the standard library