[virt-tools-list] [PATCH 2/2] v2: add MANIFEST.in to specify includes and excludes

Gene Czarcinski gene at czarc.net
Thu Apr 4 19:17:34 UTC 2013


With no MANIFEST.in, distutils/setup/sdist gets the filelist
mostly correct except that it adds in whatever is in the
top directory.  Using git-ls-files is not a good solution
either because a number of additional files (not git
managed) will be needed.

The solution is to use a MANIFEST.in.  All of the
toplevel files which are to be included will need to be
specified.  Also, each directory will need to be specified
and unwanted files (e.g., *.pyc) excluded.  Other (non-specified)
files and directories will be ignored.
.
Signed-off-by: Gene Czarcinski <gene at czarc.net>
---
 MANIFEST.in | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 MANIFEST.in

diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644
index 0000000..a9f0183
--- /dev/null
+++ b/MANIFEST.in
@@ -0,0 +1,25 @@
+# to be included/excluded from the tarball produced by sdist
+include AUTHORS COPYING HACKING INSTALL NEWS README
+include autobuild.sh
+include MANIFEST
+include MANIFEST.in
+include todo.txt
+include .tx/config
+include virt-manager*
+recursive-include man *
+recursive-include po *
+recursive-include ui *
+recursive-include data *
+recursive-include tests *
+recursive-exclude tests *.pyc
+recursive-include virtcli *
+recursive-exclude virtcli/*.pyc
+recursive-include virtconv *
+recursive-exclude virtconv *.pyc
+recursive-include virtManager *
+recursive-exclude virtManager *.pyc
+recursive-include virtManagerTui *
+recursive-exclude virtManagerTui *.pyc
+recursive-exclude build *
+recursive-exclude dist *
+exclude build dist
-- 
1.8.1.4




More information about the virt-tools-list mailing list