]> khamidou — GitHub mirrors - vcrpy.git/commit
Exclude __pycache__ dirs & compiled files in sdist
authorKubilay Kocak <koobs@users.noreply.github.com>
Sun, 10 Jan 2016 15:27:41 +0000 (02:27 +1100)
committerKubilay Kocak <koobs@users.noreply.github.com>
Sun, 10 Jan 2016 15:27:41 +0000 (02:27 +1100)
commit8a1b7c65325a6c6c38083a649b8c608918759709
tree0b043fd88425a593435262a6483161706eb135d8
parent3459d95d4fb4097ec90a1e26291b0771faf11d89
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
MANIFEST.in