diff options
| author | Diego Elio Pettenò <flameeyes@flameeyes.com> | 2020-03-24 11:45:08 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-24 13:45:08 +0200 |
| commit | b74eeb72ea09f70076ba72779a7a331f8e009708 (patch) | |
| tree | 59aa449e74faf5bec645d4f214fa61363a53b942 /tests | |
| parent | e5d869715e17bc7c5426c52904027602067e0fb7 (diff) | |
| download | wheel-git-b74eeb72ea09f70076ba72779a7a331f8e009708.tar.gz | |
Ignore files terminating in ~. (#347)
This is Unix's most common pattern for backup files. They are often
present, but I can't think of a good reason for them to be distributed.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_bdist_wheel.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_bdist_wheel.py b/tests/test_bdist_wheel.py index 67df435..91eb8c1 100644 --- a/tests/test_bdist_wheel.py +++ b/tests/test_bdist_wheel.py @@ -21,6 +21,9 @@ DEFAULT_LICENSE_FILES = { 'LICENSE', 'LICENSE.txt', 'LICENCE', 'LICENCE.txt', 'COPYING', 'COPYING.md', 'NOTICE', 'NOTICE.rst', 'AUTHORS', 'AUTHORS.txt' } +OTHER_IGNORED_FILES = { + 'LICENSE~', 'AUTHORS~', +} @pytest.fixture @@ -34,7 +37,7 @@ setup( version='1.0' ) """) - for fname in DEFAULT_LICENSE_FILES: + for fname in DEFAULT_LICENSE_FILES | OTHER_IGNORED_FILES: basedir.join(fname).write('') basedir.join('licenses').mkdir().join('DUMMYFILE').write('') |
