support 3.8-3.11, default 3.11

This commit is contained in:
Wong Chun Hong 2023-08-30 20:46:52 +01:00
parent 93cb33d359
commit c160f062a5
9 changed files with 15 additions and 17 deletions

View File

@ -11,10 +11,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"
- name: Build wheel and source tarball
run: |
pip install wheel

View File

@ -8,10 +8,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip

View File

@ -29,7 +29,6 @@ jobs:
- {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
@ -54,12 +53,12 @@ jobs:
- run: pip install tox
- run: tox -e ${{ matrix.tox }}
- name: Upload coverage.xml
if: ${{ matrix.python == '3.10' }}
if: ${{ matrix.python == '3.11' }}
uses: actions/upload-artifact@v3
with:
name: graphene-coverage
path: coverage.xml
if-no-files-found: error
- name: Upload coverage.xml to codecov
if: ${{ matrix.python == '3.10' }}
if: ${{ matrix.python == '3.11' }}
uses: codecov/codecov-action@v3

View File

@ -1,5 +1,5 @@
default_language_version:
python: python3.10
python: python3.11
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks

View File

@ -114,7 +114,7 @@ tox
If you wish to run against a specific version defined in the `tox.ini` file:
```sh
tox -e py39
tox -e py311
```
Tox can only use whatever versions of Python are installed on your system. When you create a pull request, GitHub Actions pipelines will also be running the same tests and report the results, so there is no need for potential contributors to try to install every single version of Python on their own system ahead of time. We appreciate opening issues and pull requests to make graphene even more stable & useful!

View File

@ -141,7 +141,7 @@ file:
.. code:: sh
tox -e py36
tox -e py311
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

View File

@ -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, pypy)
- Graphene (3.0)
Project setup

View File

@ -74,11 +74,10 @@ setup(
"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",
],
keywords="api graphql protocol rest relay graphene",
packages=find_packages(exclude=["examples*"]),

View File

@ -1,5 +1,5 @@
[tox]
envlist = py3{7,8,9,10,11}, mypy, pre-commit
envlist = py3{8,9,10,11}, mypy, pre-commit
skipsdist = true
[testenv]
@ -8,10 +8,10 @@ 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}: pytest --cov=graphene graphene --cov-report=term --cov-report=xml examples {posargs}
[testenv:pre-commit]
basepython = python3.10
basepython = python3.11
deps =
pre-commit>=2.16,<3
setenv =
@ -20,7 +20,7 @@ commands =
pre-commit run --all-files --show-diff-on-failure
[testenv:mypy]
basepython = python3.10
basepython = python3.11
deps =
mypy>=0.950,<1
commands =