Skip to content

Commit

Permalink
feat: add support for python 3.12 (#6626)
Browse files Browse the repository at this point in the history
Adds support for Python 3.12.

## Checklist

- [x] Change(s) are motivated and described in the PR description.
- [x] Testing strategy is described if automated tests are not included
in the PR.
- [x] Risk is outlined (performance impact, potential for breakage,
maintainability, etc).
- [x] Change is maintainable (easy to change, telemetry, documentation).
- [x] [Library release note
guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html)
are followed. If no release note is required, add label
`changelog/no-changelog`.
- [x] Documentation is included (in-code, generated user docs, [public
corp docs](https://github.com/DataDog/documentation/)).
- [x] Backport labels are set (if
[applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting))

## Reviewer Checklist

- [x] Title is accurate.
- [x] No unnecessary changes are introduced.
- [x] Description motivates each change.
- [x] Avoids breaking
[API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces)
changes unless absolutely necessary.
- [x] Testing strategy adequately addresses listed risk(s).
- [x] Change is maintainable (easy to change, telemetry, documentation).
- [x] Release note makes sense to a user of the library.
- [x] Reviewer has explicitly acknowledged and discussed the performance
implications of this PR as reported in the benchmarks PR comment.
- [x] Backport labels are set in a manner that is consistent with the
[release branch maintenance
policy](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)

---------

Co-authored-by: Tahir H. Butt <tahir.butt@datadoghq.com>
Co-authored-by: Gabriele N. Tornetta <gabriele.tornetta@datadoghq.com>
Co-authored-by: Emmett Butler <emmett.butler321@gmail.com>
Co-authored-by: ZStriker19 <zach.groves@datadoghq.com>
Co-authored-by: Munir Abdinur <munir.abdinur@datadoghq.com>
Co-authored-by: Emmett Butler <723615+emmettbutler@users.noreply.github.com>
  • Loading branch information
7 people committed Sep 15, 2023
1 parent 5a2c0f9 commit bfa2415
Show file tree
Hide file tree
Showing 241 changed files with 4,291 additions and 1,548 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.templ.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ commands:
description: "Install riot"
steps:
# Make sure we install and run riot on Python 3
- run: pip3 install riot==0.17.7
- run: pip3 install riot==0.19.0

setup_hatch:
description: "Install hatch"
Expand Down
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- run:
name: Generate config
command: |
pip3 install riot==0.17.7
pip3 install riot==0.19.0
riot -v run --pass-env -s circleci-gen-config -- -v
- continuation/continue:
configuration_path: .circleci/config.gen.yml
Expand Down
22 changes: 0 additions & 22 deletions .riot/requirements/103019c.txt

This file was deleted.

18 changes: 18 additions & 0 deletions .riot/requirements/1036992.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile --no-annotate .riot/requirements/1036992.in
#
attrs==23.1.0
coverage[toml]==7.2.7
hypothesis==6.45.0
iniconfig==2.0.0
mock==5.1.0
opentracing==2.4.0
packaging==23.1
pluggy==1.2.0
pytest==7.4.0
pytest-cov==4.1.0
pytest-mock==3.11.1
sortedcontainers==2.4.0
30 changes: 30 additions & 0 deletions .riot/requirements/1037a9e.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile --no-annotate .riot/requirements/1037a9e.in
#
attrs==23.1.0
blinker==1.6.2
certifi==2023.7.22
charset-normalizer==3.2.0
click==8.1.6
coverage[toml]==7.2.7
flask==2.3.2
hypothesis==6.45.0
idna==3.4
iniconfig==2.0.0
itsdangerous==2.1.2
jinja2==3.1.2
markupsafe==2.1.3
mock==5.1.0
opentracing==2.4.0
packaging==23.1
pluggy==1.2.0
pytest==7.4.0
pytest-cov==4.1.0
pytest-mock==3.11.1
requests==2.31.0
sortedcontainers==2.4.0
urllib3==2.0.4
werkzeug==2.3.6
18 changes: 18 additions & 0 deletions .riot/requirements/1043965.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile --no-annotate .riot/requirements/1043965.in
#
attrs==23.1.0
coverage[toml]==7.2.7
hypothesis==6.45.0
iniconfig==2.0.0
mock==5.1.0
opentracing==2.4.0
packaging==23.1
pluggy==1.2.0
pytest==7.4.0
pytest-cov==4.1.0
pytest-mock==3.11.1
sortedcontainers==2.4.0
29 changes: 0 additions & 29 deletions .riot/requirements/1085954.txt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile --no-annotate --resolver=backtracking .riot/requirements/1da96d1.in
# pip-compile --no-annotate --resolver=backtracking .riot/requirements/8071a9d.in
#
attrs==22.2.0
coverage[toml]==7.2.2
httpretty==0.9.7
hypothesis==6.45.0
iniconfig==2.0.0
mock==5.0.1
msgpack==1.0.5
mysqlclient==2.1.1
opentracing==2.4.0
packaging==23.0
pluggy==1.0.0
pytest==7.2.2
pytest-cov==4.0.0
pytest-mock==3.10.0
six==1.16.0
sortedcontainers==2.4.0
structlog==22.3.0
18 changes: 18 additions & 0 deletions .riot/requirements/10faaef.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile --no-annotate .riot/requirements/10faaef.in
#
attrs==23.1.0
coverage[toml]==7.2.7
hypothesis==6.45.0
iniconfig==2.0.0
mock==5.1.0
opentracing==2.4.0
packaging==23.1
pluggy==1.2.0
pytest==7.4.0
pytest-cov==4.1.0
pytest-mock==3.11.1
sortedcontainers==2.4.0
33 changes: 33 additions & 0 deletions .riot/requirements/10fb966.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --no-annotate .riot/requirements/10fb966.in
#
attrs==23.1.0
certifi==2023.7.22
charset-normalizer==3.2.0
click==8.1.7
coverage[toml]==7.3.0
exceptiongroup==1.1.3
flask==2.2.3
gunicorn==21.2.0
httpretty==1.0.5
hypothesis==6.45.0
idna==3.4
iniconfig==2.0.0
itsdangerous==2.1.2
jinja2==3.1.2
markupsafe==2.1.3
mock==5.1.0
opentracing==2.4.0
packaging==23.1
pluggy==1.3.0
pytest==7.4.0
pytest-cov==4.1.0
pytest-mock==3.11.1
requests==2.31.0
sortedcontainers==2.4.0
tomli==2.0.1
urllib3==2.0.4
werkzeug==2.3.7
23 changes: 23 additions & 0 deletions .riot/requirements/1108166.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile --no-annotate .riot/requirements/1108166.in
#
attrs==23.1.0
beautifulsoup4==4.12.2
coverage[toml]==7.2.7
hypothesis==6.45.0
iniconfig==2.0.0
mock==5.1.0
opentracing==2.4.0
packaging==23.1
pluggy==1.2.0
pytest==7.4.0
pytest-cov==4.1.0
pytest-mock==3.11.1
sortedcontainers==2.4.0
soupsieve==2.4.1
waitress==2.1.2
webob==1.8.7
webtest==3.0.0
56 changes: 56 additions & 0 deletions .riot/requirements/115000b.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile --no-annotate .riot/requirements/115000b.in
#
asgiref==3.7.2
attrs==23.1.0
autobahn==23.6.2
automat==22.10.0
certifi==2023.7.22
cffi==1.15.1
channels==4.0.0
charset-normalizer==3.2.0
constantly==15.1.0
coverage[toml]==7.2.7
cryptography==41.0.3
daphne==4.0.0
django==4.2.4
django-pylibmc==0.6.1
django-redis==4.5.0
hyperlink==21.0.0
hypothesis==6.45.0
idna==3.4
incremental==22.10.0
iniconfig==2.0.0
mock==5.1.0
opentracing==2.4.0
packaging==23.1
pluggy==1.2.0
psycopg==3.1.10
psycopg2-binary==2.9.7
pyasn1==0.5.0
pyasn1-modules==0.3.0
pycparser==2.21
pylibmc==1.6.3
pyopenssl==23.2.0
pytest==7.4.0
pytest-cov==4.1.0
pytest-django==3.10.0
pytest-mock==3.11.1
python-memcached==1.59
redis==2.10.6
requests==2.31.0
service-identity==23.1.0
six==1.16.0
sortedcontainers==2.4.0
sqlparse==0.4.4
twisted[tls]==22.10.0
txaio==23.1.1
typing-extensions==4.7.1
urllib3==2.0.4
zope-interface==6.0

# The following packages are considered to be unsafe in a requirements file:
# setuptools
35 changes: 35 additions & 0 deletions .riot/requirements/115be7b.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# pip-compile --no-annotate .riot/requirements/115be7b.in
#
attrs==23.1.0
certifi==2023.7.22
charset-normalizer==3.2.0
click==8.1.7
coverage[toml]==7.3.0
exceptiongroup==1.1.3
flask==2.2.3
gunicorn==21.2.0
httpretty==1.0.5
hypothesis==6.45.0
idna==3.4
importlib-metadata==6.8.0
iniconfig==2.0.0
itsdangerous==2.1.2
jinja2==3.1.2
markupsafe==2.1.3
mock==5.1.0
opentracing==2.4.0
packaging==23.1
pluggy==1.3.0
pytest==7.4.0
pytest-cov==4.1.0
pytest-mock==3.11.1
requests==2.31.0
sortedcontainers==2.4.0
tomli==2.0.1
urllib3==2.0.4
werkzeug==2.3.7
zipp==3.16.2
24 changes: 24 additions & 0 deletions .riot/requirements/11673f8.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile --no-annotate .riot/requirements/11673f8.in
#
algoliasearch==2.6.3
attrs==23.1.0
certifi==2023.7.22
charset-normalizer==3.2.0
coverage[toml]==7.2.7
hypothesis==6.45.0
idna==3.4
iniconfig==2.0.0
mock==5.1.0
opentracing==2.4.0
packaging==23.1
pluggy==1.2.0
pytest==7.4.0
pytest-cov==4.1.0
pytest-mock==3.11.1
requests==2.31.0
sortedcontainers==2.4.0
urllib3==2.0.4
Loading

0 comments on commit bfa2415

Please sign in to comment.