From 318ddbdc6bdc817e7a0243a8054bf95fbbb576b8 Mon Sep 17 00:00:00 2001 From: Kien Dang Date: Fri, 4 Aug 2023 02:01:59 +0800 Subject: [PATCH 1/3] chore: remove Python 3.7 from CI EOL since 2023-06-27 https://devguide.python.org/versions/ --- .github/workflows/tests.yml | 4 +--- setup.py | 3 +-- tox.ini | 5 ++--- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7e58bb5..b81a313 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,11 +8,9 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11"] os: [ubuntu-latest, windows-latest] exclude: - - os: windows-latest - python-version: "3.7" - os: windows-latest python-version: "3.8" - os: windows-latest diff --git a/setup.py b/setup.py index bf3f24f..b7c9574 100644 --- a/setup.py +++ b/setup.py @@ -71,11 +71,10 @@ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Topic :: Software Development :: Libraries", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "License :: OSI Approved :: MIT License", ], keywords="api graphql protocol rest", diff --git a/tox.ini b/tox.ini index 1c534fd..4eaf51a 100644 --- a/tox.ini +++ b/tox.ini @@ -1,12 +1,11 @@ [tox] envlist = black,flake8,import-order,mypy,manifest, - py{37,38,39,310,311} + py{38,39,310,311} ; requires = tox-conda [gh-actions] python = - 3.7: py37 3.8: py38 3.9: py39 3.10: py310 @@ -23,7 +22,7 @@ whitelist_externals = python commands = pip install -U setuptools - py{37,38,39,311}: pytest tests {posargs} + py{38,39,311}: pytest tests {posargs} py{310}: pytest tests --cov-report=term-missing --cov=graphql_server {posargs} [testenv:black] From 2bc8adbf6b573c7ddbaefbcdd6013292382e451b Mon Sep 17 00:00:00 2001 From: Kien Dang Date: Fri, 4 Aug 2023 02:02:48 +0800 Subject: [PATCH 2/3] chore: remove unused context --- .github/workflows/tests.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b81a313..e4f00b2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -30,8 +30,6 @@ jobs: pip install tox tox-gh-actions - name: Test with tox run: tox - env: - TOXENV: ${{ matrix.toxenv }} coverage: runs-on: ubuntu-latest From ce880b5bc5836930216ef6620eada877df44a825 Mon Sep 17 00:00:00 2001 From: Kien Dang Date: Tue, 3 Oct 2023 21:48:40 +0800 Subject: [PATCH 3/3] chore: add Python 3.12 --- .github/workflows/deploy.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/tests.yml | 6 ++++-- setup.py | 1 + tox.ini | 17 +++++++++-------- 5 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 271642c..fe8c256 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -14,7 +14,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.10" + python-version: "3.12" - name: Build wheel and source tarball run: | pip install wheel diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 454ab1b..87026d6 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.10" + python-version: "3.12" - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e4f00b2..ba966fd 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,13 +8,15 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] os: [ubuntu-latest, windows-latest] exclude: - os: windows-latest python-version: "3.8" - os: windows-latest python-version: "3.9" + - os: windows-latest + python-version: "3.10" - os: windows-latest python-version: "3.11" @@ -39,7 +41,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.10" + python-version: "3.12" - name: Install test dependencies run: | python -m pip install --upgrade pip diff --git a/setup.py b/setup.py index b7c9574..5808288 100644 --- a/setup.py +++ b/setup.py @@ -75,6 +75,7 @@ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "License :: OSI Approved :: MIT License", ], keywords="api graphql protocol rest", diff --git a/tox.ini b/tox.ini index 4eaf51a..c0bfe7c 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] envlist = black,flake8,import-order,mypy,manifest, - py{38,39,310,311} + py{38,39,310,311,312} ; requires = tox-conda [gh-actions] @@ -10,6 +10,7 @@ python = 3.9: py39 3.10: py310 3.11: py311 + 3.12: py312 [testenv] conda_channels = conda-forge @@ -22,35 +23,35 @@ whitelist_externals = python commands = pip install -U setuptools - py{38,39,311}: pytest tests {posargs} - py{310}: pytest tests --cov-report=term-missing --cov=graphql_server {posargs} + py{38,39,310,311}: pytest tests {posargs} + py{312}: pytest tests --cov-report=term-missing --cov=graphql_server {posargs} [testenv:black] -basepython = python3.10 +basepython = python3.12 deps = -e.[dev] commands = black --check graphql_server tests [testenv:flake8] -basepython = python3.10 +basepython = python3.12 deps = -e.[dev] commands = flake8 setup.py graphql_server tests [testenv:import-order] -basepython = python3.10 +basepython = python3.12 deps = -e.[dev] commands = isort graphql_server/ tests/ [testenv:mypy] -basepython = python3.10 +basepython = python3.12 deps = -e.[dev] commands = mypy graphql_server tests --ignore-missing-imports [testenv:manifest] -basepython = python3.10 +basepython = python3.12 deps = -e.[dev] commands = check-manifest -v