From 2951fef32b21c8503714adc400153984253bdb30 Mon Sep 17 00:00:00 2001 From: Dulmandakh Date: Wed, 15 May 2024 07:35:23 +0800 Subject: [PATCH 1/3] CI: add Python 3.12 --- .github/workflows/tests.yml | 2 +- setup.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5162d051..f2ef3268 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,11 +25,11 @@ jobs: fail-fast: false matrix: include: + - {name: '3.12', python: '3.12', os: ubuntu-latest, tox: py312} - {name: '3.11', python: '3.11', os: ubuntu-latest, tox: py311} - {name: '3.10', python: '3.10', os: ubuntu-latest, tox: py310} - {name: '3.9', python: '3.9', os: ubuntu-latest, tox: py39} - {name: '3.8', python: '3.8', os: ubuntu-latest, tox: py38} - - {name: '3.7', python: '3.7', os: ubuntu-latest, tox: py37} steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 diff --git a/setup.py b/setup.py index 681ef38e..5d24a8d2 100644 --- a/setup.py +++ b/setup.py @@ -73,11 +73,11 @@ def run_tests(self): "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", + "Programming Language :: Python :: 3.12", ], keywords="api graphql protocol rest relay graphene", packages=find_packages(exclude=["examples*"]), From 48c7fe146547ec334dd5f83ea886ad78763d45eb Mon Sep 17 00:00:00 2001 From: Dulmandakh Date: Wed, 15 May 2024 07:44:57 +0800 Subject: [PATCH 2/3] dd --- README.rst | 2 +- docs/quickstart.rst | 2 +- tox.ini | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index 405a8f44..6b26404f 100644 --- a/README.rst +++ b/README.rst @@ -141,7 +141,7 @@ file: .. code:: sh - tox -e py36 + tox -e py10 Tox can only use whatever versions of Python are installed on your system. When you create a pull request, Travis will also be running the diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 75f201c9..31f51500 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -59,7 +59,7 @@ When we send a **Query** requesting only one **Field**, ``hello``, and specify a Requirements ~~~~~~~~~~~~ -- Python (3.6, 3.7, 3.8, 3.9, 3.10, pypy) +- Python (3.8, 3.9, 3.10, 3.11, 3.12, pypy) - Graphene (3.0) Project setup diff --git a/tox.ini b/tox.ini index 872d528c..e66e46bd 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py3{7,8,9,10,11}, mypy, pre-commit +envlist = py3{8,9,10,11,12}, mypy, pre-commit skipsdist = true [testenv] @@ -8,7 +8,7 @@ deps = setenv = PYTHONPATH = .:{envdir} commands = - py{37,38,39,310,311}: pytest --cov=graphene graphene --cov-report=term --cov-report=xml examples {posargs} + py{38,39,310,311,312}: pytest --cov=graphene graphene --cov-report=term --cov-report=xml examples {posargs} [testenv:pre-commit] basepython = python3.10 From 324ca87c0b27f07889f18da8bddfff22bcda7dfc Mon Sep 17 00:00:00 2001 From: Dulmandakh Date: Wed, 15 May 2024 07:47:43 +0800 Subject: [PATCH 3/3] remove python 3.12 --- .github/workflows/tests.yml | 1 - docs/quickstart.rst | 2 +- setup.py | 1 - tox.ini | 4 ++-- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f2ef3268..f4cd65c9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,7 +25,6 @@ jobs: fail-fast: false matrix: include: - - {name: '3.12', python: '3.12', os: ubuntu-latest, tox: py312} - {name: '3.11', python: '3.11', os: ubuntu-latest, tox: py311} - {name: '3.10', python: '3.10', os: ubuntu-latest, tox: py310} - {name: '3.9', python: '3.9', os: ubuntu-latest, tox: py39} diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 31f51500..e06b12bb 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -59,7 +59,7 @@ When we send a **Query** requesting only one **Field**, ``hello``, and specify a Requirements ~~~~~~~~~~~~ -- Python (3.8, 3.9, 3.10, 3.11, 3.12, pypy) +- Python (3.8, 3.9, 3.10, 3.11, pypy) - Graphene (3.0) Project setup diff --git a/setup.py b/setup.py index 5d24a8d2..51c3ae5c 100644 --- a/setup.py +++ b/setup.py @@ -77,7 +77,6 @@ def run_tests(self): "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", ], keywords="api graphql protocol rest relay graphene", packages=find_packages(exclude=["examples*"]), diff --git a/tox.ini b/tox.ini index e66e46bd..2b245f28 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py3{8,9,10,11,12}, mypy, pre-commit +envlist = py3{8,9,10,11}, mypy, pre-commit skipsdist = true [testenv] @@ -8,7 +8,7 @@ deps = setenv = PYTHONPATH = .:{envdir} commands = - py{38,39,310,311,312}: pytest --cov=graphene graphene --cov-report=term --cov-report=xml examples {posargs} + py{38,39,310,311}: pytest --cov=graphene graphene --cov-report=term --cov-report=xml examples {posargs} [testenv:pre-commit] basepython = python3.10