-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (29 loc) · 886 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
clean:
find . -type f -name '*.pyc' -delete
find . -type d -name '__pycache__' -exec rm -rf {} +
find . -type d -name '\.pytest_cache' -exec rm -rf {} +
install:
. env/bin/activate; \
pip install -r aioradio/requirements.txt --use-deprecated=legacy-resolver
setup:
. env/bin/activate; \
python setup.py develop
rm -rf build dist aioradio.egg-info
lint:
. env/bin/activate; \
pylint aioradio/*.py aioradio/aws/*.py aioradio/tests/*.py --disable=similarities
test:
. env/bin/activate; \
export AWS_PROFILE=efi; \
pytest -vss --cov=aioradio --cov-config=.coveragerc --cov-report=html --cov-fail-under=50
pre-commit:
. env/bin/activate; \
pre-commit run --all-files; \
cd aioradio; \
pre-commit run --all-files; \
twine:
. env/bin/activate; \
python setup.py sdist bdist_wheel; \
twine upload dist/*; \
make setup
all: install pre-commit lint test setup clean