-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
48 lines (38 loc) · 916 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
test:
pytest
run:
python3 simulate.py --farm data/fakeData.csv --years 75 --output testNewFarm.png
data:
python3 src/cafe/fakeData.py --farms 100 --year 2020 --output data/fakeData.csv
build: clean
python setup.py sdist bdist_wheel
lint:
flake8 src/
flake8 tests/
black:
black .
cov: test
coverage html
open htmlcov/index.html
clean:
rm -rf tests/.ipynb_checkpoints
rm -f .coverage
rm -rf .pytest_cache/
rm -rf .eggs/
rm -rf .ipynb_checkpoints
rm -rf src/cafe/.ipynb_checkpoints
rm -rf binder/.ipynb_checkpoints
rm -rf htmlcov/
rm -rf dist/
rm -rf build/
rm -rf src/cafelytics.egg-info/
rm -rf __pycache__/
rm -rf tests/__pycache__/
rm -rf src/cafe/__pycache__/
version:
git describe --always --dirty --tags --long --match "*[0-9]*"
publish:
rm -rf dist/*
python -m pip install -U pip wheel setuptools setuptools_scm twine
python setup.py sdist bdist_wheel
twine upload dist/*