diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..c8695af --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,9 @@ +include LICENSE +include *.rst +include *.sh +include *.txt +include Makefile +recursive-include docs *.bat +recursive-include docs *.py +recursive-include docs *.rst +recursive-include docs Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..543eed0 --- /dev/null +++ b/Makefile @@ -0,0 +1,42 @@ +NAME := $(shell python setup.py --name) +VERSION := $(shell python setup.py --version) + +SDIST := dist/${NAME}-${VERSION}.tar.gz +WHEEL := dist/${NAME}-${VERSION}-py2.py3-none-any.whl + +.PHONY: all test clean clean-docs upload-docs upload-pypi dist docs + +all: docs dist + +test: + tox + +clean: clean-docs clean-sdist clean-wheel + +clean-docs: + $(MAKE) -C docs/ clean + +clean-sdist: + rm -f "${SDIST}" + +clean-wheel: + rm -f "${WHEEL}" + +docs: + $(MAKE) -C docs/ clean html + +${SDIST}: + python setup.py sdist + +${WHEEL}: + python setup.py bdist_wheel + +dist: test ${SDIST} ${WHEEL} + +upload: upload-pypi upload-docs + +upload-pypi: ${SDIST} ${WHEEL} + twine upload "${WHEEL}" "${SDIST}" + +upload-docs: docs/_build/ + python setup.py upload_sphinx --upload-dir="$