diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 7b92b18..607bf06 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.7', '3.8'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v2 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 9a8db29..0000000 --- a/.travis.yml +++ /dev/null @@ -1,35 +0,0 @@ -language: python -# sudo and xenial are required to install py37 -# https://github.com/travis-ci/travis-ci/issues/9069 -sudo: required -dist: xenial - -matrix: - include: - - python: 2.7 - env: TOXENV=py27 - - python: 3.5 - env: TOXENV=py35 - - python: 3.6 - env: TOXENV=py36 - - python: 3.7 - env: TOXENV=py37 - - python: 3.7 - env: TOXENV=docs - - python: 3.7 - env: TOXENV=flake8 - - python: 3.7 - env: TOXENV=pre-commit -install: pip install tox coveralls -script: tox -after_success: coveralls -sudo: false -deploy: - provider: pypi - user: "yelplabs" - password: - secure: CRHU+aWPqlHKrVu+R8aMc0usIKy4mWiHtt8MCADU1oC/Z2SOB+jtVBEHP30Ze9cr1GLzfElAYDdNqI4oe2vUvvG103qJIAB4l8Cz/B40ZHVkHdsTU0rdacOPQ3bD5aGf3GqcjDcKKdk6AwohXNJ5mJzADiHB3kIb6CtS+IgQ0T1+bCFb5VX02ygpQF6+0Qywtw8EbVPZZokbQC0IEF30dtmmVAK7tF3CJcExgNWH2IvRyws7NZJLID5pcVDr+GAIGtyRsRy9l7JLCJ1B14Lliya/IBLzLN2uAE/rpD0ZZjw9y30AwMIqpcN8rqEMb0HFgIDqTFG9fc4g2ztyh+rwqIlWDKAZrvKfYnIQRqwHQkTx9VbxCSSZepx1NFHV7x4NF99xQqWMd7Lh1/PxmsAogZwpoVtyDxPmCT3hO+fs2XF4Ubbt//hr3yrVigW/Xa9R8k6a/dqzn7AGEgZBngGwdK9wo4cOsq67iiZbQCXnnZs2eaLmA9UR1pB8f90WyqidMnQTdPRMuRtzgvpXtZsJDi9+KHK/8idJMgxmNrF0QD2I7ZzFAPG2FO7lQNj1Qlx2PS2mU90jISlnYU1duda3IckD3iUs/8Z3n6kO0LAOq2/ci1Y65Vu1k/Cht+aOolP4WQ4mRJ0mqHGAmWGRFs0iXE8m1aO+WtU46q2BVs6dxNQ= - on: - tags: true - condition: $TOXENV = py27 - distributions: "sdist bdist_wheel" diff --git a/mypy.ini b/mypy.ini index 8924204..3421304 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1,5 +1,5 @@ [mypy] -python_version = 3.7 +python_version = 3.8 pretty = true show_error_codes = true show_error_context = true diff --git a/tests/tween_test.py b/tests/tween_test.py index 1532082..d8012bc 100644 --- a/tests/tween_test.py +++ b/tests/tween_test.py @@ -90,7 +90,8 @@ def test_zipkin_tween_exception( called, ): """ - If request processing has an exception set response_status_code and http.response.status_code to 500 + If request processing has an exception set + response_status_code and http.response.status_code to 500 """ mock_post_handler_hook = mock.Mock() diff --git a/tox.ini b/tox.ini index 3024d94..d3325e7 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = pre-commit, py38, flake8, pre-commit +envlist = pre-commit, py(38,39,310,311,312), flake8, pre-commit [testenv] deps = -rrequirements-dev.txt