Skip to content

Commit 3413fe0

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

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
@@ -24,6 +24,8 @@ Released: not yet
2424
of the 'build' module) and increasing the minimum version of 'setuptools-scm'
2525
to 9.2.0, which fixes a number of version related issues.
2626

27+
* Dev: Made order of names in AUTHORS.md reliable.
28+
2729
**Enhancements:**
2830

2931
**Cleanup:**

0 commit comments

Comments
 (0)