-
Notifications
You must be signed in to change notification settings - Fork 142
/
Makefile
37 lines (31 loc) · 1.56 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
COLOR_OK=\\x1b[0;32m
COLOR_NONE=\x1b[0m
COLOR_ERROR=\x1b[31;01m
COLOR_WARNING=\x1b[33;01m
COLOR_OKTA=\x1B[34;01m
VERSION=$(shell grep -E -o '(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?' ./okta/__init__.py)
help:
@echo "$(COLOR_OKTA) ___ _ _______ _$(COLOR_NONE)"
@echo "$(COLOR_OKTA) / _ \| |/ /_ _|/ \ $(COLOR_NONE)"
@echo "$(COLOR_OKTA)| | | | ' / | | / _ \ $(COLOR_NONE)"
@echo "$(COLOR_OKTA)| |_| | . \ | |/ ___ \ $(COLOR_NONE)"
@echo "$(COLOR_OKTA) \___/|_|\_\ |_/_/ \_\ $(COLOR_NONE)"
@echo ""
@echo "$(COLOR_OK)Okta SDK Python$(COLOR_NONE) version $(COLOR_WARNING)$(VERSION)$(COLOR_NONE)"
@echo ""
@echo "$(COLOR_WARNING)Usage:$(COLOR_NONE)"
@echo "$(COLOR_OK) make [command]$(COLOR_NONE)"
@echo ""
@echo "$(COLOR_WARNING)Available commands:$(COLOR_NONE)"
@echo "$(COLOR_OK) help$(COLOR_NONE) Show this help message"
@echo "$(COLOR_WARNING)build$(COLOR_NONE)"
@echo "$(COLOR_OK) build:dist Build the distribution for publishing$(COLOR_NONE)"
@echo "$(COLOR_WARNING)publish$(COLOR_NONE)"
@echo "$(COLOR_OK) publish:test Publish distribution to testpypi (Will ask for credentials)$(COLOR_NONE)"
@echo "$(COLOR_OK) publish:prod Publish distribution to pypi (Will ask for credentials)$(COLOR_NONE)"
build\:dist:
python3 setup.py sdist bdist_wheel
publish\:test:
python3 -m twine upload --repository testpypi dist/*
publish\:prod:
python3 -m twine upload dist/*