-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (31 loc) · 888 Bytes
/
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
# Install the pandoc(1) first to run this command
# Ubuntu: sudo apt-get install pandoc
# macOS: brew install pandoc
README.rst: README.md
pandoc --from=markdown --to=rst --output=README.rst README.md
# Install the package
install: README.rst
python setup.py develop
.PHONY: install
# Upload the package to the pypi server
upload-to-pypi: README.rst
python setup.py sdist upload
.PHONY: upload-to-pypi
# Upload the package to the test pypi server
upload-to-testpypi: README.rst
python setup.py sdist upload -r testpypi
.PHONY: upload-to-testpypi
lint:
flake8
# Perform the static type checker
type-check:
MYPYPATH=stubs mypy kumparan/
.PHONY: type-check
stackdriver-test: type-check lint
rm -f *.log
python tests/stackdriver_test.py
# Perfrom the test
test: type-check lint stackdriver-test
python tests/service_account_test.py
python tests/utils_test.py
.PHONY: test