From 644f3fdb4591e14faf67050de4182d470f901662 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Fri, 30 Sep 2022 21:56:22 +0200 Subject: [PATCH] Use 3.11 for Github actions (#6551) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use ``dill-pylint`` (our own version of dill) because dill's 0.3.6 release is taking forever. Closes #5920 Co-authored-by: Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> --- .github/workflows/changelog.yml | 4 ++-- .github/workflows/checks.yaml | 4 ++-- .github/workflows/primer-test.yaml | 8 ++++---- .github/workflows/primer_comment.yaml | 4 ++-- .github/workflows/primer_run_main.yaml | 4 ++-- .github/workflows/primer_run_pr.yaml | 4 ++-- .github/workflows/release.yml | 2 +- .github/workflows/tests.yaml | 10 +++++----- doc/whatsnew/fragments/5920.other | 3 +++ pyproject.toml | 5 ++++- tox.ini | 2 +- 11 files changed, 28 insertions(+), 22 deletions(-) create mode 100644 doc/whatsnew/fragments/5920.other diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index a11bfe1cb5..b93ed473f3 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -6,8 +6,8 @@ on: env: # Also change CACHE_VERSION in the other workflows - CACHE_VERSION: 27 - DEFAULT_PYTHON: "3.10" + CACHE_VERSION: 29 + DEFAULT_PYTHON: "3.11-dev" jobs: check-changelog: diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml index 1b928c3338..188e55b7d6 100644 --- a/.github/workflows/checks.yaml +++ b/.github/workflows/checks.yaml @@ -8,8 +8,8 @@ on: pull_request: ~ env: - CACHE_VERSION: 27 - DEFAULT_PYTHON: "3.10" + CACHE_VERSION: 29 + DEFAULT_PYTHON: "3.11-dev" PRE_COMMIT_CACHE: ~/.cache/pre-commit concurrency: diff --git a/.github/workflows/primer-test.yaml b/.github/workflows/primer-test.yaml index e1403a1d3d..62f065a243 100644 --- a/.github/workflows/primer-test.yaml +++ b/.github/workflows/primer-test.yaml @@ -13,7 +13,7 @@ on: - ".github/workflows/primer-test.yaml" env: - CACHE_VERSION: 27 + CACHE_VERSION: 29 concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} @@ -26,7 +26,7 @@ jobs: timeout-minutes: 5 strategy: matrix: - python-version: [3.8, 3.9, "3.10"] + python-version: [3.8, 3.9, "3.10", "3.11-dev"] outputs: python-key: ${{ steps.generate-python-key.outputs.key }} steps: @@ -68,7 +68,7 @@ jobs: needs: prepare-tests-linux strategy: matrix: - python-version: [3.8, 3.9, "3.10"] + python-version: [3.8, 3.9, "3.10", "3.11-dev"] steps: - name: Check out code from GitHub uses: actions/checkout@v3.0.2 @@ -103,7 +103,7 @@ jobs: needs: prepare-tests-linux strategy: matrix: - python-version: [3.8, 3.9, "3.10"] + python-version: [3.8, 3.9, "3.10", "3.11-dev"] steps: - name: Check out code from GitHub uses: actions/checkout@v3.0.2 diff --git a/.github/workflows/primer_comment.yaml b/.github/workflows/primer_comment.yaml index 5379311713..0528c47a2e 100644 --- a/.github/workflows/primer_comment.yaml +++ b/.github/workflows/primer_comment.yaml @@ -14,7 +14,7 @@ on: env: # This needs to be the SAME as in the Main and PR job - CACHE_VERSION: 27 + CACHE_VERSION: 29 permissions: contents: read @@ -37,7 +37,7 @@ jobs: id: python uses: actions/setup-python@v4.2.0 with: - python-version: "3.10" + python-version: "3.11-dev" # Restore cached Python environment - name: Restore Python virtual environment diff --git a/.github/workflows/primer_run_main.yaml b/.github/workflows/primer_run_main.yaml index 56f08f6777..267a386b3b 100644 --- a/.github/workflows/primer_run_main.yaml +++ b/.github/workflows/primer_run_main.yaml @@ -16,7 +16,7 @@ concurrency: env: # This needs to be the SAME as in the PR and comment job - CACHE_VERSION: 27 + CACHE_VERSION: 29 jobs: run-primer: @@ -25,7 +25,7 @@ jobs: timeout-minutes: 60 strategy: matrix: - python-version: ["3.7", "3.10"] + python-version: ["3.7", "3.11-dev"] steps: - name: Check out code from GitHub uses: actions/checkout@v3.0.2 diff --git a/.github/workflows/primer_run_pr.yaml b/.github/workflows/primer_run_pr.yaml index 7fa785ce21..7fcc2d8763 100644 --- a/.github/workflows/primer_run_pr.yaml +++ b/.github/workflows/primer_run_pr.yaml @@ -25,7 +25,7 @@ concurrency: env: # This needs to be the SAME as in the Main and comment job - CACHE_VERSION: 27 + CACHE_VERSION: 29 jobs: run-primer: @@ -34,7 +34,7 @@ jobs: timeout-minutes: 120 strategy: matrix: - python-version: ["3.7", "3.10"] + python-version: ["3.7", "3.11-dev"] steps: - name: Check out code from GitHub uses: actions/checkout@v3.0.2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d51577801e..ce7a6919cd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,7 @@ on: - published env: - DEFAULT_PYTHON: "3.10" + DEFAULT_PYTHON: "3.11-dev" jobs: release-pypi: diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 13a720fa50..cc914c2c48 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -10,7 +10,7 @@ on: - doc/data/messages/** env: - CACHE_VERSION: 27 + CACHE_VERSION: 29 jobs: tests-linux: @@ -20,7 +20,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.7, 3.8, 3.9, "3.10"] + python-version: [3.7, 3.8, 3.9, "3.10", "3.11-dev"] outputs: python-key: ${{ steps.generate-python-key.outputs.key }} steps: @@ -75,7 +75,7 @@ jobs: needs: tests-linux strategy: matrix: - python-version: ["3.10"] + python-version: ["3.11-dev"] env: COVERAGERC_FILE: .coveragerc steps: @@ -121,7 +121,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10"] + python-version: ["3.11-dev"] steps: - name: Check out code from GitHub uses: actions/checkout@v3.0.2 @@ -173,7 +173,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.7, 3.8, 3.9, "3.10"] + python-version: [3.7, 3.8, 3.9, "3.10", "3.11-dev"] steps: - name: Set temp directory run: echo "TEMP=$env:USERPROFILE\AppData\Local\Temp" >> $env:GITHUB_ENV diff --git a/doc/whatsnew/fragments/5920.other b/doc/whatsnew/fragments/5920.other new file mode 100644 index 0000000000..5bd356a9cc --- /dev/null +++ b/doc/whatsnew/fragments/5920.other @@ -0,0 +1,3 @@ +Pylint now provides basic support for Python 3.11. + +Closes #5920 diff --git a/pyproject.toml b/pyproject.toml index f8093a6276..62cf702e8b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,6 +24,7 @@ classifiers = [ "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Debuggers", @@ -32,7 +33,9 @@ classifiers = [ ] requires-python = ">=3.7.2" dependencies = [ - "dill>=0.2", + # TODO: Remove dill-pylint once dill 0.3.6 is released + "dill>=0.2;python_version<'3.11'", + "dill-pylint>=0.3.6.dev0;python_version>='3.11'", "platformdirs>=2.2.0", # Also upgrade requirements_test_min.txt and all the CACHE_VERSION in # github actions if you are bumping astroid. diff --git a/tox.ini b/tox.ini index 4a8f67dbe5..0c78b87982 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 3.0 -envlist = formatting, py37, py38, py39, py310, pypy, benchmark +envlist = formatting, py37, py38, py39, py310, py311, pypy, benchmark skip_missing_interpreters = true requires = pip >=21.3.1 isolated_build = true