-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
38 lines (32 loc) · 915 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
isort = ./env/bin/python3 -m isort src examples
black = ./env/bin/python3 -m black src examples
flake8 = ./env/bin/python3 -m flake8 src examples
set-env:
virtualenv -p python3 env
install: set-env
./env/bin/pip install -r build-requirements.txt
build: install
echo "We remove unecessary files/folders"
echo "----------------------------------"
rm -rf build/*
rm -rf dist/*
rm -rf *-info
echo "----------------------------------\n"
echo "python3 setup.py sdist bdist_wheel"
./env/bin/python3 setup.py sdist bdist_wheel
publish: build
echo "python3 -m twine upload dist/*"
./env/bin/python3 -m twine upload dist/*
echo "----------------------------------\n"
echo "We remove unecessary files/folders"
rm -rf build/*
rm -rf dist/*
rm -rf *-info
echo "----------------------------------\n"
format:
$(isort)
$(black)
lint: format
$(flake8)
$(isort) --check-only --df
$(black) --check --diff