diff --git a/.travis.yml b/.travis.yml index d9578bd9..32a0b79a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,7 @@ python: env: - UNIT_TESTS=true - DOC_TESTS=true + - CHECK_MANIFEST=true matrix: allow_failures: - python: 2.7 @@ -21,9 +22,12 @@ matrix: fast_finish: true exclude: - env: DOC_TESTS=true + - env: CHECK_MANIFEST=true include: - python: 3.5 env: DOC_TESTS=true + - python: 3.5 + env: CHECK_MANIFEST=true # Cache Dependencies cache: pip before_install: @@ -33,18 +37,24 @@ before_install: - if [ "$DOC_TESTS" = "true" ]; then echo "Running Code Style Tests"; fi + - if [ "$CHECK_MANIFEST" = "true" ]; then + echo "Checking Manifest.in"; + fi - printenv # command to install dependencies install: - pip install --upgrade pip - if [ "$UNIT_TESTS" = "true" ]; then pip install -r requirements.txt; - pip install -r tests/requirements.txt; + pip install -r colourettu/tests/requirements.txt; pip install coveralls; fi - if [ "$DOC_TESTS" = "true" ]; then pip install isort pydocstyle pycodestyle; fi + - if [ "$CHECK_MANIFEST" = "true" ]; then + pip install check-manifest; + fi before_script: - if [ "$UNIT_TESTS" = "true" ]; then green --version; @@ -54,10 +64,13 @@ before_script: pydocstyle --version; pycodestyle --version; fi + - if [ "$CHECK_MANIFEST" = "true" ]; then + check-manifest --version; + fi # command to run tests script: - if [ "$UNIT_TESTS" = "true" ]; then - green tests -vvr; + green colourettu.tests -vvr; fi - if [ "$DOC_TESTS" = "true" ]; then isort --recursive colourettu --verbose; @@ -68,6 +81,9 @@ script: - if [ "$DOC_TESTS" = "true" ]; then pycodestyle colourettu; fi + - if [ "$CHECK_MANIFEST" = "true" ]; then + check-manifest -v; + fi after_success: - if [ "$UNIT_TESTS" = "true" ]; then coveralls; diff --git a/MANIFEST.in b/MANIFEST.in index 0e36cee2..568cda5e 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,15 @@ -include requirements.txt +include *.py +include *.txt include *.rst include LICENSE +include tests +recursive-include colourettu *.txt +recursive-include docs *.bat +recursive-include docs *.ico +recursive-include docs *.png +recursive-include docs *.txt +recursive-include docs *.rst +recursive-include docs *.py +recursive-include tests *.py +recursive-include tests *.txt +prune docs/_build diff --git a/setup.cfg b/setup.cfg index be72b612..6ea5fce9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -9,3 +9,8 @@ universal = 1 [isort] known_first_party = colourettu not_skip = __init__.py + +[check-manifest] +ignore = + .editorconfig + make_release.py