Skip to content

Commit f8fcd6c

Browse files
committed
updats
1 parent 1512441 commit f8fcd6c

File tree

2 files changed

+84
-8
lines changed

2 files changed

+84
-8
lines changed

all_repos.txt

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# github.repo : pypi url (or empty)
12
jupyter-incubator/sparkmagic : https://pypi.org/project/sparkmagic
23
jupyter-widgets/ipywidgets : https://pypi.org/project/ipywidgets
34
jupyter-server/jupyter-resource-usage : https://pypi.org/project/jupyter-resource-usage
@@ -97,3 +98,67 @@ jupyterlab/language-packs : https://pypi.org/project/jupyterlab-language-pack-z
9798
# repo with no packages:
9899
https://github.com/binderhub-ci-repos/lfs:
99100
https://github.com/jupyter/design:
101+
102+
# security forks:
103+
# is it safe to list those URL ?
104+
# REDACTED
105+
106+
# .github repos
107+
jupyter-standard/.github:
108+
jupyter-server/.github:
109+
jupyter-xeus/.github:
110+
jupyter-standards/.github:
111+
ipython/.github:
112+
ipython/.github-1:
113+
jupyterhub/.github:
114+
voila-dashboards/.github:
115+
jupyter/.github:
116+
jupyterlab/.github:
117+
118+
# .github.io repos
119+
ipython/ipython.github.com:
120+
jupyter-xeus/jupyter-xeus.github.io:
121+
jupyterhub/jupyterhub.github.io:
122+
voila-gallery/voila-gallery.github.io:
123+
voila-dashboards/voila-dashboards.github.io:
124+
jupyter/jupyter.github.io:
125+
126+
# team compass
127+
jupyter/docs-team-compass:
128+
jupyter/foundations-and-standards-team-compass:
129+
jupyter/ipython-components:
130+
jupyter/kernels-team-compass:
131+
jupyter/notebook-team-compass:
132+
jupyter/software-steering-council-team-compass:
133+
jupyter/team-compass-template:
134+
jupyter-book/team-compass:
135+
jupyter-governance/ec-team-compass:
136+
jupyter-server/team-compass:
137+
jupyter-widgets/team-compass:
138+
jupyterhub/team-compass:
139+
jupyterlab/frontends-team-compass:
140+
141+
# misc websites:
142+
143+
jupyter/cdn.jupyter.org:
144+
jupyter/colaboratory.jupyter.org:
145+
jupyter/nbviewer.org-deploy:
146+
jupyter/try.jupyter.org:
147+
jupyter-book/mystmd.org:
148+
jupyterhub/mybinder.org-deploy:
149+
jupyterhub/mybinder.org-user-guide:
150+
voila-gallery/voila-gallery.org-deploy:
151+
152+
# various tutorials
153+
jupyter/ngcm-tutorial:
154+
jupyter/scipy-advanced-tutorial:
155+
jupyter/strata-sv-2015-tutorial:
156+
jupyter/tutorial-dashboards-declarativewidgets:
157+
jupyter/tutorial-devteam-jupyterhub-2017:
158+
jupyter/tutorial-devteam-projectmgt-2017:
159+
jupyter-widgets/tutorial:
160+
jupyter-widgets/tutorial-jupyterlite:
161+
jupyterhub/jupyterhub-tutorial:
162+
jupyterlab/jupytercon-jupyterlab-tutorial:
163+
jupyterlab/scipy2018-jupyterlab-tutorial:
164+
jupyterlab/scipy2019-jupyterlab-tutorial:

tools/all_repos.py

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -184,18 +184,32 @@ async def main(config_file: str = "all_repos.txt"):
184184
for repo in sorted(missing_from_github_org):
185185
print(f" {repo}")
186186

187-
map = {p.lower().replace("-", "_"): p for p in packages}
188-
189187
todo = []
188+
# now we loop over all the org/repo and check if:
189+
# - it is in the jupyter org:
190+
# - it has a pypi package (or not) in the mapping, if not,
191+
# it's ok it's not supposed to have one.
192+
# - if it has:
193+
# all repos in the mapping should be in the Pypi org
194+
# - if not, add to todo list.
195+
190196
async for org, repo in list_repos(default_orgs):
191197
org_repo = f"{org}/{repo}"
198+
listed = [k for k, _ in known_mapping]
199+
if not listed:
200+
# not listed in config. We search by default.
201+
todo.append((org, repo))
202+
continue
192203
candidates = [v for k, v in known_mapping if k == org_repo]
193204
if not candidates:
194-
print(f"Missing: no candidate for {org_repo}")
205+
# not listed in config. We search by default.
195206
todo.append((org, repo))
196207
continue
197208
for candidate in candidates:
198-
if candidate in packages_urls:
209+
if candidate == "":
210+
continue
211+
# not supposed to have a Pypi package
212+
elif candidate in packages_urls:
199213
pass
200214
# print(f"OK: {org_repo} -> {candidate}"")
201215
else:
@@ -207,7 +221,7 @@ async def main(config_file: str = "all_repos.txt"):
207221

208222
async with trio.open_nursery() as nursery:
209223
targets = []
210-
semaphore = trio.Semaphore(10) # Throttle to 10 concurrent requests
224+
semaphore = trio.Semaphore(15) # Throttle to 10 concurrent requests
211225
for org, repo in todo:
212226

213227
async def _loc(targets, org, repo):
@@ -252,9 +266,6 @@ async def _loc(targets, org, repo):
252266
corg = org
253267
if status != 200:
254268
print(f"https://github.com/{org}/{repo}")
255-
print()
256-
print("Packages with no repos.")
257-
print(map)
258269

259270

260271
trio.run(main)

0 commit comments

Comments
 (0)