-
Notifications
You must be signed in to change notification settings - Fork 2
/
makefile
56 lines (42 loc) · 1.26 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
SHELL:=/bin/bash
# ------------------------------------------------------------------------------
# Name: makefile
# Version: 0.0.1
#
# Summary: Python Fundamentus
# Python Fundamentus is a Python API that allows you to quickly
# access the main fundamental indicators of the main stocks
# in the Brazilian market.
#
# Author: Alexsander Lopes Camargos
# Author-email: [email protected]
#
# License: MIT
# ------------------------------------------------------------------------------
build:
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade twine
python3 -m build
twine check dist/*
upload:
twine upload --repository pyFundamentus dist/* --verbose
clean:
rm -rf build
rm -rf dist
rm -rf pyfundamentus.egg-info
rm -rf fundamentus/__pycache__
rm -rf fundamentus/.pytest_cache
rm -rf .pytest_cache
rm -rf htmlcov
test:
clear
pytest ./fundamentus/* -v -s -r X --color=yes --cache-clear --code-highlight=yes
coverage:
clear
coverage run -m pytest ./fundamentus/* -v -s -r X --color=yes --cache-clear --code-highlight=yes
coverage report -m
coverage html
pylint:
clear
pylint ./fundamentus/* --load-plugins=pylint.extensions.docparams --rcfile=.pylintrc
.PHONY: build clean test coverage pyliny