Merge pull request #1517 from larsoner/packaging

FIX: Packaging and 1.17.1 bump
diff --git a/.travis.yml b/.travis.yml
index 2f301f7..0d69fe0 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -29,8 +29,8 @@
     - virtualenv --python=python venv
     - source venv/bin/activate
     - python --version  # just to check
-    - pip install -U pip wheel  # upgrade to latest pip find 3.5 wheels; wheel to avoid errors
-    - retry pip install pytest pytest-cov pytest-dependency flake8 coverage codecov chardet setuptools docutils
+    - pip install -U pip wheel # upgrade to latest pip find 3.5 wheels; wheel to avoid errors
+    - retry pip install pytest pytest-cov pytest-dependency flake8 coverage codecov chardet setuptools docutils check-manifest
     - if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then retry pip install aspell-python-py2; fi
     - if [ ${TRAVIS_PYTHON_VERSION:0:1} == "3" ]; then retry pip install aspell-python-py3; fi
     - cd $SRC_DIR
@@ -49,6 +49,7 @@
         python setup.py check --restructuredtext --strict;
       fi;
     - pytest codespell_lib
+    - make check-manifest
 
 after_success:
     - codecov
diff --git a/MANIFEST.in b/MANIFEST.in
index 1071c82..e467a2b 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,5 +1,11 @@
 include codespell_lib/__init__.py
 recursive-include codespell_lib *.py
-include codespell_lib/data/dictionary.txt
+include codespell_lib/data/dictionary*.txt
 include codespell_lib/data/linux-kernel.exclude
 include COPYING
+include bin/codespell
+exclude *.yml *.yaml
+exclude .coveragerc
+exclude example example/* snap snap/* tools tools/*
+exclude Makefile
+exclude codespell.1.include
diff --git a/Makefile b/Makefile
index 9b26724..2313231 100644
--- a/Makefile
+++ b/Makefile
@@ -39,6 +39,9 @@
 		sed -E -i.bak -e 's/^[[:space:]]+//; s/[[:space:]]+$$//; /^$$/d' $$dictionary && rm $$dictionary.bak; \
 	done
 
+check-manifest:
+	check-manifest
+
 pypi:
 	python setup.py sdist register upload
 
diff --git a/codespell_lib/_codespell.py b/codespell_lib/_codespell.py
index cc12ad6..9eb7f8a 100755
--- a/codespell_lib/_codespell.py
+++ b/codespell_lib/_codespell.py
@@ -31,7 +31,7 @@
 USAGE = """
 \t%prog [OPTIONS] [file1 file2 ... fileN]
 """
-VERSION = '1.17.0'
+VERSION = '1.17.1'
 
 # Users might want to link this file into /usr/local/bin, so we resolve the
 # symbolic link path to the real path if necessary.