-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
56 lines (44 loc) · 1.13 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
#!make
# -*- coding: utf-8 -*-
# Copyright (C) 2023 Benjamin Thomas Schwertfeger
# GitHub: https://github.com/btschwertfeger
PYTHON := python
.PHONY := build dev install clean pre-commit
help:
@grep "^##" Makefile | sed -e "s/##//"
## ======= B U I L D I N G =======
## build Builds the python-kraken-sdk
##
build:
$(PYTHON) -m build .
rebuild: clean build
## dev Installs the extended package in edit mode
##
dev:
$(PYTHON) -m pip install -e ".[dev]"
## ======= I N S T A L L A T I O N =======
## install Install the package
##
install:
$(PYTHON) -m pip install .
## ======= M I S C E L A N I O U S =======
## pre-commit Run the pre-commit targets
##
pre-commit:
@pre-commit run -a
## clean Clean the workspace
##
clean:
rm -rf .pytest_cache build/ dist/ \
kraken_rebalance_bot.egg-info \
docs/_build \
.vscode \
.mypy_cache
rm -f .coverage coverage.xml pytest.xml mypy.xml \
rebalance/_version.py \
*.log *.csv *.zip \
tests/*.zip tests/.csv \
kraken_rebalance_bot*.whl
find tests -name "__pycache__" | xargs rm -rf
find rebalance -name "__pycache__" | xargs rm -rf
find examples -name "__pycache__" | xargs rm -rf