forked from SAML-Toolkits/python3-saml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (34 loc) · 739 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
40
41
42
43
PIP=pip
BLACK=black
FLAKE8=flake8
PYTEST=pytest
COVERAGE=coverage
COVERAGE_CONFIG=tests/coverage.rc
COVERALLS=coveralls
MAIN_SOURCE=src/onelogin/saml2
DEMOS=demo-django demo-flask demo-tornado demo_pyramid
TESTS=tests/src/OneLogin/saml2_tests
SOURCES=$(MAIN_SOURCE) $(DEMOS) $(TESTS)
install-req:
$(PIP) install .
install-test:
$(PIP) install -e ".[test]"
install-lint:
$(PIP) install -e ".[lint]"
pytest:
$(PYTEST)
coverage:
$(COVERAGE) run -m $(PYTEST)
$(COVERAGE) report -m
coveralls:
$(COVERALLS)
black:
$(BLACK) $(SOURCES)
flake8:
$(FLAKE8) $(SOURCES)
clean:
rm -rf .pytest_cache/
rm -rf .eggs/
find . -type d -name "__pycache__" -exec rm -r {} +
find . -type d -name "*.egg-info" -exec rm -r {} +
rm .coverage