implement blacklist within conda-forge archive
@@ -6,9 +6,14 @@ from glob import glob
def tar_filter(tar_info: tarfile.TarInfo):
- if 'tests' in tar_info.name:
+ blacklist = [
+ 'tests', 'build', 'dist', 'node_modules', 'egg-info', '__pycache__',
+ '.pyc', 'yarn-error.log']
+
+ for item in blacklist:
+ if item in tar_info.name:
return None
- else:
+
return tar_info
