Compare commits
16 commits
b63f3a4278
...
64f4c09230
Author | SHA1 | Date | |
---|---|---|---|
64f4c09230 | |||
b57ab0543c | |||
c6e778c89f | |||
690c6b968f | |||
7e5012384a | |||
b1c1c040bc | |||
cbd7f6f1a2 | |||
dec2469cad | |||
87a64f2ec6 | |||
df39453259 | |||
3fb974b8ea | |||
0dc5013c94 | |||
e4800726a3 | |||
6e871d4f4c | |||
97b07723ad | |||
edeca95f19 |
5 changed files with 65 additions and 11 deletions
|
@ -9,11 +9,11 @@ ROOT = 'rsync://mirrors.dotsrc.org/alpine'
|
||||||
ROOT = 'rsync://uk.alpinelinux.org/alpine'
|
ROOT = 'rsync://uk.alpinelinux.org/alpine'
|
||||||
ARCH = 'x86_64'
|
ARCH = 'x86_64'
|
||||||
VERSIONS = [
|
VERSIONS = [
|
||||||
'v3.20',
|
'v3.21',
|
||||||
]
|
]
|
||||||
|
|
||||||
TARGETS = {
|
TARGETS = {
|
||||||
'v3.20': [
|
'v3.21': [
|
||||||
'releases',
|
'releases',
|
||||||
'main',
|
'main',
|
||||||
'community',
|
'community',
|
||||||
|
|
48
incus.py
Executable file
48
incus.py
Executable file
|
@ -0,0 +1,48 @@
|
||||||
|
#! /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,11 +4,8 @@ file="$(readlink --canonicalize-existing "${0}")"
|
||||||
root="$(dirname "${file}")"
|
root="$(dirname "${file}")"
|
||||||
root="${root}/root/py/cpypy"
|
root="${root}/root/py/cpypy"
|
||||||
|
|
||||||
data="download-metadata.json"
|
path="${root}/download-metadata.json"
|
||||||
|
url="https://github.com/astral-sh/uv/raw/refs/heads/main/crates/uv-python/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}"
|
rm --force --recursive "${root}"
|
||||||
mkdir --parents "${root}"
|
mkdir --parents "${root}"
|
||||||
|
@ -18,7 +15,8 @@ echo "${path}"
|
||||||
cat "${path}"
|
cat "${path}"
|
||||||
|
|
||||||
for url in $(jq -r ".. | objects | .url?" "${path}" |
|
for url in $(jq -r ".. | objects | .url?" "${path}" |
|
||||||
grep "\(/20241008/\|/pypy3.10-v7.3.17\)" |
|
grep "\(/20250311/\|/pypy3.11-v7.3.19\)" |
|
||||||
|
grep --invert-match "debug" |
|
||||||
grep --invert-match "\(armv7\|ppc64le\|s390x\)" |
|
grep --invert-match "\(armv7\|ppc64le\|s390x\)" |
|
||||||
grep --invert-match "\(apple-darwin\|macos\|win64\|windows-msvc\)"); do
|
grep --invert-match "\(apple-darwin\|macos\|win64\|windows-msvc\)"); do
|
||||||
case "$(basename "${url}")" in
|
case "$(basename "${url}")" in
|
||||||
|
@ -26,7 +24,7 @@ for url in $(jq -r ".. | objects | .url?" "${path}" |
|
||||||
cpython-3.12* | \
|
cpython-3.12* | \
|
||||||
cpython-3.11* | \
|
cpython-3.11* | \
|
||||||
cpython-3.10* | \
|
cpython-3.10* | \
|
||||||
pypy3.10*)
|
pypy3.11*)
|
||||||
file="$(basename "${url}" | sed "s|%2B|+|g")"
|
file="$(basename "${url}" | sed "s|%2B|+|g")"
|
||||||
dir="$(dirname "${url}")"
|
dir="$(dirname "${url}")"
|
||||||
date="$(basename "${dir}")"
|
date="$(basename "${dir}")"
|
||||||
|
|
10
py.pypi.sh
10
py.pypi.sh
|
@ -7,6 +7,8 @@ set \
|
||||||
\
|
\
|
||||||
"uv" \
|
"uv" \
|
||||||
\
|
\
|
||||||
|
"Lektor" \
|
||||||
|
"Nikola" \
|
||||||
"pelican" \
|
"pelican" \
|
||||||
\
|
\
|
||||||
"hatch" \
|
"hatch" \
|
||||||
|
@ -14,7 +16,9 @@ set \
|
||||||
"Sphinx" \
|
"Sphinx" \
|
||||||
"sphinx-rtd-theme" \
|
"sphinx-rtd-theme" \
|
||||||
\
|
\
|
||||||
|
"commitizen" \
|
||||||
"gitlint" \
|
"gitlint" \
|
||||||
|
"GitPython" \
|
||||||
\
|
\
|
||||||
"pydoclint" \
|
"pydoclint" \
|
||||||
"pylint" \
|
"pylint" \
|
||||||
|
@ -33,6 +37,10 @@ set \
|
||||||
"PyYAML" \
|
"PyYAML" \
|
||||||
"types-PyYAML" \
|
"types-PyYAML" \
|
||||||
\
|
\
|
||||||
|
"yt-dlp" \
|
||||||
|
\
|
||||||
|
"ansible" \
|
||||||
|
\
|
||||||
"Cython" \
|
"Cython" \
|
||||||
"maturin"
|
"maturin"
|
||||||
|
|
||||||
|
@ -49,7 +57,7 @@ for version in \
|
||||||
"python3.12" \
|
"python3.12" \
|
||||||
"python3.11" \
|
"python3.11" \
|
||||||
"python3.10" \
|
"python3.10" \
|
||||||
"pypy3.10" \
|
"pypy3.11" \
|
||||||
; do
|
; do
|
||||||
export VIRTUAL_ENV="/prj/venv/${version}"
|
export VIRTUAL_ENV="/prj/venv/${version}"
|
||||||
export OLD_PATH="${PATH}"
|
export OLD_PATH="${PATH}"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
ROOT = 'rsync://fr2.rpmfind.net/linux/epel'
|
ROOT = 'rsync://mirror.in2p3.fr/pub/epel'
|
||||||
ARCH = 'x86_64'
|
ARCH = 'x86_64'
|
||||||
VERSIONS = [
|
VERSIONS = [
|
||||||
'8',
|
'8',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue