-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (26 loc) · 810 Bytes
/
Makefile
File metadata and controls
36 lines (26 loc) · 810 Bytes
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
.PHONY: build install test
VERSION := $(shell git describe --tags 2> /dev/null || echo unknown)
PYTHON=python3
PIP=pip3
default: build install
build:
$(PIP) install -r requirements.txt
$(PYTHON) -m build --wheel
install:
$(PIP) install ./dist/*.whl --force-reinstall
test:
$(PYTHON) -m unittest discover
release:
$(PIP) install -r requirements.txt
$(PYTHON) -m build --wheel -o ./build/
docker:
docker build -t "python-featurebase:$(VERSION)" .
@echo "docker build complete python-featurebase:$(VERSION)"
docker-test:
make docker
docker-compose up --abort-on-container-exit
docker-release:
make docker
docker create --name python-featurebase-build python-featurebase:$(VERSION)
docker cp python-featurebase-build:/python-featurebase/dist/ ./build/
docker rm python-featurebase-build