diff options
| author | Giampaolo Rodola <g.rodola@gmail.com> | 2019-03-01 04:12:27 +0100 |
|---|---|---|
| committer | Giampaolo Rodola <g.rodola@gmail.com> | 2019-03-01 04:12:27 +0100 |
| commit | d01a9eaa35a8aadf6c519839e987a49d8be2d891 (patch) | |
| tree | 9d6c90ce6427664c59c603c289d6e1642c30e14b /scripts | |
| parent | d8659cfa35a0da589cb0a303f0e856c0f0d1b087 (diff) | |
| download | psutil-d01a9eaa35a8aadf6c519839e987a49d8be2d891.tar.gz | |
make pre-release checks/install src dist in a venv
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/internal/generate_manifest.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/internal/generate_manifest.py b/scripts/internal/generate_manifest.py index 3511b749..f6cf0eaa 100755 --- a/scripts/internal/generate_manifest.py +++ b/scripts/internal/generate_manifest.py @@ -12,8 +12,9 @@ import os import subprocess -IGNORED_EXTS = ('.png', '.jpg', '.jpeg') -IGNORED_FILES = ('.travis.yml', 'appveyor.yml') +SKIP_EXTS = ('.png', '.jpg', '.jpeg') +SKIP_FILES = ('.travis.yml', 'appveyor.yml') +SKIP_PREFIXES = ('.ci/', '.github/') def sh(cmd): @@ -24,9 +25,9 @@ def sh(cmd): def main(): files = sh("git ls-files").split('\n') for file in files: - if file.startswith('.ci/') or \ - os.path.splitext(file)[1].lower() in IGNORED_EXTS or \ - file in IGNORED_FILES: + if file.startswith(SKIP_PREFIXES) or \ + os.path.splitext(file)[1].lower() in SKIP_EXTS or \ + file in SKIP_FILES: continue print("include " + file) |
