This repository has been archived by the owner on Feb 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Makefile
executable file
·82 lines (62 loc) · 1.7 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
.PHONY:
install builds dist install install-light dev-install \
uninstall reinstall clean test test-end2end \
precompile-sources restore-sources docs-html \
build-meta show-doc version
python = python3
run-setup = $(python) setup.py
pip = pip3
pip-install = $(pip) install
builds:
$(run-setup) build_ext -fi
dist:
$(run-setup) dist
sdist:
$(run-setup) sdist
install:
$(pip install) -r requirements.txt
$(run-setup) install
install-light:
$(pip install) -r requirements.txt
$(run-setup) install --no-curl
install-dev:
$(pip install) -r dev-requirements.txt
$(run-setup) develop
uninstall:
$(pip) uninstall pymarketcap -y
make restore-sources
reinstall:
make clean
make uninstall
$(run-setup) install -f
clean:
sudo rm -Rf .pytest_cache/ .tox/ build/ \
dist/ pymarketcap.egg-info/ htmlcov/
sudo find . -type d -name "__pycache__" -exec rm -r {} +
sudo find . -type d -name "_build" -exec rm -r {} +
sudo rm pymarketcap/*.c pymarketcap/*.so tests/cache/*.json
test:
pytest test -vs
test-end2end:
pytest test -vs --end2end
precompile-sources:
$(python) -c "from precompiler import run_builder;import os; \
run_builder(os.path.join(os.getcwd(), 'pymarketcap', 'core.pyx'))"
restore-sources:
$(python) -c "from precompiler import run_unbuilder;run_unbuilder()"
doc-html:
cd doc && make html && cd ..
build-meta:
# Build metadata for the project (README.rst)
bash scripts/build_doc.sh
show-doc:
if [ ! -f doc/build/html/index.html ]; then make doc-html; fi
see "doc/_build/html/index.html"
version:
cd ..
$(python) -c "import pymarketcap as p;print(p.__version__);"
cd pymarketcap
version-micro-up:
$(python) scripts/vss.py micro
version-micro-down:
$(python) scripts/vss.py unmicro