Skip to content

Commit

Permalink
Build: Rename sdist to lowercase
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
phdru committed Nov 22, 2024
1 parent 8d82736 commit 20df7fc
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
6 changes: 6 additions & 0 deletions ANNOUNCE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ CI:

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

Build/release:

- 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.


What is CheetahTemplate3
Expand Down
7 changes: 7 additions & 0 deletions LATEST-CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,10 @@ CI:
- CI(GHActions): Switch to ``setup-miniconda``.

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

Build/release:

- 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.
8 changes: 4 additions & 4 deletions devscripts/CI/ghactions-release
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ v=$(echo "$py" | sed 's/\.//')

pip install -U pip setuptools readme-renderer twine wheel
python setup.py sdist
if [ -f dist/ct3-*.tar.gz ]; then
# Rename sdist to uppercase; different build tools produce different case.
if [ -f dist/CT3-*.tar.gz ]; then
# 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 upper.
# So we use single case, all lower. Also see PEP 625.
cd dist
mv ct3-*.tar.gz "`echo ct3-*.tar.gz | sed 's/^ct3-/CT3-/'`"
mv CT3-*.tar.gz "`echo CT3-*.tar.gz | sed 's/^CT3-/ct3-/'`"
cd ..
fi

Expand Down
7 changes: 7 additions & 0 deletions docs/news.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ CI:

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

Build/release:

- 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.

3.3.3.post1 (2024-02-28)
------------------------

Expand Down

0 comments on commit 20df7fc

Please sign in to comment.