diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 570266547..30c78a4ca 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,10 +39,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - name: Set up Python 3.6 + - name: Set up Python 3.11 uses: actions/setup-python@v2 with: - python-version: '3.6' + python-version: '3.11' - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/README.md b/README.md index dd6e2821f..16f1d01a9 100644 --- a/README.md +++ b/README.md @@ -22,11 +22,17 @@ Getting Started Docs: +- [Deprecation notice](#deprecation-notice) +- [Box Python SDK](#box-python-sdk) - [Installing](#installing) - [Getting Started](#getting-started) - [Authorization](#authorization) - [Server-to-Server Auth with JWT](#server-to-server-auth-with-jwt) - [Traditional 3-legged OAuth2](#traditional-3-legged-oauth2) + - [Get the Authorization URL](#get-the-authorization-url) + - [Authenticate (Get Access/Refresh Tokens)](#authenticate-get-accessrefresh-tokens) + - [Create an Authenticated Client](#create-an-authenticated-client) + - [Instantiate a Client Given an Access and a Refresh Token](#instantiate-a-client-given-an-access-and-a-refresh-token) - [Other Auth Options](#other-auth-options) - [Usage Documentation](#usage-documentation) - [Making API Calls Manually](#making-api-calls-manually) @@ -451,8 +457,7 @@ tox The tox tests include code style checks via pep8 and pylint. -The tox tests are configured to run on Python 3.6, 3.7, 3.8, 3.9, 3.10, 3.11 -and PyPy (our CI is configured to run PyPy tests on pypy-3.6, pypy-3.7, pypy-3.8). +The tox tests are configured to run on Python 3.6, 3.7, 3.8, 3.9, 3.10, 3.11. # Questions, Bugs, and Feature Requests? diff --git a/setup.py b/setup.py index 8c9dba0db..6245fc7db 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,6 @@ 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', 'Programming Language :: Python :: Implementation :: CPython', - 'Programming Language :: Python :: Implementation :: PyPy', 'Operating System :: OS Independent', 'Operating System :: POSIX', 'Operating System :: Microsoft :: Windows', diff --git a/tox.ini b/tox.ini index 88c7a32dd..182803998 100644 --- a/tox.ini +++ b/tox.ini @@ -8,11 +8,8 @@ envlist = pycodestyle, pylint, py36, - pypy36, py37, - pypy37, py38, - pypy38, py39, py310, py311, @@ -22,11 +19,8 @@ envlist = [gh-actions] python = 3.6: py36, pycodestyle, pylint - pypy-3.6: pypy36 3.7: py37 - pypy-3.7: pypy37 3.8: py38 - pypy-3.8: pypy38 3.9: py39 3.10: py310 3.11: py311 @@ -53,34 +47,33 @@ deps = -rrequirements-test.txt [testenv:coverage] -basepython = python3.6 +basepython = python3.11 commands = py.test --cov boxsdk --cov-report term-missing test/unit test/integration deps = coverage -rrequirements-test.txt -[testenv:py36-build] +[testenv:py311-build] description = Build the source and binary wheel packages for distribution. pypi_dist_dir = {toxinidir}/pypi-dist commands = - rm -rf "{[testenv:py36-build]pypi_dist_dir}" + rm -rf "{[testenv:py311-build]pypi_dist_dir}" {envpython} setup.py -vv \ - sdist --formats=gztar --keep-temp --dist-dir="{[testenv:py36-build]pypi_dist_dir}" \ - bdist_wheel --keep-temp --dist-dir="{[testenv:py36-build]pypi_dist_dir}" + sdist --formats=gztar --keep-temp --dist-dir="{[testenv:py311-build]pypi_dist_dir}" \ + bdist_wheel --keep-temp --dist-dir="{[testenv:py311-build]pypi_dist_dir}" skip_install = True sitepackages = False recreate = True deps = wheel - setuptools virtualenv<20.22.0 allowlist_externals = rm -[testenv:py36-upload] +[testenv:py311-upload] description = Upload packages to PyPI. commands = - twine upload --config-file="{toxinidir}/.pypirc" {posargs} {[testenv:py36-build]pypi_dist_dir}/* + twine upload --config-file="{toxinidir}/.pypirc" {posargs} {[testenv:py311-build]pypi_dist_dir}/* skip_install = True sitepackages = False recreate = True