Compare commits
38 commits
Author | SHA1 | Date | |
---|---|---|---|
b63f3a4278 | |||
7aedeacab3 | |||
6dce786f1d | |||
03bc5549bd | |||
23454baf85 | |||
c892216dd6 | |||
135f4fe65e | |||
deb5145182 | |||
5b1656b7aa | |||
c455f942b9 | |||
2f2ba172d8 | |||
1a4c733b43 | |||
e71613dfc7 | |||
f6128a4632 | |||
ab6f9667b1 | |||
37277d1dc2 | |||
c271c7de58 | |||
719aa2f9fd | |||
37af0dbe2d | |||
771878775e | |||
71e7b74f75 | |||
b5bcbf845e | |||
94956d1c36 | |||
c99fa38daa | |||
efad854652 | |||
a596a8868c | |||
3cd1a1d718 | |||
8c4e1feeec | |||
e6d5d36347 | |||
ffc2370fde | |||
583037eea4 | |||
72f4d4fd18 | |||
31eb6e63bf | |||
3de52a3dd4 | |||
0b98aaa996 | |||
fe85a9b527 | |||
6f0f8baf4d | |||
b7138b9b72 |
4 changed files with 168 additions and 13 deletions
15
deb.fix.sh
15
deb.fix.sh
|
@ -4,7 +4,7 @@ ROOT="$(dirname "${FILE}")"
|
|||
|
||||
ERROR='→ ERROR! ERROR! ERROR! ←'
|
||||
DISTS=(
|
||||
'bookworm' 'bookworm-backports' 'bookworm-updates'
|
||||
'bookworm' 'bookworm-backports' 'bookworm-updates'
|
||||
)
|
||||
MISSING='Contents-all.gz'
|
||||
SECTIONS=('main' 'non-free-firmware' 'contrib' 'non-free')
|
||||
|
@ -13,13 +13,12 @@ DEBIAN_ROOT='debian/dists'
|
|||
LOCAL_ROOT="${ROOT}/root/deb/debian/${DEBIAN_ROOT}"
|
||||
REMOTE_ROOT="https://deb.debian.org/${DEBIAN_ROOT}"
|
||||
|
||||
for dist in "${DISTS[@]}" ; do
|
||||
for section in "${SECTIONS[@]}" ; do
|
||||
cd "${LOCAL_ROOT}/${dist}/${section}"
|
||||
rm --force "${MISSING}"
|
||||
wget "${REMOTE_ROOT}/${dist}/${section}/${MISSING}" &> /dev/null
|
||||
if [ ${?} -ne 0 ] ; then
|
||||
for dist in "${DISTS[@]}"; do
|
||||
for section in "${SECTIONS[@]}"; do
|
||||
cd "${LOCAL_ROOT}/${dist}/${section}" ||
|
||||
echo "${ERROR}"
|
||||
rm --force "${MISSING}"
|
||||
wget "${REMOTE_ROOT}/${dist}/${section}/${MISSING}" &>/dev/null ||
|
||||
echo "${ERROR}"
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
|
10
msys2.fix.sh
10
msys2.fix.sh
|
@ -1,13 +1,17 @@
|
|||
#! /usr/bin/env bash
|
||||
FILE="$(realpath "${BASH_SOURCE[0]}")"
|
||||
cd "$(dirname "${FILE}")"
|
||||
cd "$(dirname "${FILE}")" ||
|
||||
exit
|
||||
|
||||
ROOT='root/msys2'
|
||||
|
||||
rm s/msys/*.tar
|
||||
rm i/mingw/mingw64/*.tar
|
||||
|
||||
rm -fr "${ROOT}/msys/x86_64" ; mv -i s/msys "${ROOT}/msys/x86_64"
|
||||
rm -fr "${ROOT}/mingw" ; mv -i i/mingw "${ROOT}/"
|
||||
rm -fr "${ROOT}/msys/x86_64"
|
||||
mv -i s/msys "${ROOT}/msys/x86_64"
|
||||
|
||||
rm -fr "${ROOT}/mingw"
|
||||
mv -i i/mingw "${ROOT}/"
|
||||
|
||||
rmdir s i
|
||||
|
|
39
py.cpypy.sh
Executable file
39
py.cpypy.sh
Executable file
|
@ -0,0 +1,39 @@
|
|||
#! /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
Executable file
113
py.pypi.sh
Executable file
|
@ -0,0 +1,113 @@
|
|||
#! /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