[Git][reproducible-builds/reproducible-website][master] sort contributors case insignificant and add a comment to the generated file...

Holger Levsen (@holger) gitlab at salsa.debian.org
Fri Apr 21 11:14:56 UTC 2023



Holger Levsen pushed to branch master at Reproducible Builds / reproducible-website


Commits:
a909974d by Holger Levsen at 2023-04-21T13:14:46+02:00
sort contributors case insignificant and add a comment to the generated file to edit the source instead

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- bin/contributors.py


Changes:

=====================================
bin/contributors.py
=====================================
@@ -95,7 +95,8 @@ def main():
             pass
 
     with open("_data/contributors.yml", "w") as f:
-        yaml.dump(sorted(list(data)), f)
+        print("#\n# do not edit this file, edit bin/contributors.py instead\n#\n", file=f)
+        yaml.dump(sorted(list(data), key=str.casefold), f)
 
 
 if __name__ == "__main__":



View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/-/commit/a909974db17014d5c7616099224765965fd66a88

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/-/commit/a909974db17014d5c7616099224765965fd66a88
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20230421/2dd2a894/attachment.htm>


More information about the rb-commits mailing list