packages.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:packit 作者: ncbi 项目源码 文件源码
def __call__(self, config, facility_section_name):
        files_config = config.setdefault('files', {})
        packages = files_config.get('packages', '').strip()

        if packages:
            return

        self_config = config.get(facility_section_name, {})
        exclude = self._get_list_option(self_config, 'exclude') or self._default_exclude or ()
        include = self._get_list_option(self_config, 'include') or self._default_include or ()

        include = include or [files_config.get('packages_root', '.')]

        found_packages = set()
        for path in include:
            found_packages |= set(find_packages(path, exclude))

        files_config['packages'] = "\n".join(found_packages)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号