-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (36 loc) · 724 Bytes
/
Makefile
File metadata and controls
48 lines (36 loc) · 724 Bytes
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
TARGET = ./fconv ./tests
install:
pip install -r requirement.txt -r dev-requirement.txt
install-dev:
make install &&\
pip install --editable .
check:
make test && \
make lint
ci:
make test && \
black ${TARGET} --check && \
isort ${TARGET} --check && \
flake8 ${TARGET}
test:
pytest --capture=no -vv
lint:
make mypy-only && \
black ${TARGET} && \
isort ${TARGET} && \
flake8 ${TARGET}
mypy-only:
mypy ${TARGET}
build:
make clean &&\
pip install wheel twine &&\
make check &&\
python setup.py sdist bdist_wheel
publish-dev:
make build &&\
twine upload --repository testpypi dist/*
publish:
make build &&\
twine upload --repository pypi dist/*
clean:
rm -rf dist build *.egg-info