scanpypi: get rid of commented lines and also strip the package strings
PATCH 1/1 scanpypi: get rid of commented lines and also strip the package strings
From: Yegor Yefremov <[email protected]>
Signed-off-by Yegor Yefremov <[email protected]>
--- utils/scanpypi | 4 ++++ 1 file changed, 4 insertions(+)
utils/scanpypi +4 -0
@@ -293,6 +293,10 @@ class BuildrootPackage(): self.pkg_req = self.setup_metadata['install_requires'] self.pkg_req = [re.sub('([-.\w]+).*', r'\1', req) for req in self.pkg_req] + + # get rid of commented lines and also strip the package strings + self.pkg_req = [item.strip() for item in self.pkg_req if item[0] != '#'] + req_not_found = self.pkg_req self.pkg_req = map(pkg_buildroot_name, self.pkg_req) pkg_tuples = zip(req_not_found, self.pkg_req)
Signature · 1 line
2.1.4
Thomas Petazzoni
AppliedPATCH 1/1 scanpypi: get rid of commented lines and also strip the package strings
Hello,
Quoted 6 lines · yegorslists at googlemail.com
From: Yegor Yefremov <[email protected]>
Signed-off-by Yegor Yefremov <[email protected]>--- utils/scanpypi | 4 ++++ 1 file changed, 4 insertions(+)
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com