From bb0a1f13cf738a2d8452c27c695efaad04753ec4 Mon Sep 17 00:00:00 2001 From: AlexWaygood Date: Fri, 8 Sep 2023 18:14:18 +0100 Subject: [PATCH 1/3] Run tests on py312 for more third-party projects --- .github/workflows/third_party.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/third_party.yml b/.github/workflows/third_party.yml index d07f82e3..3612f112 100644 --- a/.github/workflows/third_party.yml +++ b/.github/workflows/third_party.yml @@ -128,7 +128,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] runs-on: ubuntu-latest timeout-minutes: 60 steps: @@ -145,6 +145,7 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - name: Install pyanalyze test requirements run: pip install ./pyanalyze[tests] - name: Install typing_extensions latest @@ -266,7 +267,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] runs-on: ubuntu-latest timeout-minutes: 60 steps: @@ -283,6 +284,7 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - name: Install mypy test requirements run: | cd mypy @@ -312,7 +314,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "pypy3.9"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.9"] runs-on: ubuntu-latest timeout-minutes: 60 steps: @@ -332,6 +334,7 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - name: Install pdm for cattrs run: pip install pdm - name: Add latest typing-extensions as a dependency From 8f93763313a3da4496263cd48c9f74907391c68a Mon Sep 17 00:00:00 2001 From: AlexWaygood Date: Fri, 8 Sep 2023 18:18:10 +0100 Subject: [PATCH 2/3] also get rid of a `cattrs` hack that's no longer necessary --- .github/workflows/third_party.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/third_party.yml b/.github/workflows/third_party.yml index 3612f112..38c1f960 100644 --- a/.github/workflows/third_party.yml +++ b/.github/workflows/third_party.yml @@ -322,10 +322,6 @@ jobs: uses: actions/checkout@v3 with: repository: python-attrs/cattrs - - name: Edit cattrs pyproject.toml - # cattrs's python-requires means pdm won't let us add typing-extensions-latest - # as a requirement unless we do this - run: sed -i 's/^requires-python = .*/requires-python = ">=3.8"/' pyproject.toml - name: Checkout typing_extensions uses: actions/checkout@v3 with: From 8324aafb0bbdc90fe80ea8ecd60a095f1fb54d0c Mon Sep 17 00:00:00 2001 From: AlexWaygood Date: Fri, 8 Sep 2023 18:35:26 +0100 Subject: [PATCH 3/3] Leave cattrs out for now --- .github/workflows/third_party.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/third_party.yml b/.github/workflows/third_party.yml index 38c1f960..b318e333 100644 --- a/.github/workflows/third_party.yml +++ b/.github/workflows/third_party.yml @@ -314,7 +314,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.9"] + python-version: ["3.8", "3.9", "3.10", "3.11", "pypy3.9"] runs-on: ubuntu-latest timeout-minutes: 60 steps: @@ -330,7 +330,6 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - allow-prereleases: true - name: Install pdm for cattrs run: pip install pdm - name: Add latest typing-extensions as a dependency