]> gitweb.michael.orlitzky.com - dunshire.git/commitdiff
Add a MANIFEST.in file, and a new "make dist" target.
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 15 Nov 2016 03:46:42 +0000 (22:46 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 15 Nov 2016 03:46:42 +0000 (22:46 -0500)
MANIFEST.in [new file with mode: 0644]
makefile

diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644 (file)
index 0000000..031b8a0
--- /dev/null
@@ -0,0 +1,3 @@
+include doc/README.rst
+include doc/LICENSE
+recursive-include doc/build/html *
index 9c823dd7c56e90345c2351132b2d9a7653724e94..122096547f336f92ad28e6f97d795559c41cb78d 100644 (file)
--- 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