-
Notifications
You must be signed in to change notification settings - Fork 146
Open
Description
When flit_core is generating allowed files into sdist
flit/flit_core/flit_core/sdist.py
Lines 109 to 118 in ec6e6b7
def select_files(self): | |
"""Pick which files from the source tree will be included in the sdist | |
This is overridden in flit itself to use information from a VCS to | |
include tests, docs, etc. for a 'gold standard' sdist. | |
""" | |
cfgdir_s = str(self.cfgdir) | |
return [ | |
osp.relpath(p, cfgdir_s) for p in self.module.iter_files() | |
] + self.extra_files |
Lines 98 to 101 in ec6e6b7
def include_path(p): | |
return not (p.startswith('dist' + os.sep) | |
or (os.sep+'__pycache__' in p) | |
or p.endswith('.pyc')) |
flit/flit_core/flit_core/common.py
Lines 79 to 83 in ec6e6b7
def _include(path): | |
name = os.path.basename(path) | |
if (name == '__pycache__') or name.endswith('.pyc'): | |
return False | |
return True |
Metadata
Metadata
Assignees
Labels
No labels