Upgrade to pyproject using hatchling as build-system

This commit is contained in:
Cédric Krier
2026-03-21 18:46:34 +01:00
parent d6dc19b523
commit e15c0b7d7a
1590 changed files with 17346 additions and 38132 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ set -eu
OUTPUT=${1:-`mktemp -d`}
find modules -maxdepth 2 -name setup.py -print | while read path
find modules -maxdepth 2 -name pyproject.toml -print | while read path
do
path=`dirname "${path}"`
module=`basename "${path}"`
+1 -1
View File
@@ -62,7 +62,7 @@ def render(file):
def all_packages():
root_dir = os.path.dirname(BASE_DIR)
for filename in chain(
glob.glob('modules/*/setup.py', root_dir=root_dir)):
glob.glob('modules/*/pyproject.toml', root_dir=root_dir)):
yield os.path.dirname(filename)
-1
View File
@@ -9,7 +9,6 @@ export DOC_BASE_URL
requirements=$(mktemp "${TMPDIR}/requirements-doc-XXXXXXXXXX.txt")
find . -name 'cookiecutter*' -prune -o -path '*/doc/requirements-doc.txt' -exec cat {} + | sort | uniq > "${requirements}"
pip install setuptools
pip install -r "${requirements}"
(find . -name 'cookiecutter*' -prune -o -path '*/doc/conf.py' -print | while read path; do
+2 -2
View File
@@ -4,6 +4,6 @@ set -eu
PACKAGES=`realpath "${1}"`
mkdir -p "${PACKAGES}"
(find . -name 'cookiecutter*' -prune -o -name setup.py -print | while read path; do
(find . -name 'cookiecutter*' -prune -o -name pyproject.toml -print | while read path; do
echo "`dirname ${path}`"
done) | xargs --max-procs=$(( `nproc` * 2)) -I '{}' sh -c "cd \"{}\" && python setup.py --quiet sdist --dist-dir \"${PACKAGES}\""
done) | xargs --max-procs=$(( `nproc` * 2)) -I '{}' sh -c "cd \"{}\" && python -m build --no-isolation --wheel --quiet --outdir \"${PACKAGES}\""