Skip to content

Commit 20df7fc

Browse files
committed
Build: Rename sdist to lowercase
Different build tools produce different case. This is important because stupid PyPI doesn't ignore sdists in different cases but also doesn't allow uploading. So we use single case, all lower. Also see PEP 625. [skip ci]
1 parent 8d82736 commit 20df7fc

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

ANNOUNCE.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ CI:
4848

4949
- CI(GHActions): Run tests under Python 3.13.
5050

51+
Build/release:
52+
53+
- Rename sdist to lowercase; different build tools produce different case.
54+
This is important because stupid PyPI doesn't ignore sdists
55+
in different cases but also doesn't allow uploading.
56+
So we use single case, all lower. Also see PEP 625.
5157

5258

5359
What is CheetahTemplate3

LATEST-CHANGES.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,10 @@ CI:
3838
- CI(GHActions): Switch to ``setup-miniconda``.
3939

4040
- CI(GHActions): Run tests under Python 3.13.
41+
42+
Build/release:
43+
44+
- Rename sdist to lowercase; different build tools produce different case.
45+
This is important because stupid PyPI doesn't ignore sdists
46+
in different cases but also doesn't allow uploading.
47+
So we use single case, all lower. Also see PEP 625.

devscripts/CI/ghactions-release

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ v=$(echo "$py" | sed 's/\.//')
1313

1414
pip install -U pip setuptools readme-renderer twine wheel
1515
python setup.py sdist
16-
if [ -f dist/ct3-*.tar.gz ]; then
17-
# Rename sdist to uppercase; different build tools produce different case.
16+
if [ -f dist/CT3-*.tar.gz ]; then
17+
# Rename sdist to lowercase; different build tools produce different case.
1818
# This is important because stupid PyPI doesn't ignore sdists
1919
# in different cases but also doesn't allow uploading.
20-
# So we use single case, all upper.
20+
# So we use single case, all lower. Also see PEP 625.
2121
cd dist
22-
mv ct3-*.tar.gz "`echo ct3-*.tar.gz | sed 's/^ct3-/CT3-/'`"
22+
mv CT3-*.tar.gz "`echo CT3-*.tar.gz | sed 's/^CT3-/ct3-/'`"
2323
cd ..
2424
fi
2525

docs/news.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ CI:
4545

4646
- CI(GHActions): Run tests under Python 3.13.
4747

48+
Build/release:
49+
50+
- Rename sdist to lowercase; different build tools produce different case.
51+
This is important because stupid PyPI doesn't ignore sdists
52+
in different cases but also doesn't allow uploading.
53+
So we use single case, all lower. Also see PEP 625.
54+
4855
3.3.3.post1 (2024-02-28)
4956
------------------------
5057

0 commit comments

Comments
 (0)