|
1 | 1 | <!DOCTYPE html>
|
2 |
| -<html xmlns="http://www.w3.org/1999/xhtml"> |
| 2 | +<html xmlns="https://www.w3.org/1999/xhtml"> |
3 | 3 | <head>
|
4 | 4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
5 | 5 | <meta name="description" content="Astropy. A Community Python Library for Astronomy." />
|
|
23 | 23 | <nav>
|
24 | 24 | <div id="mobile-header">
|
25 | 25 | <!-- Menu Icon -->
|
26 |
| - <a id="responsive-menu-button" href="#sidr-main"><div><svg senable-background="new 0 0 24 24" height="24px" id="Layer_1" version="1.1" viewBox="0 0 24 24" width="24px" x="0px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" y="0px"><g><g><path d="M23.244,17.009H0.75c-0.413,0-0.75,0.36-0.75,0.801v3.421C0,21.654,0.337,22,0.75,22h22.494c0.414,0,0.75-0.346,0.75-0.77 V17.81C23.994,17.369,23.658,17.009,23.244,17.009z M23.244,9.009H0.75C0.337,9.009,0,9.369,0,9.81v3.421 c0,0.424,0.337,0.769,0.75,0.769h22.494c0.414,0,0.75-0.345,0.75-0.769V9.81C23.994,9.369,23.658,9.009,23.244,9.009z M23.244,1.009H0.75C0.337,1.009,0,1.369,0,1.81V5.23c0,0.423,0.337,0.769,0.75,0.769h22.494c0.414,0,0.75-0.346,0.75-0.769V1.81 C23.994,1.369,23.658,1.009,23.244,1.009z"/></g></g></svg></div></a> |
| 26 | + <a id="responsive-menu-button" href="#sidr-main"><div><svg senable-background="new 0 0 24 24" height="24px" id="Layer_1" version="1.1" viewBox="0 0 24 24" width="24px" x="0px" xml:space="preserve" xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://www.w3.org/1999/xlink" y="0px"><g><g><path d="M23.244,17.009H0.75c-0.413,0-0.75,0.36-0.75,0.801v3.421C0,21.654,0.337,22,0.75,22h22.494c0.414,0,0.75-0.346,0.75-0.77 V17.81C23.994,17.369,23.658,17.009,23.244,17.009z M23.244,9.009H0.75C0.337,9.009,0,9.369,0,9.81v3.421 c0,0.424,0.337,0.769,0.75,0.769h22.494c0.414,0,0.75-0.345,0.75-0.769V9.81C23.994,9.369,23.658,9.009,23.244,9.009z M23.244,1.009H0.75C0.337,1.009,0,1.369,0,1.81V5.23c0,0.423,0.337,0.769,0.75,0.769h22.494c0.414,0,0.75-0.346,0.75-0.769V1.81 C23.994,1.369,23.658,1.009,23.244,1.009z"/></g></g></svg></div></a> |
27 | 27 | <!-- -->
|
28 | 28 | </div>
|
29 | 29 | <a href="../index.html"><img src="../images/astropy_word.svg" height="32" onerror="this.src='../images/astropy_word_32.png; this.onerror=null;"/></a>
|
|
46 | 46 | <li><a href="../contribute.html">Contribute</a></li>
|
47 | 47 | <li>
|
48 | 48 | <div class="dropdown">
|
49 |
| - <a href="http://docs.astropy.org">Documentation</a> |
| 49 | + <a href="https://docs.astropy.org">Documentation</a> |
50 | 50 | <div class="dropdown-content">
|
51 | 51 | <ul>
|
52 |
| - <li><a href="http://docs.astropy.org" target="_blank">Current Release</a></li> |
| 52 | + <li><a href="https://docs.astropy.org" target="_blank">Current Release</a></li> |
53 | 53 | <li><a href="http://devdocs.astropy.org/" target="_blank">In Development</a></li>
|
54 | 54 | </ul>
|
55 | 55 | </div>
|
|
60 | 60 |
|
61 | 61 | </ul> </div>
|
62 | 62 | <div class="search pull-right">
|
63 |
| - <form action="http://docs.astropy.org/en/stable/search.html" method="get"> |
| 63 | + <form action="https://docs.astropy.org/en/stable/search.html" method="get"> |
64 | 64 | <input type="text" name="q" placeholder="Search Documentation" />
|
65 | 65 | <input type="hidden" name="check_keywords" value="yes" />
|
66 | 66 | <input type="hidden" name="area" value="default" />
|
@@ -166,16 +166,48 @@ <h1 id="coordinated-package-list">Coordinated Packages<a class="paralink" href="
|
166 | 166 | <section id="affiliated-package-registry">
|
167 | 167 | <h1 id="affiliated-package-list">Affiliated Packages Registry<a class="paralink" href="#affiliated-package-list" title="Permalink to this headline">¶</a></h1>
|
168 | 168 | <p>The following table lists all currently registered affiliated packages.</p>
|
169 |
| - <p>NOTE: The listing is currently empty because Astropy has just accepted |
| 169 | + <p>NOTE: The listing is currently minimal because Astropy has just accepted |
170 | 170 | <a href="https://github.com/astropy/astropy-APEs/blob/main/APE22.rst">APE 22</a>
|
171 | 171 | in January 2024. We are in the midst of transitioning to the new process in
|
172 | 172 | partnership with pyOpenSci, so we really appreciate your patience.
|
173 | 173 | </p>
|
174 | 174 |
|
175 |
| -<!-- TODO: Leah Wasser is going to give Erik Tollerud some RSS/XML to ingest here |
176 |
| -(maybe https://github.com/pyOpenSci/pyopensci.github.io/blob/main/_data/packages.yml). |
177 |
| -We have promised pyOpenSci that we would also link back to their canonical listing |
178 |
| -here, with their Astropy filter applied. --> |
| 175 | + <p>Total number of post-APE 22 affiliated packages: <strong id="total-pyos-pkgs"></strong></p> |
| 176 | + |
| 177 | + <table border="1" class="docutils" id="pyos-package-table"> |
| 178 | + <colgroup> |
| 179 | + <col width="5%" /> |
| 180 | + <col width="3%" /> |
| 181 | + <col width="3%" /> |
| 182 | + <col/> |
| 183 | + </colgroup> |
| 184 | + <thead valign="bottom"> |
| 185 | + <tr class="row-odd"> |
| 186 | + <th class="head"></th> |
| 187 | + <th class="head"></th> |
| 188 | + <th class="head"></th> |
| 189 | + <th class="head"></th> |
| 190 | + </tr> |
| 191 | + </thead> |
| 192 | + <tbody valign="top"> |
| 193 | + <tr class="row-even"><td rowspan="1">Loading...</td> |
| 194 | + <td rowspan="1"> </td> |
| 195 | + <td rowspan="1"> </td> |
| 196 | + <td rowspan="1"> </td> |
| 197 | + <td rowspan="1"> </td> |
| 198 | + </tr> |
| 199 | + <tr class="row-odd"> |
| 200 | + <td colspan="1"> </td> |
| 201 | + <td colspan="3"> </td> |
| 202 | + </tr> |
| 203 | + </tbody> |
| 204 | + </table> |
| 205 | + |
| 206 | +<!-- TODO: We have promised pyOpenSci that we would also link back to their canonical listing |
| 207 | +here, with their Astropy filter applied. Waiting for resolution of |
| 208 | +https://github.com/pyOpenSci/software-peer-review/issues/268 |
| 209 | +but for now just do a generic link to their listing. --> |
| 210 | +<p>All accepted pyOpenSci packages available <a href="https://www.pyopensci.org/python-packages.html">here</a>.</p> |
179 | 211 |
|
180 | 212 | </section>
|
181 | 213 |
|
@@ -252,7 +284,7 @@ <h1 id="becoming-an-affiliated-package">Becoming an Affiliated Package<a class="
|
252 | 284 | <li>Specifically use, interface with, or provide complementary capabilities
|
253 | 285 | to other Astropy packages.</li>
|
254 | 286 |
|
255 |
| - <li>Use <a href="http://docs.astropy.org/">classes and functions from the |
| 287 | + <li>Use <a href="https://docs.astropy.org/">classes and functions from the |
256 | 288 | astropy core package</a> wherever possible and appropriate, and (as much as
|
257 | 289 | possible) avoid duplication with other packages in the Astropy ecosystem.
|
258 | 290 | This facilitates re-use of code and sharing of resources.</li>
|
@@ -344,13 +376,85 @@ <h2 id="new-affil-reviewer">I am a new reviewer<a class="paralink" href="#new-af
|
344 | 376 | <script src="../js/jquery.sidr.min.js"></script>
|
345 | 377 | <script src="../js/functions.js"></script>
|
346 | 378 |
|
347 |
| - |
348 |
| - <script type="text/javascript"> |
| 379 | + <script type="text/javascript"> |
349 | 380 | $(document).ready(function() {
|
350 | 381 | $.getJSON("registry.json", populateTables);
|
351 | 382 | });
|
352 | 383 | </script>
|
353 | 384 |
|
| 385 | + <!-- Tom Donaldson: The idea was to use the existing YAML parser that works fine in nodejs, |
| 386 | + but bundle it for use in a client. So I created yaml_parse.js |
| 387 | +
|
| 388 | + import parse from 'yaml' |
| 389 | + window.yaml = parse; |
| 390 | +
|
| 391 | + and then bundled it with a bundler I found called esbuild: |
| 392 | +
|
| 393 | + npm install --save-exact --save-dev esbuild |
| 394 | + ./node_modules/.bin/esbuild yaml_parse.js --bundle --minify --outfile=yaml_parse_bundle.js |
| 395 | + --> |
| 396 | + <script src="../js/yaml_parse_bundle.js"></script> |
| 397 | + |
| 398 | + <script> |
| 399 | + fetch('https://raw.githubusercontent.com/pyOpenSci/pyopensci.github.io/main/_data/packages.yml') |
| 400 | + .then(response => response.text()) |
| 401 | + .then(yamlString => { |
| 402 | + var parsed = yaml.parse(yamlString); |
| 403 | + var i = 0; |
| 404 | + |
| 405 | + // We have to delete the "Loading..." row |
| 406 | + var tab = document.getElementById("pyos-package-table"); |
| 407 | + tab.deleteRow(1); |
| 408 | + |
| 409 | + var info = ""; |
| 410 | + for (var p=0; p<parsed.length; p++) { |
| 411 | + var package = parsed[p]; |
| 412 | + if (package["partners"] == null || package["partners"].indexOf("astropy") == -1) { |
| 413 | + continue; |
| 414 | + } |
| 415 | + |
| 416 | + namerow = tab.insertRow(i*4 + 1); |
| 417 | + |
| 418 | + nmcell = namerow.insertCell(0); |
| 419 | + urlcell = namerow.insertCell(1); |
| 420 | + repocell = namerow.insertCell(2); |
| 421 | + pypicell = namerow.insertCell(3); |
| 422 | + |
| 423 | + nmcell.innerHTML = package["package_name"]; |
| 424 | + nmcell.className = 'first-package-row' |
| 425 | + nmcell.setAttribute('width', 100) |
| 426 | + urlcell.innerHTML = url_translator(package["gh_meta"]["documentation"]); |
| 427 | + repocell.innerHTML = repo_translator(package["repository_link"]); |
| 428 | + pypicell.innerHTML = pypi_translator(package["package_name"]); // FIXME: https://github.com/pyOpenSci/pyopensci.github.io/issues/390 |
| 429 | + |
| 430 | + descrow = tab.insertRow(i*4 + 2); |
| 431 | + descrow.insertCell(0).innerHTML = ""; |
| 432 | + desccell = descrow.insertCell(1); |
| 433 | + desccell.colSpan = "3"; |
| 434 | + desccell.innerHTML = package["package_description"]; |
| 435 | + |
| 436 | + var maintainers = package["all_current_maintainers"]; |
| 437 | + var maintainers_str = ""; |
| 438 | + for (var m=0; m<maintainers.length; m++) { |
| 439 | + maintainers_str += ghuser_translator(maintainers[m]["name"], maintainers[m]["github_username"]); |
| 440 | + if (m < (maintainers.length - 1)) { |
| 441 | + maintainers_str += ", "; |
| 442 | + } |
| 443 | + } |
| 444 | + |
| 445 | + maintrow = tab.insertRow(i*4 + 3); |
| 446 | + maintrow.insertCell(0).innerHTML = ""; |
| 447 | + maintcell = maintrow.insertCell(1); |
| 448 | + maintcell.colSpan = "3"; |
| 449 | + maintcell.innerHTML = "Maintainer(s): " + maintainers_str; |
| 450 | + |
| 451 | + i += 1; |
| 452 | + } |
| 453 | + document.getElementById("total-pyos-pkgs").innerHTML = i; |
| 454 | + ; |
| 455 | + }); |
| 456 | + </script> |
| 457 | + |
354 | 458 | <hr>
|
355 | 459 | <p>
|
356 | 460 | <img style="vertical-align:middle" src="../images/astropy_brandmark.png" height=20><span style="vertical-align:middle">
|
|
0 commit comments