From: Michael Orlitzky Date: Tue, 15 Nov 2016 03:46:42 +0000 (-0500) Subject: Add a MANIFEST.in file, and a new "make dist" target. X-Git-Tag: 0.1.0~14 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=adcd28c3d581d9349d877c0589eaa4953b589423;p=dunshire.git Add a MANIFEST.in file, and a new "make dist" target. --- diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..031b8a0 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,3 @@ +include doc/README.rst +include doc/LICENSE +recursive-include doc/build/html * diff --git a/makefile b/makefile index 9c823dd..1220965 100644 --- a/makefile +++ b/makefile @@ -32,8 +32,17 @@ checkloop: lint: pylint --rcfile=./.pylintrc $(SRCS) +# Create a source distribution tarball. First we clean up, to make +# sure no junk gets added to the distribution. Then we build the docs +# so that users will get some usable HTML documentation and not just +# the source files. +.PHONY: dist +dist: clean doc + python setup.py sdist + # Delete urrythang. .PHONY: clean clean: rm -rf $(PN)/__pycache__ test/__pycache__ doc/build rm -rf $(PN).egg-info + rm -rf dist