-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (34 loc) · 984 Bytes
/
Makefile
File metadata and controls
44 lines (34 loc) · 984 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
36
37
38
39
40
41
42
43
44
.PHONY: venv test
venv:
python3 -m venv venv &&\
. venv/bin/activate &&\
pip install --upgrade pip setuptools &&\
pip install -r requirements.txt -r requirements-dev.txt &&\
pip install -e .
@echo Activate your venv:
@echo . venv/bin/activate
setup-test:
python3 -m venv venv &&\
. venv/bin/activate &&\
pip install -r requirements.txt -r requirements-dev.txt &&\
pip install -e .
test:
cd tests && python -m pytest -vv --tb=short -ra $(test)
run-local:
cd sample/dockerfiled &&\
JOB_NAME=primer JOB_VERSION=0.0.1 python main.py
build-docker:
cd sample/dockerfiled &&\
docker buildx build -t sample-primer-job:latest -f Dockerfile .
run-docker: build-docker
docker run --rm -it --name sample-primer-job -p 7000:7000 sample-primer-job:latest
run-racetrack:
racetrack deploy sample/dockerfiled
clean:
rm -rf build/
rm -rf dist/
rm -rf ./*.egg-info
build:
python3 -m build --sdist --wheel
release: clean build
python3 -m twine upload -u __token__ dist/*