| module(name = "integration_test") | |
| bazel_dep(name = "package_metadata", version = "0.0.7") | |
| bazel_dep(name = "rules_python", version = "0.0.0") | |
| local_path_override( | |
| module_name = "rules_python", | |
| path = "../../..", | |
| ) | |
| python = use_extension("@rules_python//python/extensions:python.bzl", "python") | |
| python.toolchain( | |
| python_version = "3.14", | |
| ) | |
| use_repo(python, pbs_host = "python_3_14_host") | |
| pip_archive = use_repo_rule("@rules_python//python/private/pypi:pip_archive.bzl", "pip_archive") | |
| DEP_TEMPLATE = "@integration_test//:{name}_{target}" | |
| pip_archive( | |
| name = "pip_sdist_archive", | |
| dep_template = DEP_TEMPLATE, | |
| filename = "requests-2.34.2.tar.gz", | |
| python_interpreter_target = "@pbs_host//:python", | |
| requirement = "requests", | |
| # https://pypi.org/project/requests/#requests-2.34.2.tar.gz | |
| sha256 = "f288924cae4e29463698d6d60bc6a4da69c89185ad1e0bcc4104f584e960b9ed", | |
| urls = [ | |
| "https://files.pythonhosted.org/packages/ac/c3/e2a2b89f2d3e2179abd6d00ebd70bff6273f37fb3e0cc209f48b39d00cbf/requests-2.34.2.tar.gz", | |
| ], | |
| ) | |
| pip_archive( | |
| name = "pip_archive", | |
| dep_template = DEP_TEMPLATE, | |
| python_interpreter_target = "@pbs_host//:python", | |
| requirement = "requests", | |
| ) | |
| whl_archive = use_repo_rule("@rules_python//python/private/pypi:whl_archive.bzl", "whl_archive") | |
| whl_archive( | |
| name = "whl_archive", | |
| dep_template = DEP_TEMPLATE, | |
| filename = "requests-2.34.2-py3-none-any.whl", | |
| # https://pypi.org/project/requests/#requests-2.34.2-py3-none-any.whl | |
| requirement = "requests", | |
| sha256 = "2a0d60c172f83ac6ab31e4554906c0f3b3588d37b5cb939b1c061f4907e278e0", | |
| urls = [ | |
| "https://files.pythonhosted.org/packages/a0/f4/c67b0b3f1b9245e8d266f0f112c500d50e5b4e83cb6f3b71b6528104182a/requests-2.34.2-py3-none-any.whl", | |
| ], | |
| ) | |
| whl_deps_repo = use_repo_rule("@rules_python//python/private/pypi:whl_deps_repo.bzl", "whl_deps_repo") | |
| whl_deps_repo( | |
| name = "whl_deps_repo", | |
| dep_template = DEP_TEMPLATE, | |
| metadata_file = "@whl_archive//:metadata.json", | |
| requirement = "requests", | |
| ) |