initial commit
This commit is contained in:
38
Makefile
Normal file
38
Makefile
Normal file
@@ -0,0 +1,38 @@
|
||||
PYTHON_VERSION := 3.12
|
||||
GIT_BRANCH = $(shell git branch --show-current)
|
||||
|
||||
all: setup
|
||||
|
||||
clean:
|
||||
rm -rf .venv
|
||||
|
||||
setup: check
|
||||
pyenv install ${PYTHON_VERSION} --skip-existing \
|
||||
&& pyenv local ${PYTHON_VERSION} \
|
||||
&& poetry env use ${PYTHON_VERSION} \
|
||||
&& poetry install \
|
||||
&& poetry run pre-commit install
|
||||
|
||||
check: pyenv-exists poetry-exists
|
||||
|
||||
pyenv-exists: ; @which pyenv > /dev/null
|
||||
|
||||
poetry-exists: ; @which poetry > /dev/null
|
||||
|
||||
render-in-esta-python:
|
||||
git clone ssh://git@codessh.sbb.ch:7999/kd_esta_blueprints/esta-python.git /tmp/esta-python
|
||||
(cd /tmp/esta-python && git branch ${GIT_BRANCH})
|
||||
(cd /tmp/esta-python && git checkout ${GIT_BRANCH})
|
||||
poetry run copier copy --force \
|
||||
--data project_name="ESTA Python" \
|
||||
--data author_first_name="Your First Name" \
|
||||
--data author_last_name="Your Last Name" \
|
||||
--data bitbucket_organization=KD_ESTA_BLUEPRINTS \
|
||||
--data pypi_repository="esta.pypi" \
|
||||
--data docker_repository="esta.docker" \
|
||||
--data helm_repository="esta.helm.local" \
|
||||
. /tmp/esta-python
|
||||
(cd /tmp/esta-python && git add -A)
|
||||
|
||||
remove-rendered-template:
|
||||
rm -rf /tmp/esta-python
|
||||
Reference in New Issue
Block a user