Skip to content

Commit 1a3ed90

Browse files
committed
Parse DJ_VERSION from pyproject.toml
1 parent 16e4347 commit 1a3ed90

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docker-compose-build.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# PY_VER=3.9 IMAGE=djbase DISTRO=debian DJ_VERSION=$(grep -oP '\d+\.\d+\.\d+' datajoint/version.py) HOST_UID=$(id -u) docker compose -f docker-compose-build.yaml up --exit-code-from app --build
1+
# PY_VER=3.9 IMAGE=djbase DISTRO=debian DJ_VERSION=$(grep -m 1 version pyproject.toml | grep -oP '\d+\.\d+\.\d+') HOST_UID=$(id -u) docker compose -f docker-compose-build.yaml up --exit-code-from app --build
22
#
33
# Intended for updating dependencies and docker image.
44
# Used to build release artifacts.

docker-compose.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# DJ_VERSION=$(grep -oP '\d+\.\d+\.\d+' datajoint/version.py) docker compose --profile test up --build --exit-code-from djtest djtest
1+
# DJ_VERSION=$(grep -m 1 version pyproject.toml | grep -oP '\d+\.\d+\.\d+') docker compose --profile test up --build --exit-code-from djtest djtest
22
services:
33
db:
44
image: datajoint/mysql:${MYSQL_VER:-8.0}

docs/docker-compose.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ services:
2727
elif echo "$${MODE}" | grep -iE "qa|build" &>/dev/null; then
2828
git branch -D gh-pages || true
2929
git fetch $${UPSTREAM_REPO} gh-pages:gh-pages || true
30-
mike deploy --config-file ./docs/mkdocs.yaml -u $$(grep -oE '\d+\.\d+' /main/$${PACKAGE}/version.py) latest
30+
mike deploy --config-file ./docs/mkdocs.yaml -u $$(grep -m 1 version /main/pyproject.toml | grep -oP '\d+\.\d+\.\d+') latest
3131
mike set-default --config-file ./docs/mkdocs.yaml latest
3232
if echo "$${MODE}" | grep -i qa &>/dev/null; then
3333
mike serve --config-file ./docs/mkdocs.yaml -a 0.0.0.0:80

0 commit comments

Comments
 (0)