-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·52 lines (40 loc) · 1.43 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
.PHONY: clean docs
VERSION := $(shell pip3 show raceup-peeper | grep "Version" | awk '{split($$0, a, " ");print a[2]}')
clean:
rm -fr build dist *egg *.egg-info
show-installed-version:
@echo "\033[95m\nInstalled Race UP Peeper v$(VERSION)\033[0m"
install:
pipenv install
$(MAKE) show-installed-version
pip-install:
pip3 install -r requirements.txt . --upgrade --force-reinstall
$(MAKE) show-installed-version
fast-install:
rm -rf /usr/local/lib/python3.6/dist-packages/peeper
mkdir /usr/local/lib/python3.6/dist-packages/peeper
cp -r peeper/ /usr/local/lib/python3.6/dist-packages/
@echo "\033[95m\nInstalled to /usr/local/lib/python3.6/dist-packages/peeper033[0m"
$(MAKE) show-installed-version
#test:
# rm -rf htmlcov/
# python3 -m pytest --cov=./ --cov-report=html
# @echo "\033[95m\nTest report htmlcov/index.html\033[0m"
flake8:
pipenv run flake8 --ignore=E501,F401,E128,E402,E731,F821,E722 peeper
pylint:
pylint3 -j 8 peeper/* || pylint-exit $?
#coverage:
# pipenv run py.test --cov-config .coveragerc --verbose --cov-report term --cov-report xml --cov=requests tests
publish:
$(MAKE) clean
pip3 install 'twine>=1.5.0'
python3 setup.py sdist bdist_wheel
twine upload dist/*
$(MAKE) clean
@echo "\033[95m\nPublished at https://pypi.org/project/raceup-peeper/\033[0m"
docs:
cd docs && $(MAKE) html
@echo "\033[95m\nBuild successful! View the docs homepage at docs/_build/html/index.html.\033[0m"
bug-report:
python3 peeper/help.py