Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into edge
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbardino committed Jun 18, 2024
2 parents 238bd00 + 0c93f23 commit 7cd04a9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
ifndef MIG_ENV
MIG_ENV = 'local'
endif
ifeq ($(PY),2)
PYTHON_BIN = './envhelp/python2'
else
Expand All @@ -17,6 +20,14 @@ info:
@echo "'make test' - run the test suite"
@echo "'make PY=2 test' - run the test suite (python 2)"

.PHONY: fmt
fmt:
ifneq ($(MIG_ENV),'local')
@echo "unavailable outside local development environment"
@exit 1
endif
$(PYTHON_BIN) -m autopep8 --ignore E402 -i

.PHONY: clean
clean:
@rm -f ./envhelp/py2.imageid
Expand All @@ -35,10 +46,19 @@ test: dependencies
.PHONY: dependencies
dependencies: ./envhelp/venv/pyvenv.cfg ./envhelp/py3.depends

ifeq ($(MIG_ENV),'local')
./envhelp/py3.depends: $(REQS_PATH) local-requirements.txt
else
./envhelp/py3.depends: $(REQS_PATH)
endif
@rm -f ./envhelp/py3.depends
@echo "installing dependencies from $(REQS_PATH)"
@./envhelp/venv/bin/pip3 install -r $(REQS_PATH)
ifeq ($(MIG_ENV),'local')
@echo ""
@echo "installing development dependencies"
@./envhelp/venv/bin/pip3 install -r local-requirements.txt
endif
@touch ./envhelp/py3.depends

./envhelp/venv/pyvenv.cfg:
Expand Down
3 changes: 3 additions & 0 deletions local-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# migrid dependencies on a format suitable for pip install as described on
# https://pip.pypa.io/en/stable/reference/requirement-specifiers/
autopep8

0 comments on commit 7cd04a9

Please sign in to comment.