-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrun-local-tiledb-py.sh
65 lines (56 loc) · 1.67 KB
/
run-local-tiledb-py.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash
set -eu
# Attempt to locally replicate GitHub Actions workflow
#
# Usage: bash run-local-tiledb-py.sh [TRUE/FALSE]
#
# Pass argument TRUE to push changes to feedstocks
#
# Requires SSH keys for an account that has push access to feedstock repos
#
# Requires mamba
#
# Run from root of nightlies repo
PUSH="${1-FALSE}"
echo "Push to GitHub: $PUSH"
export TZ="America/New_York"
rm -rf tiledb-py-feedstock
git clone --quiet --depth 1 [email protected]:TileDB-Inc/tiledb-py-feedstock.git tiledb-py-feedstock
rm -rf TileDB-Py
git clone --quiet [email protected]:TileDB-Inc/TileDB-Py.git TileDB-Py
bash scripts/obtain-date.sh
if conda env list | grep -q "env-nightlies-tiledb-py"
then
echo "Conda env already exists: env-nightlies-tiledb-py"
else
echo "Installing conda env 'env-nightlies-tiledb-py'"
mamba create --yes --quiet -n env-nightlies-tiledb-py \
-c conda-forge --override-channels \
conda-smithy \
cmake \
cython \
numpy \
pybind11 \
ruamel.yaml \
ruamel.yaml.jinja2 \
setuptools \
setuptools-scm \
wheel
fi
source activate env-nightlies-tiledb-py
mamba update --yes --quiet conda-smithy
bash scripts/tiledb-py/obtain-version.sh
bash scripts/obtain-commit.sh TileDB-Py
bash scripts/pull-upstream-feedstock.sh tiledb-py-feedstock
python scripts/tiledb-py/update-recipe.py
bash scripts/update-channels.sh tiledb-py-feedstock
bash scripts/add-and-commit.sh tiledb-py-feedstock
bash scripts/rerender-feedstock.sh tiledb-py-feedstock
source deactivate
if [[ "$PUSH" == "TRUE" || "$PUSH" == "True" || "$PUSH" == "true" ]]
then
echo "Pushing to GitHub"
bash scripts/push-update.sh tiledb-py-feedstock
else
echo "Did **not** push to GitHub"
fi