forked from bio-phys/MDBenchmark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (32 loc) · 849 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
.PHONY: build clean clean-build clean-pyc clean-test upload reformat reformat-check flake8 isort isort-check lint rst-lint
clean: clean-build clean-pyc clean-test
clean-build:
rm -rf build/
rm -rf dist/
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -rf {} +
clean-test:
rm -rf .tox/
rm -f .coverage
rm -rf htmlcov/
rm -rf .pytest_cache/
build: clean
python setup.py sdist bdist_wheel --universal
upload: build
twine upload dist/*
reformat:
black setup.py mdbenchmark/
reformat-check:
black --check setup.py mdbenchmark/ docs/
flake8:
flake8 mdbenchmark/
isort:
isort -y
isort-check:
isort --check-only --diff
lint: reformat-check flake8 isort-check
rst-lint:
rst-lint README.rst CHANGELOG.rst DEVELOPER.rst