Skip to content

Commit

Permalink
Added some handy stuff to the Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Martijn Jacobs committed Nov 6, 2017
1 parent 2058e51 commit 5e0fef6
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
.PHONY: test install sandbox

clean:
find . -name '*.pyc' -delete
find . -name '__pycache__' -delete
find . -name '*.egg-info' -delete

install:
pip install -e .
pip install django-oscar-api[test]
pip install -e .[dev]
pip install django-oscar-api[docs]

sandbox: install
Expand All @@ -19,3 +23,14 @@ coverage:

docs: install
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:
python setup.py sdist
twine upload --repository pypi dist/*

0 comments on commit 5e0fef6

Please sign in to comment.