| 1 |
# Hyperscan does not have a wheel for Python 3.15 yet. |
| 2 |
# Hyperscan does not have wheels for PyPy 3.9 and 3.11. |
| 3 |
env_list = [ |
| 4 |
"py39", |
| 5 |
"py310", |
| 6 |
"py311", |
| 7 |
"py312", |
| 8 |
"py313", |
| 9 |
"py314", |
| 10 |
"py315", |
| 11 |
"py39-hyperscan", |
| 12 |
"py310-hyperscan", |
| 13 |
"py311-hyperscan", |
| 14 |
"py312-hyperscan", |
| 15 |
"py313-hyperscan", |
| 16 |
"py314-hyperscan", |
| 17 |
"py39-re2", |
| 18 |
"py310-re2", |
| 19 |
"py311-re2", |
| 20 |
"py312-re2", |
| 21 |
"py313-re2", |
| 22 |
"py314-re2", |
| 23 |
"pypy39", |
| 24 |
"pypy310", |
| 25 |
"pypy311", |
| 26 |
"pypy310-hyperscan", |
| 27 |
"pypy311-hyperscan", |
| 28 |
"docs" |
| 29 |
] |
| 30 |
|
| 31 |
[env_run_base] |
| 32 |
package = "wheel" |
| 33 |
commands = [["python", "-m", "unittest", "discover", "-t", ".", "-s", "tests/"]] |
| 34 |
|
| 35 |
[env.docs] |
| 36 |
base_python = ["py313"] |
| 37 |
commands = [["sphinx-build", "-aWEnqb", "html", "doc/source", "doc/build"]] |
| 38 |
deps = ["-rdoc/requirements.txt"] |
| 39 |
|
| 40 |
[env.ci-base] |
| 41 |
# Placeholder env for base (only simple backend) for CI. |
| 42 |
|
| 43 |
[env.ci-hyperscan] |
| 44 |
# Hyperscan env for CI. |
| 45 |
extras = ["hyperscan"] |
| 46 |
install_command = ["python", "-I", "-m", "pip", "install", "--only-binary=hyperscan", "{opts}", "{packages}"] |
| 47 |
|
| 48 |
[env.ci-re2] |
| 49 |
# Re2 env for CI. |
| 50 |
extras = ["re2"] |
| 51 |
install_command = ["python", "-I", "-m", "pip", "install", "--only-binary=google-re2", "{opts}", "{packages}"] |
| 52 |
|
| 53 |
[env.py39-hyperscan] |
| 54 |
extras = ["hyperscan"] |
| 55 |
install_command = ["python", "-I", "-m", "pip", "install", "--only-binary=hyperscan", "{opts}", "{packages}"] |
| 56 |
|
| 57 |
[env.py39-re2] |
| 58 |
extras = ["re2"] |
| 59 |
install_command = ["python", "-I", "-m", "pip", "install", "--only-binary=google-re2", "{opts}", "{packages}"] |
| 60 |
|
| 61 |
[env.py310-hyperscan] |
| 62 |
extras = ["hyperscan"] |
| 63 |
install_command = ["python", "-I", "-m", "pip", "install", "--only-binary=hyperscan", "{opts}", "{packages}"] |
| 64 |
|
| 65 |
[env.py310-re2] |
| 66 |
extras = ["re2"] |
| 67 |
install_command = ["python", "-I", "-m", "pip", "install", "--only-binary=google-re2", "{opts}", "{packages}"] |
| 68 |
|
| 69 |
[env.py311-hyperscan] |
| 70 |
extras = ["hyperscan"] |
| 71 |
install_command = ["python", "-I", "-m", "pip", "install", "--only-binary=hyperscan", "{opts}", "{packages}"] |
| 72 |
|
| 73 |
[env.py311-re2] |
| 74 |
extras = ["re2"] |
| 75 |
install_command = ["python", "-I", "-m", "pip", "install", "--only-binary=google-re2", "{opts}", "{packages}"] |
| 76 |
|
| 77 |
[env.py312-hyperscan] |
| 78 |
extras = ["hyperscan"] |
| 79 |
install_command = ["python", "-I", "-m", "pip", "install", "--only-binary=hyperscan", "{opts}", "{packages}"] |
| 80 |
|
| 81 |
[env.py312-re2] |
| 82 |
extras = ["re2"] |
| 83 |
install_command = ["python", "-I", "-m", "pip", "install", "--only-binary=google-re2", "{opts}", "{packages}"] |
| 84 |
|
| 85 |
[env.py313-hyperscan] |
| 86 |
extras = ["hyperscan"] |
| 87 |
install_command = ["python", "-I", "-m", "pip", "install", "--only-binary=hyperscan", "{opts}", "{packages}"] |
| 88 |
|
| 89 |
[env.py313-re2] |
| 90 |
extras = ["re2"] |
| 91 |
install_command = ["python", "-I", "-m", "pip", "install", "--only-binary=google-re2", "{opts}", "{packages}"] |
| 92 |
|
| 93 |
[env.py314-hyperscan] |
| 94 |
extras = ["hyperscan"] |
| 95 |
install_command = ["python", "-I", "-m", "pip", "install", "--only-binary=hyperscan", "{opts}", "{packages}"] |
| 96 |
|
| 97 |
[env.py314-re2] |
| 98 |
extras = ["re2"] |
| 99 |
install_command = ["python", "-I", "-m", "pip", "install", "--only-binary=google-re2", "{opts}", "{packages}"] |
| 100 |
|
| 101 |
## Compiling hyperscan fails on PyPy 3.9. |
| 102 |
#[env.pypy39-hyperscan] |
| 103 |
#extras = ["hyperscan"] |
| 104 |
|
| 105 |
[env.pypy310-hyperscan] |
| 106 |
# Compile hyperscan. |
| 107 |
extras = ["hyperscan"] |
| 108 |
|
| 109 |
[env.pypy311-hyperscan] |
| 110 |
# Compile hyperscan. |
| 111 |
extras = ["hyperscan"] |