diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6cce61d5..95a7a44b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ad5bea6a..eb4061ff 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5162d051..0e5716b2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index eece56e0..426c24e0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,5 +1,5 @@ default_language_version: - python: python3.10 + python: python3.11 repos: - repo: https://github.com/pre-commit/pre-commit-hooks diff --git a/README.md b/README.md index 7beb975c..5445c17c 100644 --- a/README.md +++ b/README.md @@ -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! diff --git a/README.rst b/README.rst index 405a8f44..b6045e0f 100644 --- a/README.rst +++ b/README.rst @@ -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 diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 75f201c9..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.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 diff --git a/setup.py b/setup.py index 6c1f29c9..00032cbc 100644 --- a/setup.py +++ b/setup.py @@ -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*"]), diff --git a/tox.ini b/tox.ini index 872d528c..be0c92dc 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}, 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 =