Skip to content

Commit

Permalink
Run import tests on against each package bundle version.
Browse files Browse the repository at this point in the history
  • Loading branch information
dom96 committed Feb 3, 2025
1 parent 2e2a0cd commit e327744
Show file tree
Hide file tree
Showing 13 changed files with 486 additions and 221 deletions.
167 changes: 0 additions & 167 deletions build/pyodide_bucket.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -5,170 +5,3 @@ PYODIDE_PACKAGE_BUCKET_URL = "https://pyodide-packages.runtime-playground.worker
PYODIDE_GITHUB_RELEASE_URL = "https://github.com/cloudflare/pyodide-build-scripts/releases/download/20240513.2/"
PYODIDE_PACKAGES_TAR_ZIP_SHA256 = "b71d4c3cee3b6bd12969a788545f4159fb1eb984a7ca5de2493c4fa8479beeec"
PYODIDE_ALL_WHEELS_ZIP_SHA256 = "c17feb45fdcb4b41eab9c719e69c9e062a8fc88344fcb6bbd7de0de92c3ae660"

# IMPORTANT: when updating this file in git, check the diff to make sure none of the imports below are being removed unexpectedly
PYODIDE_IMPORTS_TO_TEST = {
"aiohttp": [
"aiohttp",
],
"aiosignal": [
"aiosignal",
],
"annotated-types": [
"annotated_types",
],
"anyio": [
"anyio",
],
"async-timeout": [
"async_timeout",
],
"attrs": [
"attr",
"attrs",
],
"certifi": [
"certifi",
],
"charset-normalizer": [
"charset_normalizer",
],
"distro": [
"distro",
],
"fastapi": [
"fastapi",
],
"frozenlist": [
"frozenlist",
],
"h11": [
"h11",
],
"hashlib": [
"_hashlib",
],
"httpcore": [
"httpcore",
],
"httpx": [
"httpx",
],
"idna": [
"idna",
],
"jsonpatch": [
"jsonpatch",
],
"jsonpointer": [
"jsonpointer",
],
"langchain": [
"langchain",
],
"langchain-core": [
"langchain_core",
"langchain_core.callbacks",
"langchain_core.language_models.llms",
"langchain_core.output_parsers",
"langchain_core.prompts",
],
"langchain_openai": [
"langchain_openai",
"langchain_openai.chat_models.base",
],
"langsmith": [
"langsmith",
"langsmith.client",
],
"lzma": [
"_lzma",
"lzma",
],
"micropip": [
"micropip",
],
"multidict": [
"multidict",
],
"numpy": [
"numpy",
],
"openai": [
"openai",
],
"packaging": [
"packaging",
],
"pydantic": [
"pydantic",
],
"pydantic_core": [
"pydantic_core",
],
"pydecimal": [
"_pydecimal",
],
"pydoc_data": [
"pydoc_data",
],
"pyyaml": [
"_yaml",
"yaml",
],
"regex": [
"regex",
],
"requests": [
"requests",
],
"six": [
"six",
],
"sniffio": [
"sniffio",
],
"sqlite3": [
"_sqlite3",
"sqlite3",
],
"ssl": [
"_ssl",
"ssl",
],
"starlette": [
"starlette",
"starlette.applications",
"starlette.authentication",
"starlette.background",
"starlette.concurrency",
"starlette.config",
"starlette.convertors",
"starlette.datastructures",
"starlette.endpoints",
"starlette.exceptions",
"starlette.formparsers",
"starlette.middleware",
"starlette.middleware.base",
"starlette.requests",
"starlette.responses",
"starlette.routing",
"starlette.schemas",
],
"tenacity": [
"tenacity",
],
"tiktoken": [
"tiktoken",
"tiktoken_ext",
],
"typing-extensions": [
"typing_extensions",
],
"urllib3": [
"urllib3",
],
"yarl": [
"yarl",
],
}
168 changes: 168 additions & 0 deletions build/python/packages_20240829_4.bzl
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
# This file is automatically generated by the Pyodide build script repo
# (https://github.com/cloudflare/pyodide-build-scripts) and should not be manually modified.

PACKAGES_20240829_4 = {
"aiohttp": [
"aiohttp",
],
"aiosignal": [
"aiosignal",
],
"annotated-types": [
"annotated_types",
],
"anyio": [
"anyio",
],
"async-timeout": [
"async_timeout",
],
"attrs": [
"attr",
"attrs",
],
"certifi": [
"certifi",
],
"charset-normalizer": [
"charset_normalizer",
],
"distro": [
"distro",
],
"fastapi": [
"fastapi",
],
"frozenlist": [
"frozenlist",
],
"h11": [
"h11",
],
"hashlib": [
"_hashlib",
],
"httpcore": [
"httpcore",
],
"httpx": [
"httpx",
],
"idna": [
"idna",
],
"jsonpatch": [
"jsonpatch",
],
"jsonpointer": [
"jsonpointer",
],
"langchain": [
"langchain",
],
"langchain-core": [
"langchain_core",
"langchain_core.callbacks",
"langchain_core.language_models.llms",
"langchain_core.output_parsers",
"langchain_core.prompts",
],
"langchain_openai": [
"langchain_openai",
"langchain_openai.chat_models.base",
],
"langsmith": [
"langsmith",
"langsmith.client",
],
"lzma": [
"_lzma",
"lzma",
],
"micropip": [
"micropip",
],
"multidict": [
"multidict",
],
"numpy": [
"numpy",
],
"openai": [
"openai",
],
"packaging": [
"packaging",
],
"pydantic": [
"pydantic",
],
"pydantic_core": [
"pydantic_core",
],
"pydecimal": [
"_pydecimal",
],
"pydoc_data": [
"pydoc_data",
],
"pyyaml": [
"_yaml",
"yaml",
],
"regex": [
"regex",
],
"requests": [
"requests",
],
"six": [
"six",
],
"sniffio": [
"sniffio",
],
"sqlite3": [
"_sqlite3",
"sqlite3",
],
"ssl": [
"_ssl",
"ssl",
],
"starlette": [
"starlette",
"starlette.applications",
"starlette.authentication",
"starlette.background",
"starlette.concurrency",
"starlette.config",
"starlette.convertors",
"starlette.datastructures",
"starlette.endpoints",
"starlette.exceptions",
"starlette.formparsers",
"starlette.middleware",
"starlette.middleware.base",
"starlette.requests",
"starlette.responses",
"starlette.routing",
"starlette.schemas",
],
"tenacity": [
"tenacity",
],
"tiktoken": [
"tiktoken",
"tiktoken_ext",
],
"typing-extensions": [
"typing_extensions",
],
"urllib3": [
"urllib3",
],
"yarl": [
"yarl",
],
}
Loading

0 comments on commit e327744

Please sign in to comment.