Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,17 @@ Getting Started Docs: <https://developer.box.com/guides/tooling/sdks/python/>
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->

- [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)
Expand Down Expand Up @@ -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?

Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
21 changes: 7 additions & 14 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@ envlist =
pycodestyle,
pylint,
py36,
pypy36,
py37,
pypy37,
py38,
pypy38,
py39,
py310,
py311,
Expand All @@ -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
Expand All @@ -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
Expand Down