2015-06-07 16:50:01 +03:00
|
|
|
.PHONY: pre clean install install-req test inplace coverage help docs livedocs
|
2014-07-15 08:02:12 +04:00
|
|
|
|
|
|
|
help:
|
|
|
|
@echo "Please use \`make <target>' where <target> is one of"
|
|
|
|
@echo " html to make standalone HTML files"
|
|
|
|
@echo " clean remove build products"
|
|
|
|
@echo " install make and install"
|
|
|
|
@echo " test run tests on installed pillow"
|
|
|
|
@echo " inplace make inplace extension"
|
|
|
|
@echo " coverage run coverage test (in progress)"
|
|
|
|
@echo " docs make html docs"
|
|
|
|
@echo " docserver run an http server on the docs directory"
|
2015-06-07 16:50:01 +03:00
|
|
|
@echo " install-req install documentation and test dependencies"
|
2014-06-27 23:07:53 +04:00
|
|
|
|
2013-09-30 14:10:10 +04:00
|
|
|
pre:
|
2014-06-29 16:04:58 +04:00
|
|
|
virtualenv .
|
2015-06-07 16:38:09 +03:00
|
|
|
pip install -r requirements.txt
|
|
|
|
python setup.py develop
|
|
|
|
python selftest.py
|
|
|
|
nosetests Tests/test_*.py
|
|
|
|
python setup.py install
|
|
|
|
python test-installed.py
|
2013-09-30 14:10:10 +04:00
|
|
|
check-manifest
|
|
|
|
pyroma .
|
|
|
|
viewdoc
|
2014-06-27 23:07:53 +04:00
|
|
|
|
|
|
|
clean:
|
|
|
|
python setup.py clean
|
|
|
|
rm PIL/*.so || true
|
2014-07-09 21:13:02 +04:00
|
|
|
rm -r build || true
|
|
|
|
find . -name __pycache__ | xargs rm -r || true
|
|
|
|
|
2014-06-27 23:07:53 +04:00
|
|
|
install:
|
|
|
|
python setup.py install
|
|
|
|
python selftest.py --installed
|
|
|
|
|
2015-06-07 16:50:01 +03:00
|
|
|
install-req:
|
|
|
|
pip install -r requirements.txt
|
|
|
|
|
2014-07-15 08:02:12 +04:00
|
|
|
test:
|
2014-06-27 23:07:53 +04:00
|
|
|
python test-installed.py
|
|
|
|
|
|
|
|
inplace: clean
|
|
|
|
python setup.py build_ext --inplace
|
|
|
|
|
|
|
|
coverage:
|
|
|
|
# requires nose-cov
|
|
|
|
coverage erase
|
|
|
|
coverage run --parallel-mode --include=PIL/* selftest.py
|
|
|
|
nosetests --with-cov --cov='PIL/' --cov-report=html Tests/test_*.py
|
|
|
|
# doesn't combine properly before report,
|
|
|
|
# writing report instead of displaying invalid report
|
|
|
|
rm -r htmlcov || true
|
|
|
|
coverage combine
|
|
|
|
coverage report
|
|
|
|
|
2014-07-15 08:02:12 +04:00
|
|
|
docs:
|
|
|
|
$(MAKE) -C docs html
|
|
|
|
|
|
|
|
docserver:
|
2015-04-01 13:16:36 +03:00
|
|
|
cd docs/_build/html && python -mSimpleHTTPServer 2> /dev/null&
|
|
|
|
|
2015-06-07 16:45:26 +03:00
|
|
|
# Test sdist upload via test.pythonpackages.com. Create .pypirc first:
|
|
|
|
#
|
|
|
|
# [test]
|
|
|
|
# username:
|
|
|
|
# password:
|
|
|
|
# repository = http://test.pythonpackages.com
|
|
|
|
#
|
2015-04-01 13:16:36 +03:00
|
|
|
sdisttest:
|
2015-06-07 03:27:09 +03:00
|
|
|
python setup.py sdist --format=gztar,zip upload -r test
|
2015-04-01 13:16:36 +03:00
|
|
|
sdistup:
|
2015-06-07 03:27:09 +03:00
|
|
|
python setup.py sdist --format=gztar,zip upload
|
2015-04-01 13:16:36 +03:00
|
|
|
sdist:
|
2015-06-07 03:27:09 +03:00
|
|
|
python setup.py sdist --format=gztar,zip
|