forked from Codaone/DEXBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
62 lines (44 loc) · 1.09 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
.PHONY: clean-pyc clean-build docs
clean: clean-build clean-pyc clean-ui
clean-ui:
find dexbot/views/ui/*.py ! -name '__init__.py' -type f -exec rm -f {} +
clean-build:
rm -fr build/
rm -fr dist/
rm -fr *.egg-info
rm -fr __pycache__/
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
pip:
python3 -m pip install -r requirements.txt
pip-dev:
python3 -m pip install -r requirements-dev.txt
pip-user:
python3 -m pip install --user -r requirements.txt
lint:
flake8 dexbot/ tests/
pep-test:
python3 -m pip install flake8==3.7.7
flake8 dexbot/ tests/
python3 -m pip uninstall -y flake8 pyflakes pycodestyle mccabe
build: pip
python3 setup.py build
build-user: pip-user
python3 setup.py build
install: build
python3 setup.py install
install-user: build-user
python3 setup.py install --user
git:
git push --all
git push --tags
check: pip
python3 setup.py check
package: build pip-dev
pyinstaller gui.spec
pyinstaller cli.spec
dist: build
python3 setup.py sdist upload -r pypi
python3 setup.py bdist_wheel upload
release: clean check dist git