|
28 | 28 | "test_elasticsearch/", |
29 | 29 | "utils/", |
30 | 30 | ) |
| 31 | +# Allow building aiohttp when no wheels are available (eg. for recent Python versions) |
| 32 | +INSTALL_ENV = {"AIOHTTP_NO_EXTENSIONS": "1"} |
31 | 33 |
|
32 | 34 |
|
33 | | -@nox.session(python=["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]) |
| 35 | +@nox.session(python=["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]) |
34 | 36 | def test(session): |
35 | | - session.install(".") |
36 | | - session.install("-r", "dev-requirements.txt") |
| 37 | + session.install(".[async,requests]", env=INSTALL_ENV, silent=False) |
| 38 | + session.install("-r", "dev-requirements.txt", silent=False) |
37 | 39 |
|
38 | 40 | python_version = tuple(int(x) for x in session.python.split(".")) |
39 | 41 | junit_xml = os.path.join(SOURCE_DIR, "junit", "elasticsearch-py-junit.xml") |
@@ -77,7 +79,7 @@ def lint(session): |
77 | 79 | session.run("python", "utils/license-headers.py", "check", *SOURCE_FILES) |
78 | 80 |
|
79 | 81 | # Workaround to make '-r' to still work despite uninstalling aiohttp below. |
80 | | - session.install(".[async,requests]") |
| 82 | + session.install(".[async,requests]", env=INSTALL_ENV) |
81 | 83 |
|
82 | 84 | # Run mypy on the package and then the type examples separately for |
83 | 85 | # the two different mypy use-cases, ourselves and our users. |
|
0 commit comments