|
@@ -3,7 +3,7 @@ PYTEST = $(PWD)/$(VENV)/bin/py.test
|
3
|
3
|
|
4
|
4
|
# These targets are not files
|
5
|
5
|
.PHONY: build_sandbox clean compile_translations coverage css docs extract_translations help install install-python \
|
6
|
|
- install-test install-js lint release retest sandbox_clean sandbox_image sandbox test todo venv
|
|
6
|
+ install-test install-js lint release retest sandbox_clean sandbox_image sandbox test todo venv package
|
7
|
7
|
|
8
|
8
|
help: ## Display this help message
|
9
|
9
|
@echo "Please use \`make <target>\` where <target> is one of"
|
|
@@ -118,10 +118,15 @@ todo: ## Look for areas of the code that need updating when some event has taken
|
118
|
118
|
-grep -rnH TODO src/oscar/apps/
|
119
|
119
|
-grep -rnH "django.VERSION" src/oscar/apps
|
120
|
120
|
|
121
|
|
-release: clean ## Creates release
|
122
|
|
- pip install twine wheel
|
123
|
|
- rm -rf dist/*
|
124
|
|
- rm -rf src/oscar/static/*
|
|
121
|
+package: clean
|
|
122
|
+ pip install --upgrade pip twine wheel
|
|
123
|
+ npm ci
|
|
124
|
+ rm -rf src/oscar/static/
|
|
125
|
+ rm -rf dist/
|
|
126
|
+ rm -rf build/
|
125
|
127
|
npm run build
|
|
128
|
+ python setup.py clean --all
|
126
|
129
|
python setup.py sdist bdist_wheel
|
|
130
|
+
|
|
131
|
+release: package ## Creates release
|
127
|
132
|
twine upload -s dist/*
|