Compare commits

..

No commits in common. "dev" and "main" have entirely different histories.
dev ... main

4 changed files with 13 additions and 168 deletions

View file

@ -15,10 +15,11 @@ REMOTE_ROOT="https://deb.debian.org/${DEBIAN_ROOT}"
for dist in "${DISTS[@]}" ; do for dist in "${DISTS[@]}" ; do
for section in "${SECTIONS[@]}" ; do for section in "${SECTIONS[@]}" ; do
cd "${LOCAL_ROOT}/${dist}/${section}" || cd "${LOCAL_ROOT}/${dist}/${section}"
echo "${ERROR}"
rm --force "${MISSING}" rm --force "${MISSING}"
wget "${REMOTE_ROOT}/${dist}/${section}/${MISSING}" &>/dev/null || wget "${REMOTE_ROOT}/${dist}/${section}/${MISSING}" &> /dev/null
if [ ${?} -ne 0 ] ; then
echo "${ERROR}" echo "${ERROR}"
fi
done done
done done

View file

@ -1,17 +1,13 @@
#! /usr/bin/env bash #! /usr/bin/env bash
FILE="$(realpath "${BASH_SOURCE[0]}")" FILE="$(realpath "${BASH_SOURCE[0]}")"
cd "$(dirname "${FILE}")" || cd "$(dirname "${FILE}")"
exit
ROOT='root/msys2' ROOT='root/msys2'
rm s/msys/*.tar rm s/msys/*.tar
rm i/mingw/mingw64/*.tar rm i/mingw/mingw64/*.tar
rm -fr "${ROOT}/msys/x86_64" rm -fr "${ROOT}/msys/x86_64" ; mv -i s/msys "${ROOT}/msys/x86_64"
mv -i s/msys "${ROOT}/msys/x86_64" rm -fr "${ROOT}/mingw" ; mv -i i/mingw "${ROOT}/"
rm -fr "${ROOT}/mingw"
mv -i i/mingw "${ROOT}/"
rmdir s i rmdir s i

View file

@ -1,39 +0,0 @@
#! /usr/bin/env sh
file="$(readlink --canonicalize-existing "${0}")"
root="$(dirname "${file}")"
root="${root}/root/py/cpypy"
data="download-metadata.json"
path="${root}/${data}"
url="https://github.com\
/astral-sh/uv/raw/refs/heads/main/crates/uv-python/${data}"
rm --force --recursive "${root}"
mkdir --parents "${root}"
wget --continue --output-document "${path}" "${url}" 2>/dev/null
echo
echo "${path}"
cat "${path}"
for url in $(jq -r ".. | objects | .url?" "${path}" |
grep "\(/20241008/\|/pypy3.10-v7.3.17\)" |
grep --invert-match "\(armv7\|ppc64le\|s390x\)" |
grep --invert-match "\(apple-darwin\|macos\|win64\|windows-msvc\)"); do
case "$(basename "${url}")" in
cpython-3.13* | \
cpython-3.12* | \
cpython-3.11* | \
cpython-3.10* | \
pypy3.10*)
file="$(basename "${url}" | sed "s|%2B|+|g")"
dir="$(dirname "${url}")"
date="$(basename "${dir}")"
path="${root}/${date}"
mkdir --parents "${path}"
wget --continue --output-document "${path}/${file}" "${url}"
;;
*) ;;
esac
done

View file

@ -1,113 +0,0 @@
#! /usr/bin/env sh
set \
"pip" \
"setuptools" \
"wheel" \
\
"uv" \
\
"pelican" \
\
"hatch" \
\
"Sphinx" \
"sphinx-rtd-theme" \
\
"gitlint" \
\
"pydoclint" \
"pylint" \
"ruff" \
\
"pytest" \
\
"toml" \
\
"twine" \
\
"mypy" \
"pyright" \
\
"ruamel.yaml" \
"PyYAML" \
"types-PyYAML" \
\
"Cython" \
"maturin"
file="$(readlink --canonicalize-existing "${0}")"
root="$(dirname "${file}")"
root="${root}/root/py/pypi"
tmp="${root}/tmp"
rm --force --recursive "${root}"
for version in \
"os" \
"python3.13" \
"python3.12" \
"python3.11" \
"python3.10" \
"pypy3.10" \
; do
export VIRTUAL_ENV="/prj/venv/${version}"
export OLD_PATH="${PATH}"
export PATH="${VIRTUAL_ENV}/bin:${PATH}"
sub="${root}"
# sub="${root}/${version}"
python3 -m pip \
download \
--dest "${sub}" \
"${@}"
export PATH="${OLD_PATH}"
unset OLD_PATH VIRTUAL_ENV
done
prefix="Name: "
for wheel in "${sub}/"*; do
rm --force --recursive "${tmp}"
mkdir --parents "${tmp}"
echo
echo "${wheel}"
file="$(basename "${wheel}")"
case "${file}" in
*.tar.gz)
short="${file%.*}"
short="${short%.*}"
;;
*.whl)
short="${file%.*}"
;;
esac
file_name="$(echo "${short}" | cut -d "-" -f 1)"
file_version="$(echo "${short}" | cut -d "-" -f 2)"
case "${file}" in
*.tar.gz)
meta_data="${file_name}-${file_version}/${file_name}.egg-info/PKG-INFO"
if ! tar xf "${wheel}" -C "${tmp}" "${meta_data}"; then
meta_data="${file_name}-${file_version}/PKG-INFO"
tar xf "${wheel}" -C "${tmp}" "${meta_data}" || exit
fi
;;
*.whl)
meta_data="${file_name}-${file_version}.dist-info/METADATA"
unzip "${wheel}" "${meta_data}" -d "${tmp}" || exit
;;
esac
name="$(grep "${prefix}" "${tmp}/${meta_data}" | sed "s|${prefix}||")"
echo "${name}"
name="$(echo "${name}" | tr "[:upper:]" "[:lower:]")"
name="$(echo "${name}" | tr "." "-")"
name="$(echo "${name}" | tr "_" "-")"
name="$(echo "${name}" | tr -d "\r")"
echo "${name}"
simple="${sub}/simple/${name}"
mkdir --parents "${simple}"
mv -i "${wheel}" "${simple}/"
done
rm --force --recursive "${tmp}"