Skip to content

Commit 5b18733

Browse files
committed
Made order of names in AUTHORS.md reliable
Signed-off-by: Andreas Maier <andreas.r.maier@gmx.de>
1 parent 9942878 commit 5b18733

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -496,15 +496,16 @@ doccoverage: $(done_dir)/develop_$(pymn)_$(PACKAGE_LEVEL).done
496496
authors: AUTHORS.md
497497
@echo "Makefile: $@ done."
498498

499-
# Make sure the AUTHORS.md file is up to date but has the old date when it did not change to prevent redoing dependent targets
499+
# Make sure the AUTHORS.md file is up to date but has the old date when it did
500+
# not change to prevent redoing dependent targets.
500501
AUTHORS.md: _always
501502
echo "# Authors of this project" >AUTHORS.md.tmp
502503
echo "" >>AUTHORS.md.tmp
503504
echo "Sorted list of authors derived from git commit history:" >>AUTHORS.md.tmp
504505
echo '```' >>AUTHORS.md.tmp
505-
git shortlog --summary --email | cut -f 2 | sort >>AUTHORS.md.tmp
506+
bash -c "git shortlog --summary --email HEAD | cut -f 2 | LC_ALL=C.UTF-8 sort >>AUTHORS.md.tmp"
506507
echo '```' >>AUTHORS.md.tmp
507-
bash -c "if ! diff -q AUTHORS.md.tmp AUTHORS.md; then mv AUTHORS.md.tmp AUTHORS.md; else rm AUTHORS.md.tmp; fi"
508+
bash -c "if ! diff -q AUTHORS.md.tmp AUTHORS.md; then echo 'Updating AUTHORS.md as follows:'; diff AUTHORS.md.tmp AUTHORS.md; mv AUTHORS.md.tmp AUTHORS.md; else echo 'AUTHORS.md was already up to date'; rm AUTHORS.md.tmp; fi"
508509

509510
$(sdist_file): pyproject.toml $(dist_dependent_files)
510511
@echo "Makefile: Building the source distribution archive: $(sdist_file)"

docs/changes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ Released: not yet
2727
* Dev: Circumvented safety issue with import of typer module by pinning typer
2828
to <0.17.0.
2929

30+
* Dev: Made order of names in AUTHORS.md reliable.
31+
3032
**Enhancements:**
3133

3234
**Cleanup:**

0 commit comments

Comments
 (0)