Upgrade to pyproject using hatchling as build-system
This commit is contained in:
@@ -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}"`
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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}\""
|
||||
|
||||
Reference in New Issue
Block a user