From a1cedaf12afa547f23ce728ba76fcf0df1828f45 Mon Sep 17 00:00:00 2001 From: WXTIM <26465611+wxtim@users.noreply.github.com> Date: Mon, 29 Apr 2024 13:27:10 +0100 Subject: [PATCH 1/2] Exclude Pytest 8.2 from setup.cfg We cannot use pytest-async 0.23 because of https://github.com/pytest-dev/pytest-asyncio/issues/706 We need to use pytest-async 0.23 if we use pytest 8.2 because of https://github.com/pytest-dev/pytest/issues/12269 This may be fixed bt this backport of the fix in pytest-async 0.23: https://github.com/pytest-dev/pytest-asyncio/pull/823 Test MacOs using Python 3.8 becuase GHA no longer providing 3.7 on that platform --- .github/workflows/build.yml | 2 +- .github/workflows/test_fast.yml | 2 +- setup.cfg | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 041b6e50a70..548cf0235fc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,7 +21,7 @@ jobs: python: ['3.7', '3.8', '3.9', '3.10', '3.11'] include: - os: 'macos-latest' - python: '3.7' + python: '3.8' steps: - name: Checkout uses: actions/checkout@v3 diff --git a/.github/workflows/test_fast.yml b/.github/workflows/test_fast.yml index 53d6c475bc3..77db04f418c 100644 --- a/.github/workflows/test_fast.yml +++ b/.github/workflows/test_fast.yml @@ -24,7 +24,7 @@ jobs: include: # mac os test - os: 'macos-11' - python-version: '3.7' # oldest supported version + python-version: '3.8' # oldest supported version # non-utc timezone test - os: 'ubuntu-latest' python-version: '3.9' # not the oldest, not the most recent version diff --git a/setup.cfg b/setup.cfg index 15cfc9d6009..fade1468b89 100644 --- a/setup.cfg +++ b/setup.cfg @@ -117,7 +117,7 @@ tests = flake8>=3.0.0 mypy>=0.910,<1.9 # https://github.com/pytest-dev/pytest-asyncio/issues/706 - pytest-asyncio>=0.17,!=0.23.* + pytest-asyncio>=0.17,!=0.23.0,!=0.23.1 pytest-cov>=2.8.0 pytest-xdist>=2 pytest-env>=0.6.2 From e02c5834d6e38eac999970277ab38a7a7dd1ae78 Mon Sep 17 00:00:00 2001 From: Tim Pillinger <26465611+wxtim@users.noreply.github.com> Date: Tue, 30 Apr 2024 13:55:11 +0100 Subject: [PATCH 2/2] Update setup.cfg Co-authored-by: Ronnie Dutta <61982285+MetRonnie@users.noreply.github.com> --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index fade1468b89..f95dc34ddb9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -117,7 +117,7 @@ tests = flake8>=3.0.0 mypy>=0.910,<1.9 # https://github.com/pytest-dev/pytest-asyncio/issues/706 - pytest-asyncio>=0.17,!=0.23.0,!=0.23.1 + pytest-asyncio>=0.21.2,!=0.23.* pytest-cov>=2.8.0 pytest-xdist>=2 pytest-env>=0.6.2