Compare commits
No commits in common. "64f4c092307311b9e5a4b32e7f3881b7294a5c15" and "b63f3a42783b5719ea5ea309fd7a004194870b65" have entirely different histories.
64f4c09230
...
b63f3a4278
5 changed files with 11 additions and 65 deletions
|
@ -9,11 +9,11 @@ ROOT = 'rsync://mirrors.dotsrc.org/alpine'
|
|||
ROOT = 'rsync://uk.alpinelinux.org/alpine'
|
||||
ARCH = 'x86_64'
|
||||
VERSIONS = [
|
||||
'v3.21',
|
||||
'v3.20',
|
||||
]
|
||||
|
||||
TARGETS = {
|
||||
'v3.21': [
|
||||
'v3.20': [
|
||||
'releases',
|
||||
'main',
|
||||
'community',
|
||||
|
|
48
incus.py
48
incus.py
|
@ -1,48 +0,0 @@
|
|||
#! /usr/bin/env python3
|
||||
"""Mirror local Incus."""
|
||||
|
||||
from pathlib import Path
|
||||
import os
|
||||
|
||||
from rwx.fs import make_directory, wipe
|
||||
|
||||
|
||||
ROOT = "https://images.linuxcontainers.org"
|
||||
|
||||
IMAGES = f"{ROOT}/images"
|
||||
META = f"{ROOT}/meta"
|
||||
|
||||
STREAMS = f"{META}/simplestreams/v1"
|
||||
|
||||
WANTED = {
|
||||
"architectures": [
|
||||
"amd64",
|
||||
"arm64",
|
||||
],
|
||||
"images": {
|
||||
"debian",
|
||||
"arm64",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
||||
def main() -> None:
|
||||
root = Path(__file__).resolve().parent / "root"
|
||||
# root path
|
||||
root = root / "incus"
|
||||
wipe(root)
|
||||
make_directory(root)
|
||||
# symlink
|
||||
(root / "streams").symlink_to(os.sep.join(["meta", "simplestreams"]))
|
||||
# meta
|
||||
meta = root / "meta"
|
||||
# streams
|
||||
streams = meta / "simplestreams" / "v1"
|
||||
make_directory(streams)
|
||||
# images
|
||||
streams = root / "images"
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
12
py.cpypy.sh
12
py.cpypy.sh
|
@ -4,8 +4,11 @@ file="$(readlink --canonicalize-existing "${0}")"
|
|||
root="$(dirname "${file}")"
|
||||
root="${root}/root/py/cpypy"
|
||||
|
||||
path="${root}/download-metadata.json"
|
||||
url="https://github.com/astral-sh/uv/raw/refs/heads/main/crates/uv-python/download-metadata.json"
|
||||
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}"
|
||||
|
@ -15,8 +18,7 @@ echo "${path}"
|
|||
cat "${path}"
|
||||
|
||||
for url in $(jq -r ".. | objects | .url?" "${path}" |
|
||||
grep "\(/20250311/\|/pypy3.11-v7.3.19\)" |
|
||||
grep --invert-match "debug" |
|
||||
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
|
||||
|
@ -24,7 +26,7 @@ for url in $(jq -r ".. | objects | .url?" "${path}" |
|
|||
cpython-3.12* | \
|
||||
cpython-3.11* | \
|
||||
cpython-3.10* | \
|
||||
pypy3.11*)
|
||||
pypy3.10*)
|
||||
file="$(basename "${url}" | sed "s|%2B|+|g")"
|
||||
dir="$(dirname "${url}")"
|
||||
date="$(basename "${dir}")"
|
||||
|
|
10
py.pypi.sh
10
py.pypi.sh
|
@ -7,8 +7,6 @@ set \
|
|||
\
|
||||
"uv" \
|
||||
\
|
||||
"Lektor" \
|
||||
"Nikola" \
|
||||
"pelican" \
|
||||
\
|
||||
"hatch" \
|
||||
|
@ -16,9 +14,7 @@ set \
|
|||
"Sphinx" \
|
||||
"sphinx-rtd-theme" \
|
||||
\
|
||||
"commitizen" \
|
||||
"gitlint" \
|
||||
"GitPython" \
|
||||
\
|
||||
"pydoclint" \
|
||||
"pylint" \
|
||||
|
@ -37,10 +33,6 @@ set \
|
|||
"PyYAML" \
|
||||
"types-PyYAML" \
|
||||
\
|
||||
"yt-dlp" \
|
||||
\
|
||||
"ansible" \
|
||||
\
|
||||
"Cython" \
|
||||
"maturin"
|
||||
|
||||
|
@ -57,7 +49,7 @@ for version in \
|
|||
"python3.12" \
|
||||
"python3.11" \
|
||||
"python3.10" \
|
||||
"pypy3.11" \
|
||||
"pypy3.10" \
|
||||
; do
|
||||
export VIRTUAL_ENV="/prj/venv/${version}"
|
||||
export OLD_PATH="${PATH}"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
import os
|
||||
import subprocess
|
||||
|
||||
ROOT = 'rsync://mirror.in2p3.fr/pub/epel'
|
||||
ROOT = 'rsync://fr2.rpmfind.net/linux/epel'
|
||||
ARCH = 'x86_64'
|
||||
VERSIONS = [
|
||||
'8',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue