Prepare for public release on Gitea: simurgarray package names, community files, Gitea templates, pseudonymised P6 probe names
This commit is contained in:
1 parent
7b13720a4f
commit
dc8a5361fb
23 files changed
+309
-30
No files matched your search
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
# Build the release artifacts into dist/:
|
||||
# simurg-<v>-py3-none-any.whl + simurg-<v>.tar.gz (pure Python)
|
||||
# simurg_core-<v>-cp312-abi3-manylinux_2_28_{aarch64,x86_64}.whl (compiled kernels, Python >= 3.12)
|
||||
# simurgarray-<v>-py3-none-any.whl + simurgarray-<v>.tar.gz (pure Python)
|
||||
# simurgarray_core-<v>-cp312-abi3-manylinux_2_28_{aarch64,x86_64}.whl (compiled kernels, Python >= 3.12)
|
||||
# Portable Linux wheels are linked against glibc 2.28 with `maturin --zig` (cross-compiles the other architecture).
|
||||
# Needs: uv, a Rust toolchain (rustup), ~60 MB for zig on first use.
|
||||
# bash scripts/build_dist.sh [aarch64|x86_64|all] (default: all)
|
||||
@@ -10,7 +10,7 @@ cd "$(dirname "$0")/.."
|
||||
export PATH="$HOME/.cargo/bin:$PATH"
|
||||
WHICH=${1:-all}
|
||||
mkdir -p dist
|
||||
uv build -o dist # sdist + pure wheel of simurg
|
||||
uv build -o dist # sdist + pure wheel of simurgarray
|
||||
MATURIN="uvx --from maturin[zig]>=1.7,<2 maturin"
|
||||
for arch in aarch64 x86_64; do
|
||||
[[ $WHICH == all || $WHICH == "$arch" ]] || continue
|
||||
|
||||
@@ -29,10 +29,10 @@ ls -la dist
|
||||
echo "=== 2. pip install into fresh venvs $(date -u +%T) ==="
|
||||
PY=/usr/bin/python3
|
||||
$PY --version
|
||||
CORE=$(ls dist/simurg_core-*manylinux_2_28_$ARCH.whl 2>/dev/null | head -1)
|
||||
$PY -m venv $W/fresh && $W/fresh/bin/pip install -q dist/simurg-*-py3-none-any.whl "$CORE" \
|
||||
CORE=$(ls dist/simurgarray_core-*manylinux_2_28_$ARCH.whl 2>/dev/null | head -1)
|
||||
$PY -m venv $W/fresh && $W/fresh/bin/pip install -q dist/simurgarray-*-py3-none-any.whl "$CORE" \
|
||||
&& step pip_install ok || step pip_install FAILED
|
||||
$PY -m venv $W/pure && $W/pure/bin/pip install -q dist/simurg-*-py3-none-any.whl \
|
||||
$PY -m venv $W/pure && $W/pure/bin/pip install -q dist/simurgarray-*-py3-none-any.whl \
|
||||
&& step pip_install_pure ok || step pip_install_pure FAILED
|
||||
$W/fresh/bin/python -c "from simurg._core import backend; print('fresh:', backend())"
|
||||
$W/pure/bin/python -c "from simurg._core import backend; print('pure:', backend())"
|
||||
@@ -87,7 +87,7 @@ if $C/conda install -y -q -n base conda-build > $R/conda.log 2>&1 \
|
||||
&& $C/conda build -c conda-forge --output-folder $W/condabld packaging/conda/simurg-core packaging/conda/simurg \
|
||||
>> $R/conda.log 2>&1; then
|
||||
step conda_build ok
|
||||
$C/conda create -y -q -p $W/cenv -c $W/condabld -c conda-forge simurg simurg-core >> $R/conda.log 2>&1 \
|
||||
$C/conda create -y -q -p $W/cenv -c $W/condabld -c conda-forge simurgarray simurgarray-core >> $R/conda.log 2>&1 \
|
||||
&& $W/cenv/bin/simurg --version \
|
||||
&& $W/cenv/bin/python -c "from simurg._core import backend; print('conda:', backend())" \
|
||||
&& $W/cenv/bin/simurg genotype --bpm $BPM --egt $EGT --idats $W/tut_fresh/idats --out $W/conda_run/gtc \
|
||||
|
||||
Reference in new issue
Block a user