Skip to content

Commit 570add5

Browse files
committed
more refine
1 parent 787b16f commit 570add5

File tree

2 files changed

+27
-6
lines changed

2 files changed

+27
-6
lines changed

all_repos.txt

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ jupyter/papyri : https://pypi.org/project/papyri
5252
jupyter/notebook_shim : https://pypi.org/project/notebook-shim
5353
jupyter/jupyter_events : https://pypi.org/project/jupyter-events
5454
jupyterlab/jupyterlab : https://pypi.org/project/jupyterlab
55-
jupyterlab/jupyterlab : https://pypi.org/project/jupyterlab_launcher
5655
jupyterlab/pytest-check-links : https://pypi.org/project/pytest-check-links
56+
# legacy server was launcher
57+
jupyterlab/jupyterlab_server : https://pypi.org/project/jupyterlab_launcher
5758
jupyterlab/jupyterlab_server : https://pypi.org/project/jupyterlab-server
5859
jupyterlab/jupyterlab-git : https://pypi.org/project/jupyterlab-git
5960
jupyterlab/jupyterlab-github : https://pypi.org/project/jupyterlab-github
@@ -208,7 +209,7 @@ jupyter/sphinxcontrib_github_alt : https://pypi.org/project/sphinxcontrib_gith
208209
jupyter/testpath : https://pypi.org/project/testpath
209210
jupyter/tmpnb : https://pypi.org/project/tmpnb
210211
jupyter-book/hatch-deps-selector : https://pypi.org/project/hatch-deps-selector
211-
jupyter-book/jupyter_releaser : https://pypi.org/project/jupyter_releaser
212+
jupyter-book/jupyter_releaser : https://pypi.org/project/jupyter-releaser
212213
jupyter-book/jupyterlab-myst : https://pypi.org/project/jupyterlab-myst
213214
jupyter-book/myst-spec : https://pypi.org/project/myst-spec
214215
jupyter-book/mystmd : https://pypi.org/project/mystmd
@@ -223,7 +224,24 @@ jupyter-widgets/traittypes : https://pypi.org/project/traittypes
223224

224225

225226
# jupyterhub
226-
jupyterhub/design :
227+
jupyterhub/design :
228+
jupyterhub/action-get-quayio-tags :
229+
jupyterhub/action-k3s-helm :
230+
jupyterhub/action-k8s-await-workloads :
231+
jupyterhub/action-k8s-namespace-report :
232+
jupyterhub/action-major-minor-tag-calculator:
233+
234+
jupyterhub/dummyauthenticator : https://pypi.org/project/jupyterhub-dummyauthenticator
235+
jupyterhub/firstuseauthenticator : https://pypi.org/project/jupyterhub-firstuseauthenticator
236+
jupyterhub/repo2docker : https://pypi.org/project/jupyter-repo2docker
237+
jupyterhub/simplespawner : https://pypi.org/project/jupyterhub-simplespawner
238+
jupyterhub/kerberosauthenticator : https://pypi.org/project/jupyterhub-kerberosauthenticator
239+
jupyterhub/yarnspawner : https://pypi.org/project/jupyterhub-yarnspawner
240+
jupyterhub/systemdspawner : https://pypi.org/project/jupyterhub-systemdspawner
241+
jupyterhub/ldapauthenticator : https://pypi.org/project/jupyterhub-ldapauthenticator
242+
jupyterhub/ltiauthenticator : https://pypi.org/project/jupyterhub-ltiauthenticator
243+
jupyterhub/nativeauthenticator : https://pypi.org/project/jupyterhub-nativeauthenticator
244+
jupyterhub/tmpauthenticator : https://pypi.org/project/jupyterhub-tmpauthenticator
227245

228246
jupyterhub/alabaster-jupyterhub : https://pypi.org/project/alabaster-jupyterhub
229247
jupyterhub/batchspawner : https://pypi.org/project/batchspawner
@@ -253,7 +271,7 @@ jupyterhub/wrapspawner : https://pypi.org/project/wrapspawne
253271

254272
# misc name don't match
255273
jupyter-widgets/jupyterlab-sidecar: https://pypi.org/project/sidecar
256-
jupyter-widgets/midicontrols : https://pypi.org/project/wrapspawner/ipymidicontrols
274+
jupyter-widgets/midicontrols : https://pypi.org/project/wrapspawner/ipymidicontrols/
257275
jupyter-widgets/xeus : https://pypi.org/project/xeus-python
258276

259277
jupyter/declarativewidgets : https://pypi.org/project/jupyter_declarativewidgets/
@@ -267,7 +285,6 @@ jupyterhub/kubespawner: https://pypi.org/project/jupyterhub-kubespawner/
267285
# Jupyter XEUS
268286

269287
jupyter-xeus/robotframework-interpreter : https://pypi.org/project/robotframework-interpreter
270-
jupyter-xeus/xcanvas : https://pypi.org/project/xcanvas
271288
jupyter-xeus/xeus-python : https://pypi.org/project/xeus-python
272289
jupyter-xeus/xeus-python-shell : https://pypi.org/project/xeus-python-shell
273290
jupyter-xeus/xeus-robot : https://pypi.org/project/xeus-robot

tools/all_repos.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,14 @@ async def get_package_maintainers(package: str) -> tuple[list[str], bool]:
136136
137137
The json does not have the right information, so we need to scrape the page.
138138
"""
139+
assert package, "package is required"
139140
url = f"https://pypi.org/project/{package}/"
140141
if package in cache:
141142
print("c", end="", flush=True)
142143
return cache[package], True
143144
response = await asks.get(url)
145+
# fastly html is 200 even if package is not found, so the json instead
146+
(await asks.get(f"https://pypi.org/pypi/{package}/json")).raise_for_status()
144147
if response.status_code == 200:
145148
html = response.text
146149
soup = BeautifulSoup(html, "html.parser")
@@ -188,7 +191,8 @@ async def main(config_file: str = "all_repos.txt"):
188191

189192
async def _loc(targets, package_url):
190193
async with semaphore: # Wait for semaphore to be available
191-
package = package_url.split("/")[-1]
194+
package = package_url.strip("/").split("/")[-1]
195+
assert package, f"package is required {package_url}"
192196
maintainers, is_ok = await get_package_maintainers(package)
193197
targets.append(
194198
(

0 commit comments

Comments
 (0)