From: Kubilay Kocak Date: Sun, 10 Jan 2016 15:27:41 +0000 (+1100) Subject: Exclude __pycache__ dirs & compiled files in sdist X-Git-Tag: v1.8.0~9^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=8a1b7c65325a6c6c38083a649b8c608918759709;p=vcrpy.git Exclude __pycache__ dirs & compiled files in sdist The current vcrpy sdist on PyPI includes __pycache__ dirs and compiled files which causes tests to fail when running tests via setup.py test import file mismatch: imported module 'test_persist' has this __file__ attribute: /Users/imalison/Projects/vcrpy/tests/unit/test_persist.py which is not the same as the test file we want to collect: /usr/home/user/repos/freebsd/ports/devel/py-vcrpy/work/vcrpy-1.7.4/tests/unit/test_persist.py HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules This change recursively excludes these directories and files from future source distributions --- diff --git a/MANIFEST.in b/MANIFEST.in index 792fbdb..9fc7449 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -2,3 +2,5 @@ include README.rst include LICENSE.txt include tox.ini recursive-include tests * +recursive-exclude * __pycache__ +recursive-exclude * *.py[co]