-
Notifications
You must be signed in to change notification settings - Fork 144
Enable testing on Python 3.12 #400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
2b0eef7
50b2ede
e561e3b
3989c7d
0c32b79
2a682c9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,46 +1,46 @@ | ||||||
[tox] | ||||||
skip_missing_interpreters = True | ||||||
envlist = | ||||||
py{37,38,39,310,311}-core | ||||||
py{37,38,39,310,311,312}-core | ||||||
|
||||||
py{37,38,39,310,311}-ext-aiobotocore | ||||||
py{37,38,39,310,311,312}-ext-aiobotocore | ||||||
|
||||||
py{37,38,39,310,311}-ext-aiohttp | ||||||
py{37,38,39,310,311,312}-ext-aiohttp | ||||||
|
||||||
py{37,38,39,310,311}-ext-botocore | ||||||
py{37,38,39,310,311,312}-ext-botocore | ||||||
|
||||||
py{37,38,39,310,311}-ext-bottle | ||||||
py{37,38,39,310,311,312}-ext-bottle | ||||||
|
||||||
py{37,38,39}-ext-django-2 | ||||||
|
||||||
py{37,38,39,310}-ext-django-3 | ||||||
|
||||||
; Django4 is only for python 3.8+ | ||||||
py{38,39,310,311}-ext-django-4 | ||||||
py{38,39,310,311,312}-ext-django-4 | ||||||
|
||||||
py{37,38,39,310,311}-ext-flask | ||||||
py{37,38,39,310,311,312}-ext-flask | ||||||
|
||||||
py{37,38,39,310,311}-ext-flask_sqlalchemy | ||||||
py{37,38,39,310,311,312}-ext-flask_sqlalchemy | ||||||
|
||||||
py{37,38,39,310,311}-ext-httplib | ||||||
py{37,38,39,310,311,312}-ext-httplib | ||||||
|
||||||
py{37,38,39,310,311}-ext-httpx | ||||||
py{37,38,39,310,311,312}-ext-httpx | ||||||
|
||||||
py{37,38,39,310,311}-ext-pg8000 | ||||||
py{37,38,39,310,311,312}-ext-pg8000 | ||||||
|
||||||
py{37,38,39,310,311}-ext-psycopg2 | ||||||
py{37,38,39,310,311,312}-ext-psycopg2 | ||||||
|
||||||
py{37,38,39,310,311}-ext-pymysql | ||||||
py{37,38,39,310,311,312}-ext-pymysql | ||||||
|
||||||
py{37,38,39,310,311}-ext-pynamodb | ||||||
py{37,38,39,310,311,312}-ext-pynamodb | ||||||
|
||||||
py{37,38,39,310,311}-ext-requests | ||||||
py{37,38,39,310,311,312}-ext-requests | ||||||
|
||||||
py{37,38,39,310,311}-ext-sqlalchemy | ||||||
py{37,38,39,310,311,312}-ext-sqlalchemy | ||||||
|
||||||
py{37,38,39,310,311}-ext-sqlalchemy_core | ||||||
py{37,38,39,310,311,312}-ext-sqlalchemy_core | ||||||
|
||||||
py{37,38,39,310,311}-ext-sqlite3 | ||||||
py{37,38,39,310,311,312}-ext-sqlite3 | ||||||
|
||||||
[testenv] | ||||||
passenv = TOXENV,CI,CODECOV_* | ||||||
|
@@ -56,7 +56,10 @@ deps = | |||||
wrapt | ||||||
|
||||||
; Python 3.5+ only deps | ||||||
py{37,38,39,310,311}: pytest-asyncio | ||||||
py{37,38,39,310,311,312}: pytest-asyncio | ||||||
|
||||||
; For pkg_resources | ||||||
py{37,38,39,310,311,312}: setuptools | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am still not very clear on why this dependency is needed. You mentioned it was added since a test imports There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Specifically:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably only “necessary” on Python 3.12 though:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps, but it’s not harmful on others. The dependency is still real; it’s just allowed to be implicit. I guess I can change to |
||||||
|
||||||
ext-aiobotocore: aiobotocore >= 0.10.0 | ||||||
ext-aiobotocore: pytest-asyncio | ||||||
|
@@ -89,15 +92,15 @@ deps = | |||||
ext-django-4: Django >=4.0,<5.0 | ||||||
ext-django: django-fake-model | ||||||
|
||||||
py{37,38,39,310,311}-ext-pynamodb: pynamodb >=3.3.1 | ||||||
py{37,38,39,310,311,312}-ext-pynamodb: pynamodb >=3.3.1 | ||||||
|
||||||
ext-psycopg2: psycopg2 | ||||||
ext-psycopg2: testing.postgresql | ||||||
|
||||||
ext-pg8000: pg8000 <= 1.20.0 | ||||||
ext-pg8000: testing.postgresql | ||||||
|
||||||
py{37,38,39,310,311}-ext-pymysql: pymysql >= 1.0.0 | ||||||
py{37,38,39,310,311,312}-ext-pymysql: pymysql >= 1.0.0 | ||||||
|
||||||
setenv = | ||||||
DJANGO_SETTINGS_MODULE = tests.ext.django.app.settings | ||||||
|
@@ -107,7 +110,7 @@ setenv = | |||||
commands = | ||||||
coverage erase | ||||||
|
||||||
py{37,38,39,310,311}-core: coverage run --append --source aws_xray_sdk -m pytest --ignore tests/ext {posargs} | ||||||
py{37,38,39,310,311,312}-core: coverage run --append --source aws_xray_sdk -m pytest --ignore tests/ext {posargs} | ||||||
|
||||||
ext-aiobotocore: coverage run --append --source aws_xray_sdk -m pytest tests/ext/aiobotocore {posargs} | ||||||
|
||||||
|
@@ -139,7 +142,7 @@ commands = | |||||
|
||||||
ext-sqlalchemy: coverage run --append --source aws_xray_sdk -m pytest tests/ext/sqlalchemy {posargs} | ||||||
|
||||||
py{37,38,39,310,311}-ext-sqlalchemy_core: coverage run --append --source aws_xray_sdk -m pytest tests/ext/sqlalchemy_core {posargs} | ||||||
py{37,38,39,310,311,312}-ext-sqlalchemy_core: coverage run --append --source aws_xray_sdk -m pytest tests/ext/sqlalchemy_core {posargs} | ||||||
|
||||||
ext-sqlite3: coverage run --append --source aws_xray_sdk -m pytest tests/ext/sqlite3 {posargs} | ||||||
|
||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI: Should have worked at the time with
3.12.0-beta - 3.12
. But it's available now, see https://github.com/actions/python-versions/blob/main/versions-manifest.jsonMaybe rebase to trigger a rerun?