Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (25 loc) · 1.36 KB
/
Copy pathMakefile
File metadata and controls
32 lines (25 loc) · 1.36 KB
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
.PHONY: examples tests publish
check:
@which pylint >/dev/null || pip install --user --upgrade pylint
@if python --version | grep -qi 'python 3'; then pylint --reports=no minio/compat.py minio/copy_conditions.py minio/definitions.py minio/error.py minio/helpers.py minio/parsers.py minio/post_policy.py minio/signer.py minio/thread_pool.py minio/__init__.py minio/sse.py minio/xml_marshal.py minio/select tests/functional; fi
@if python --version | grep -qi 'python 3'; then pylint --reports=no minio/api.py; fi
@which isort >/dev/null || pip install --user --upgrade isort
@isort --diff --recursive .
@which autopep8 >/dev/null || pip install --user --upgrade autopep8
@autopep8 --diff --exit-code *.py
@find minio -name "*.py" -exec autopep8 --diff --exit-code {} +
@find tests -name "*.py" -exec autopep8 --diff --exit-code {} +
@find examples -name "*.py" -exec autopep8 --diff --exit-code {} +
apply:
@which isort >/dev/null || pip install --user --upgrade isort
isort --recursive .
@which autopep8 >/dev/null || pip install --user --upgrade autopep8
@autopep8 --in-place *.py
@find minio -name "*.py" -exec autopep8 --in-place {} +
@find tests -name "*.py" -exec autopep8 --in-place {} +
@find examples -name "*.py" -exec autopep8 --in-place {} +
publish:
python setup.py register
python setup.py sdist bdist bdist_wheel upload
tests:
python setup.py nosetests