patch old setuptools for python 3.12 for github workflow

This commit is contained in:
Ailin Nemui 2024-12-16 20:43:48 +01:00
commit e8e5bf5d81
2 changed files with 29 additions and 4 deletions

View file

@ -80,10 +80,11 @@ echo "Creating sdist..."
python3 -W ignore -c 'from setuptools import *;setup()' --quiet sdist --formats=tar
tar --delete --file "dist/$name-$version.tar" \
"$name-$version/setup.cfg" \
"$name-$version/pyproject.toml" \
"$name-$version/$name.egg-info" \
"$name-$version/PKG-INFO"
$(tar tf "dist/$name-$version.tar" | grep -F \
"$name-$version/setup.cfg
$name-$version/pyproject.toml
$name-$version/$name.egg-info
$name-$version/PKG-INFO")
echo "Zipping..."
xz -k "dist/$name-$version.tar"