-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmakefile
59 lines (43 loc) · 1.09 KB
/
makefile
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
PACKAGE_NAME = SBG-TIR-L4-JET
ENVIRONMENT_NAME = $(PACKAGE_NAME)
DOCKER_IMAGE_NAME = $(shell echo $(PACKAGE_NAME) | tr '[:upper:]' '[:lower:]')
clean:
rm -rf *.o *.out *.log
rm -rf build/
rm -rf dist/
rm -rf *.egg-info
rm -rf .pytest_cache
find . -type d -name "__pycache__" -exec rm -rf {} +
test:
pytest
build:
python -m build
twine-upload:
twine upload dist/*
dist:
make clean
make build
make twine-upload
install:
pip install -e .[dev]
uninstall:
pip uninstall $(PACKAGE_NAME)
reinstall:
make uninstall
make install
environment:
mamba create -y -n $(ENVIRONMENT_NAME) -c conda-forge python=3.10
remove-environment:
mamba env remove -y -n $(ENVIRONMENT_NAME)
colima-start:
colima start -m 16 -a x86_64 -d 100
docker-build:
docker build -t $(DOCKER_IMAGE_NAME):latest .
docker-build-environment:
docker build --target environment -t $(DOCKER_IMAGE_NAME):latest .
docker-build-installation:
docker build --target installation -t $(DOCKER_IMAGE_NAME):latest .
docker-interactive:
docker run -it $(DOCKER_IMAGE_NAME) fish
docker-remove:
docker rmi -f $(DOCKER_IMAGE_NAME)