mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
5b8d75f812
- Add Makefile target ``make readme`` to run ``viewdoc`` - Reorg "More Info" sections - Docs to the top - Less doc links (folks can find more than installation & guides from documentation link) - Add link to PRs - Reorg link to pre-fork changes
81 lines
2.3 KiB
Makefile
81 lines
2.3 KiB
Makefile
# https://www.gnu.org/software/make/manual/html_node/Phony-Targets.html
|
|
.PHONY: clean coverage doc docserve help inplace install install-req release-test sdist test upload upload-test
|
|
.DEFAULT_GOAL := release-test
|
|
|
|
clean:
|
|
python setup.py clean
|
|
rm PIL/*.so || true
|
|
rm -r build || true
|
|
find . -name __pycache__ | xargs rm -r || true
|
|
|
|
coverage:
|
|
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
|
|
|
|
doc:
|
|
$(MAKE) -C docs html
|
|
|
|
docserve:
|
|
cd docs/_build/html && python -mSimpleHTTPServer 2> /dev/null&
|
|
|
|
help:
|
|
@echo "Welcome to Pillow development. Please use \`make <target>' where <target> is one of"
|
|
@echo " clean remove build products"
|
|
@echo " coverage run coverage test (in progress)"
|
|
@echo " doc make html docs"
|
|
@echo " docserve run an http server on the docs directory"
|
|
@echo " html to make standalone HTML files"
|
|
@echo " inplace make inplace extension"
|
|
@echo " install make and install"
|
|
@echo " install-req install documentation and test dependencies"
|
|
@echo " release-test run code and package tests before release"
|
|
@echo " test run tests on installed pillow"
|
|
@echo " upload build and upload sdists to PyPI"
|
|
@echo " upload-test build and upload sdists to test.pythonpackages.com"
|
|
|
|
inplace: clean
|
|
python setup.py build_ext --inplace
|
|
|
|
install:
|
|
python setup.py install
|
|
python selftest.py --installed
|
|
|
|
install-req:
|
|
pip install -r requirements.txt
|
|
|
|
release-test:
|
|
$(MAKE) install-req
|
|
python setup.py develop
|
|
python selftest.py
|
|
nosetests Tests/test_*.py
|
|
python setup.py install
|
|
python test-installed.py
|
|
check-manifest
|
|
pyroma .
|
|
viewdoc
|
|
|
|
sdist:
|
|
python setup.py sdist --format=gztar,zip
|
|
|
|
test:
|
|
python test-installed.py
|
|
|
|
# https://docs.python.org/2/distutils/packageindex.html#the-pypirc-file
|
|
upload-test:
|
|
# [test]
|
|
# username:
|
|
# password:
|
|
# repository = http://test.pythonpackages.com
|
|
python setup.py sdist --format=gztar,zip upload -r test
|
|
|
|
upload:
|
|
python setup.py sdist --format=gztar,zip upload
|
|
|
|
readme:
|
|
viewdoc
|