Skip to content

Commit 70f6475

Browse files
authored
Fixup tests for Python 3.12.0rc1 (#1895)
* Fixup tests for Python 3.12.0rc1 * Downgrade wrapt in distribution requirements.txt
1 parent e29f762 commit 70f6475

File tree

5 files changed

+24
-5
lines changed

5 files changed

+24
-5
lines changed

.ci/.matrix_exclude.yml

+19
Original file line numberDiff line numberDiff line change
@@ -250,3 +250,22 @@ exclude:
250250
FRAMEWORK: grpc-1.24
251251
- VERSION: python-3.12-rc
252252
FRAMEWORK: grpc-1.24
253+
# py3.12
254+
- VERSION: python-3.12-rc
255+
FRAMEWORK: pymssql-newest # no wheels available yet
256+
- VERSION: python-3.12-rc
257+
FRAMEWORK: cassandra-newest # no wheels available yet
258+
- VERSION: python-3.12-rc
259+
FRAMEWORK: aiohttp-newest # no wheels available yet
260+
- VERSION: python-3.12-rc
261+
FRAMEWORK: elasticsearch-7 # relies on aiohttp
262+
- VERSION: python-3.12-rc
263+
FRAMEWORK: elasticsearch-8 # relies on aiohttp
264+
- VERSION: python-3.12-rc
265+
FRAMEWORK: aiobotocore-newest # relies on aiohttp
266+
- VERSION: python-3.12-rc
267+
FRAMEWORK: sanic-20.12 # no wheels available yet
268+
- VERSION: python-3.12-rc
269+
FRAMEWORK: sanic-newest # no wheels available yet
270+
- VERSION: python-3.12-rc
271+
FRAMEWORK: grpc-newest # no wheels available yet

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ test:
1111
# delete any __pycache__ folders to avoid hard-to-debug caching issues
1212
find . -type f -name '*.py[co]' -delete -o -type d -name __pycache__ -delete
1313
# pypy3 should be added to the first `if` once it supports py3.7
14-
if [[ "$$PYTHON_VERSION" =~ ^(3.7|3.8|3.9|3.10|3.11|nightly)$$ ]] ; then \
14+
if [[ "$$PYTHON_VERSION" =~ ^(3.7|3.8|3.9|3.10|3.11|3.12|nightly)$$ ]] ; then \
1515
echo "Python 3.7+, with asyncio"; \
1616
pytest -v $(PYTEST_ARGS) --showlocals $(PYTEST_MARKER) $(PYTEST_JUNIT); \
1717
else \

dev-utils/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# These are the pinned requirements for the lambda layer/docker image
22
certifi==2023.7.22
33
urllib3==1.26.16
4-
wrapt==1.15.0
4+
wrapt==1.14.1

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ zip_safe = false
3838
install_requires =
3939
urllib3!=2.0.0,<3.0.0
4040
certifi
41-
wrapt>=1.14.1
41+
wrapt>=1.14.1,<1.15.0 # https://github.com/elastic/apm-agent-python/issues/1894
4242
ecs_logging
4343
test_suite=tests
4444

tests/requirements/reqs-base.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pytest==7.0.1 ; python_version == '3.6'
2-
pytest==7.3.0 ; python_version > '3.6'
2+
pytest==7.4.0 ; python_version > '3.6'
33
pytest-random-order==1.1.0
44
pytest-django==4.4.0
55
coverage==6.2 ; python_version == '3.6'
@@ -25,7 +25,7 @@ mock
2525
pytz
2626
ecs_logging
2727
structlog
28-
wrapt>=1.14.1
28+
wrapt>=1.14.1,<1.15.0
2929

3030
pytest-asyncio==0.21.0 ; python_version >= '3.7'
3131
asynctest==0.13.0 ; python_version >= '3.7'

0 commit comments

Comments
 (0)