-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile
38 lines (27 loc) · 979 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
.PHONY: fail-if-no-virtualenv all install loaddata test
all: install migrate loaddata collectstatic
install: fail-if-no-virtualenv
pip install --pre --editable .[dev,test] --upgrade --upgrade-strategy=eager
migrate:
sandbox/manage.py migrate --no-input
collectstatic:
sandbox/manage.py collectstatic --no-input
lint:
black --check --exclude "migrations/*" setup.py oscar_elasticsearch
pylint setup.py oscar_elasticsearch/
test:
pip install --pre --editable .[test] --upgrade --upgrade-strategy=eager
sandbox/manage.py test
black:
black --exclude "migrations/*" setup.py oscar_elasticsearch
clean: ## Remove files not in source control
find . -type f -name "*.pyc" -delete
rm -rf nosetests.xml coverage.xml htmlcov *.egg-info *.pdf dist violations.txt
package: clean
pip install --upgrade pip twine wheel
rm -rf dist/
rm -rf build/
python setup.py clean --all
python setup.py sdist bdist_wheel
release: package ## Creates release
twine upload -s dist/*