-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
106 lines (84 loc) · 2.15 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
test:
rm -rf tests/__pycache__
python3 -m unittest tests/*
dev-docs:
pdoc --http : app
docs:
pdoc --html --output-dir docs app
# SDK
sdk-dev:
rm -rf tests/__pycache__
python3 -m unittest tests/test_sdk_cli.py
python3 main.py
sdk-test:
echo "Make sure to start mock_server first and you have test_files folder available"
rm -rf tests/__pycache__
python3 -m unittest tests/test_sdk_cli.py
rm -rf tests/__pycache__
python3 -m unittest tests/*
rm -rf docker-compose.yml
rm -rf main_example.py
rm -rf main.py
rm -rf app
rm -rf app.log
rm -rf .dockerignore
rm -rf .github
rm -rf cloudformation-templates
rm -rf __pycache__
rm -rf CHANGELOG.md
rm -rf docker-entrypoint.sh
rm -rf Dockerfile
rm -rf Dockerfile.local
rm -rf Procfile
rm -rf Procfile.local
rm -rf version.txt
clean-sdk:
rm -rf docker-compose.yml
rm -rf main_example.py
rm -rf main.py
rm -rf app
rm -rf app.log
rm -rf .dockerignore
rm -rf .github
rm -rf cloudformation-templates
rm -rf __pycache__
rm -rf CHANGELOG.md
rm -rf docker-entrypoint.sh
rm -rf Dockerfile
rm -rf Dockerfile.local
rm -rf Procfile
rm -rf Procfile.local
rm -rf version.txt
sdk-dev-docs:
pdoc --http : licenseware
sdk-docs:
export ENVIRONMENT=desktop && pdoc --html --output-dir sdk-docs licenseware
force-install-sdk:
pip3 uninstall -y licenseware
python3 setup.py bdist_wheel sdist
pip3 install ./dist/licenseware-2.0.3-py3-none-any.whl --force-reinstall
rm -rf build
rm -rf licenseware.egg-info
rm -rf wheel_sdk
mv dist wheel_sdk
install-sdk:
pip3 uninstall -y licenseware
python3 setup.py bdist_wheel sdist
pip3 install ./dist/licenseware-2.0.3-py3-none-any.whl
rm -rf build
rm -rf licenseware.egg-info
rm -rf wheel_sdk
mv dist wheel_sdk
build-wheel:
python3 setup.py bdist_wheel sdist
rm -rf build
rm -rf licenseware.egg-info
mv dist wheel_sdk
# Build local image
image_tag=latest
build-image:
docker build -t ghcr.io/licenseware/licenseware-sdk-v2:$(image_tag) .
build-odbc-image:
docker build --target odbc -t ghcr.io/licenseware/licenseware-sdk-v2:$(image_tag)-odbc .
build-image-no-cache:
docker build -t ghcr.io/licenseware/licenseware-sdk-v2:$(image_tag) . --no-cache