From adcd28c3d581d9349d877c0589eaa4953b589423 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Mon, 14 Nov 2016 22:46:42 -0500 Subject: [PATCH] Add a MANIFEST.in file, and a new "make dist" target. --- MANIFEST.in | 3 +++ makefile | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 MANIFEST.in 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 -- 2.43.2