forked from django-oscar/django-oscar-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (27 loc) · 976 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
.PHONY: test install sandbox
clean:
find . -name '*.pyc' -delete
find . -name '__pycache__' -delete
find . -name '*.egg-info' -delete
install:
pip install -e .[dev,docs]
sandbox: install
python sandbox/manage.py migrate
python sandbox/manage.py loaddata product productcategory productattribute productclass productattributevalue category attributeoptiongroup attributeoption stockrecord partner voucher country
test:
python sandbox/manage.py test oscarapi --settings=sandbox.settings.nomigrations
coverage:
coverage run sandbox/manage.py test oscarapi --settings=sandbox.settings.nomigrations
coverage report -m
coverage xml -i
docs: install
pip install "Django>=1.11.0,<2.0"
cd docs && make clean && make html
clean_release: clean
if [ -d "dist" ]; then rm dist/*; fi
release_testpypi: clean_release
python setup.py sdist
twine upload --repository pypitest dist/*
release: clean_release
python setup.py sdist
twine upload --repository pypi dist/*