-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (36 loc) · 1.14 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
PYTHON ?= python
PIP ?= $(PYTHON) -m pip
TOX ?= tox
config:
$(PIP) install pycodestyle
$(PIP) install flake8
$(PIP) install twine
$(PIP) install wheel
$(PIP) install tox
lint-pycodestyle:
@echo "\n==> Pycodestyle Linting:"
@find pyravin -type f -name \*.py | while read file; do echo "$$file" && pycodestyle --config=./pycodestyle --first "$$file" || exit 1; done
lint-flake8:
@echo "\n==> Flake8 Linting:"
@find pyravin -type f -name \*.py | while read file; do echo "$$file" && flake8 --config=flake8.ini "$$file" || exit 1; done
lint: lint-pycodestyle lint-flake8
@echo "\n==> All linting cases passed!"
test:
@echo "\n==> Run Test Cases:"
$(TOX)
ci: test lint
@echo "\n==> All quality checks passed"
build:
rm -rf build dist
$(PYTHON) setup.py sdist bdist_wheel
upload:
$(PYTHON) -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
release:
$(PYTHON) -m twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
test_install:
$(PYTHON) -m pip install --index-url https://test.pypi.org/simple/ pyravin
install:
$(PYTHON) -m pip install pyravin
develop:
$(PYTHON) setup.py develop
.PHONY: ci