diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-08-26 21:23:37 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-08-26 21:23:41 +0700 |
commit | 13f71e0376a9cceba496489acd4a132b57a28bf4 (patch) | |
tree | e10a0d2c02f71f0f96dc5f2e21d96ec3bd5298a9 /content | |
parent | 844f66039a41a631b8f3a23d340ec34434a86681 (diff) | |
download | blog-13f71e0376a9cceba496489acd4a132b57a28bf4.tar.gz |
Add a blog update on IPWHL status
Diffstat (limited to 'content')
-rw-r--r-- | content/posts/2021-08-26-ipwhl-update.md | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/content/posts/2021-08-26-ipwhl-update.md b/content/posts/2021-08-26-ipwhl-update.md new file mode 100644 index 0000000..a5a4202 --- /dev/null +++ b/content/posts/2021-08-26-ipwhl-update.md @@ -0,0 +1,49 @@ +--- +title: "[IPWHL] August update" +date: 2021-08-26 +lang: en +categories: [ "project update" ] +tags: [ipwhl, project, update] +translationKey: "ipwhl-update" +--- + +On Monday this week, we have released our [weekly release][2021W33] of the +cheeses. + +[2021W33]: https://lists.sr.ht/~cnx/ipwhl-announce/%3CCDQ7HRSRNOHF.3TNAR9NHH0KV1%40nix%3E + +With the increasing number of packages declared in our repository, it is harder +and harder to keep track and decide which packages to package next. To address +this, [McSinyx][cnx] has written a script to check which packages can be +declared next: + +[cnx]: https://cnx.srht.site + +```python +from importlib.metadata import distributions +from glob import glob + +from packaging.utils import canonicalize_name + +def declared(project): + name = canonicalize_name(project).replace('-', '_') + return glob(f'ipwhl-data/pkgs/*/*/{name}-*') + +for distribution in distributions(): + name = distribution.metadata['Name'] + if declared(name): continue + for dep in distribution.metadata.get_all('Requires-Dist') or []: + if not declared(dep.split(maxsplit=2)[0]): break + else: + print(name) +``` + +On the other hand, I have written a [tracker page][status] to see how far we +have progressed this project. Packages that have not been declared yet are +emphasized and colored red[^0]. + +[status]: /projects/ipwhl/status/ + +[^0]: I'm not sure if this is accessible enough for colorblind readers + and readers who use text browser or screen reader. If you're aware of a + better way to highlight please tell me. |