File
Blob: src/workerd/server/tests/python/vendor_pkg_tests/BUILD
| 1 | load("//src/workerd/server/tests/python:py_wd_test.bzl", "python_test_setup") |
| 2 | load(":vendor_test.bzl", "vendored_py_wd_test") |
| 3 | |
| 4 | python_test_setup() |
| 5 | |
| 6 | vendored_py_wd_test("fastapi") |
| 7 | |
| 8 | vendored_py_wd_test("beautifulsoup4") |
| 9 | |
| 10 | vendored_py_wd_test( |
| 11 | "python-workers-runtime-sdk", |
| 12 | feature_flags = ["enable_python_external_sdk"], |
| 13 | ) |
| 14 | |
| 15 | vendored_py_wd_test( |
| 16 | "python-workers-runtime-sdk-override", |
| 17 | feature_flags = ["disable_python_external_sdk"], |
| 18 | main_py_file = "python-workers-runtime-sdk.py", |
| 19 | test_template = "python-workers-runtime-sdk_vendor.wd-test", |
| 20 | vendored_package_name = "python-workers-runtime-sdk", |
| 21 | ) |
| 22 | |
| 23 | # vendored_py_wd_test("scipy") |
| 24 | |
| 25 | vendored_py_wd_test( |
| 26 | "shapely", |
| 27 | feature_flags = ["python_dedicated_snapshot"], |
| 28 | make_snapshot = True, |
| 29 | python_flags = ["0.28.2"], |
| 30 | use_snapshot = "baseline", |
| 31 | ) |
| 32 | |
| 33 | # Note: the `existing_dedicated` tests verify that a dedicated snapshot which has been deployed to |
| 34 | # production continues to work. Because of this the snapshot should never be changed and should |
| 35 | # remain the same to ensure Workers in production continue to work. |
| 36 | vendored_py_wd_test( |
| 37 | "existing_dedicated_fastapi", |
| 38 | feature_flags = ["python_dedicated_snapshot"], |
| 39 | make_snapshot = False, |
| 40 | python_flags = ["0.28.2"], |
| 41 | use_snapshot = "dedicated_fastapi", |
| 42 | vendored_package_name = "fastapi", |
| 43 | ) |
| 44 | |
| 45 | exports_files(["generate_modules.py"]) |