Compare commits
No commits in common. "dev" and "main" have entirely different histories.
4 changed files with 13 additions and 168 deletions
19
deb.fix.sh
19
deb.fix.sh
|
@ -4,7 +4,7 @@ ROOT="$(dirname "${FILE}")"
|
||||||
|
|
||||||
ERROR='→ ERROR! ERROR! ERROR! ←'
|
ERROR='→ ERROR! ERROR! ERROR! ←'
|
||||||
DISTS=(
|
DISTS=(
|
||||||
'bookworm' 'bookworm-backports' 'bookworm-updates'
|
'bookworm' 'bookworm-backports' 'bookworm-updates'
|
||||||
)
|
)
|
||||||
MISSING='Contents-all.gz'
|
MISSING='Contents-all.gz'
|
||||||
SECTIONS=('main' 'non-free-firmware' 'contrib' 'non-free')
|
SECTIONS=('main' 'non-free-firmware' 'contrib' 'non-free')
|
||||||
|
@ -13,12 +13,13 @@ DEBIAN_ROOT='debian/dists'
|
||||||
LOCAL_ROOT="${ROOT}/root/deb/debian/${DEBIAN_ROOT}"
|
LOCAL_ROOT="${ROOT}/root/deb/debian/${DEBIAN_ROOT}"
|
||||||
REMOTE_ROOT="https://deb.debian.org/${DEBIAN_ROOT}"
|
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}"
|
||||||
done
|
fi
|
||||||
|
done
|
||||||
done
|
done
|
||||||
|
|
10
msys2.fix.sh
10
msys2.fix.sh
|
@ -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
|
||||||
|
|
39
py.cpypy.sh
39
py.cpypy.sh
|
@ -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
|
|
113
py.pypi.sh
113
py.pypi.sh
|
@ -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}"
|
|
Loading…
Reference in a new issue