-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
58 lines (44 loc) · 965 Bytes
/
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
frontend:
poetry run streamlit run dashboard/On-chain.py
test:
pytest tests/
isort:
poetry run isort --profile black .
black:
poetry run black .
format:
make isort
make black
make mypy
mypy:
poetry run mypy bitdata --ignore-missing
clean:
rm -r bitdata.egg-info/ || true
find . -name ".DS_Store" -exec rm -f {} \; || true
rm -rf dist || true
rm -rf build || true
package:
poetry export -f requirements.txt --without-hashes --output requirements.txt
make clean
python setup.py sdist bdist_wheel
test:
pytest tests/
install:
make clean
python setup.py sdist bdist_wheel
pip install --upgrade dist/*
upload:
make clean
python setup.py sdist bdist_wheel
twine upload --repository pypi dist/*
docker-build:
docker build -t bitdata .
docker-run:
docker run -p 8501:8501 -v ./frontend:/app/frontend bitdata
docker-stop:
-docker stop bitdata
-docker rm bitdata
docker:
-make docker-stop
-make docker-build
-make docker-run