Skip to content

Commit 6c9b212

Browse files
committed
Run import tests against each package bundle version
This is the last part of #3451
1 parent 065d723 commit 6c9b212

File tree

7 files changed

+461
-190
lines changed

7 files changed

+461
-190
lines changed

build/pyodide_bucket.bzl

-167
Original file line numberDiff line numberDiff line change
@@ -5,170 +5,3 @@ PYODIDE_PACKAGE_BUCKET_URL = "https://pyodide-packages.runtime-playground.worker
55
PYODIDE_GITHUB_RELEASE_URL = "https://github.com/cloudflare/pyodide-build-scripts/releases/download/20240513.2/"
66
PYODIDE_PACKAGES_TAR_ZIP_SHA256 = "b71d4c3cee3b6bd12969a788545f4159fb1eb984a7ca5de2493c4fa8479beeec"
77
PYODIDE_ALL_WHEELS_ZIP_SHA256 = "c17feb45fdcb4b41eab9c719e69c9e062a8fc88344fcb6bbd7de0de92c3ae660"
8-
9-
# IMPORTANT: when updating this file in git, check the diff to make sure none of the imports below are being removed unexpectedly
10-
PYODIDE_IMPORTS_TO_TEST = {
11-
"aiohttp": [
12-
"aiohttp",
13-
],
14-
"aiosignal": [
15-
"aiosignal",
16-
],
17-
"annotated-types": [
18-
"annotated_types",
19-
],
20-
"anyio": [
21-
"anyio",
22-
],
23-
"async-timeout": [
24-
"async_timeout",
25-
],
26-
"attrs": [
27-
"attr",
28-
"attrs",
29-
],
30-
"certifi": [
31-
"certifi",
32-
],
33-
"charset-normalizer": [
34-
"charset_normalizer",
35-
],
36-
"distro": [
37-
"distro",
38-
],
39-
"fastapi": [
40-
"fastapi",
41-
],
42-
"frozenlist": [
43-
"frozenlist",
44-
],
45-
"h11": [
46-
"h11",
47-
],
48-
"hashlib": [
49-
"_hashlib",
50-
],
51-
"httpcore": [
52-
"httpcore",
53-
],
54-
"httpx": [
55-
"httpx",
56-
],
57-
"idna": [
58-
"idna",
59-
],
60-
"jsonpatch": [
61-
"jsonpatch",
62-
],
63-
"jsonpointer": [
64-
"jsonpointer",
65-
],
66-
"langchain": [
67-
"langchain",
68-
],
69-
"langchain-core": [
70-
"langchain_core",
71-
"langchain_core.callbacks",
72-
"langchain_core.language_models.llms",
73-
"langchain_core.output_parsers",
74-
"langchain_core.prompts",
75-
],
76-
"langchain_openai": [
77-
"langchain_openai",
78-
"langchain_openai.chat_models.base",
79-
],
80-
"langsmith": [
81-
"langsmith",
82-
"langsmith.client",
83-
],
84-
"lzma": [
85-
"_lzma",
86-
"lzma",
87-
],
88-
"micropip": [
89-
"micropip",
90-
],
91-
"multidict": [
92-
"multidict",
93-
],
94-
"numpy": [
95-
"numpy",
96-
],
97-
"openai": [
98-
"openai",
99-
],
100-
"packaging": [
101-
"packaging",
102-
],
103-
"pydantic": [
104-
"pydantic",
105-
],
106-
"pydantic_core": [
107-
"pydantic_core",
108-
],
109-
"pydecimal": [
110-
"_pydecimal",
111-
],
112-
"pydoc_data": [
113-
"pydoc_data",
114-
],
115-
"pyyaml": [
116-
"_yaml",
117-
"yaml",
118-
],
119-
"regex": [
120-
"regex",
121-
],
122-
"requests": [
123-
"requests",
124-
],
125-
"six": [
126-
"six",
127-
],
128-
"sniffio": [
129-
"sniffio",
130-
],
131-
"sqlite3": [
132-
"_sqlite3",
133-
"sqlite3",
134-
],
135-
"ssl": [
136-
"_ssl",
137-
"ssl",
138-
],
139-
"starlette": [
140-
"starlette",
141-
"starlette.applications",
142-
"starlette.authentication",
143-
"starlette.background",
144-
"starlette.concurrency",
145-
"starlette.config",
146-
"starlette.convertors",
147-
"starlette.datastructures",
148-
"starlette.endpoints",
149-
"starlette.exceptions",
150-
"starlette.formparsers",
151-
"starlette.middleware",
152-
"starlette.middleware.base",
153-
"starlette.requests",
154-
"starlette.responses",
155-
"starlette.routing",
156-
"starlette.schemas",
157-
],
158-
"tenacity": [
159-
"tenacity",
160-
],
161-
"tiktoken": [
162-
"tiktoken",
163-
"tiktoken_ext",
164-
],
165-
"typing-extensions": [
166-
"typing_extensions",
167-
],
168-
"urllib3": [
169-
"urllib3",
170-
],
171-
"yarl": [
172-
"yarl",
173-
],
174-
}

build/python/packages_20240829_4.bzl

+168
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
# This file is automatically generated by the Pyodide build script repo
2+
# (https://github.com/cloudflare/pyodide-build-scripts) and should not be manually modified.
3+
4+
PACKAGES_20240829_4 = {
5+
"aiohttp": [
6+
"aiohttp",
7+
],
8+
"aiosignal": [
9+
"aiosignal",
10+
],
11+
"annotated-types": [
12+
"annotated_types",
13+
],
14+
"anyio": [
15+
"anyio",
16+
],
17+
"async-timeout": [
18+
"async_timeout",
19+
],
20+
"attrs": [
21+
"attr",
22+
"attrs",
23+
],
24+
"certifi": [
25+
"certifi",
26+
],
27+
"charset-normalizer": [
28+
"charset_normalizer",
29+
],
30+
"distro": [
31+
"distro",
32+
],
33+
"fastapi": [
34+
"fastapi",
35+
],
36+
"frozenlist": [
37+
"frozenlist",
38+
],
39+
"h11": [
40+
"h11",
41+
],
42+
"hashlib": [
43+
"_hashlib",
44+
],
45+
"httpcore": [
46+
"httpcore",
47+
],
48+
"httpx": [
49+
"httpx",
50+
],
51+
"idna": [
52+
"idna",
53+
],
54+
"jsonpatch": [
55+
"jsonpatch",
56+
],
57+
"jsonpointer": [
58+
"jsonpointer",
59+
],
60+
"langchain": [
61+
"langchain",
62+
],
63+
"langchain-core": [
64+
"langchain_core",
65+
"langchain_core.callbacks",
66+
"langchain_core.language_models.llms",
67+
"langchain_core.output_parsers",
68+
"langchain_core.prompts",
69+
],
70+
"langchain_openai": [
71+
"langchain_openai",
72+
"langchain_openai.chat_models.base",
73+
],
74+
"langsmith": [
75+
"langsmith",
76+
"langsmith.client",
77+
],
78+
"lzma": [
79+
"_lzma",
80+
"lzma",
81+
],
82+
"micropip": [
83+
"micropip",
84+
],
85+
"multidict": [
86+
"multidict",
87+
],
88+
"numpy": [
89+
"numpy",
90+
],
91+
"openai": [
92+
"openai",
93+
],
94+
"packaging": [
95+
"packaging",
96+
],
97+
"pydantic": [
98+
"pydantic",
99+
],
100+
"pydantic_core": [
101+
"pydantic_core",
102+
],
103+
"pydecimal": [
104+
"_pydecimal",
105+
],
106+
"pydoc_data": [
107+
"pydoc_data",
108+
],
109+
"pyyaml": [
110+
"_yaml",
111+
"yaml",
112+
],
113+
"regex": [
114+
"regex",
115+
],
116+
"requests": [
117+
"requests",
118+
],
119+
"six": [
120+
"six",
121+
],
122+
"sniffio": [
123+
"sniffio",
124+
],
125+
"sqlite3": [
126+
"_sqlite3",
127+
"sqlite3",
128+
],
129+
"ssl": [
130+
"_ssl",
131+
"ssl",
132+
],
133+
"starlette": [
134+
"starlette",
135+
"starlette.applications",
136+
"starlette.authentication",
137+
"starlette.background",
138+
"starlette.concurrency",
139+
"starlette.config",
140+
"starlette.convertors",
141+
"starlette.datastructures",
142+
"starlette.endpoints",
143+
"starlette.exceptions",
144+
"starlette.formparsers",
145+
"starlette.middleware",
146+
"starlette.middleware.base",
147+
"starlette.requests",
148+
"starlette.responses",
149+
"starlette.routing",
150+
"starlette.schemas",
151+
],
152+
"tenacity": [
153+
"tenacity",
154+
],
155+
"tiktoken": [
156+
"tiktoken",
157+
"tiktoken_ext",
158+
],
159+
"typing-extensions": [
160+
"typing_extensions",
161+
],
162+
"urllib3": [
163+
"urllib3",
164+
],
165+
"yarl": [
166+
"yarl",
167+
],
168+
}

0 commit comments

Comments
 (0)