* [Buildroot] [PATCH] scanpypi: ignore empty elements in package requirements
@ 2018-01-23 8:13 yegorslists at googlemail.com
2018-01-23 14:27 ` Matthew Weber
2018-01-26 12:43 ` Peter Korsgaard
0 siblings, 2 replies; 5+ messages in thread
From: yegorslists at googlemail.com @ 2018-01-23 8:13 UTC (permalink / raw)
To: buildroot
From: Yegor Yefremov <yegorslists@googlemail.com>
Depending on how setup.py reads requirements files empty elements can occur.
This patch takes care, that such elements will be ignored and don't crash
the scanpypi script.
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
utils/scanpypi | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/utils/scanpypi b/utils/scanpypi
index d043135..7392c50 100755
--- a/utils/scanpypi
+++ b/utils/scanpypi
@@ -299,7 +299,9 @@ class BuildrootPackage():
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] != '#']
+ print("Req: {}".format(self.pkg_req))
+ self.pkg_req = [item.strip() for item in self.pkg_req
+ if len(item) > 0 and item[0] != '#']
req_not_found = self.pkg_req
self.pkg_req = map(pkg_buildroot_name, self.pkg_req)
--
2.1.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] scanpypi: ignore empty elements in package requirements
2018-01-23 8:13 [Buildroot] [PATCH] scanpypi: ignore empty elements in package requirements yegorslists at googlemail.com
@ 2018-01-23 14:27 ` Matthew Weber
2018-01-23 14:31 ` Yegor Yefremov
2018-01-26 12:43 ` Peter Korsgaard
1 sibling, 1 reply; 5+ messages in thread
From: Matthew Weber @ 2018-01-23 14:27 UTC (permalink / raw)
To: buildroot
Yegor,
On Tue, Jan 23, 2018 at 2:13 AM, <yegorslists@googlemail.com> wrote:
> From: Yegor Yefremov <yegorslists@googlemail.com>
>
> Depending on how setup.py reads requirements files empty elements can occur.
> This patch takes care, that such elements will be ignored and don't crash
> the scanpypi script.
>
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
I used this new python package for testing
(https://patchwork.ozlabs.org/patch/864829/)
Tested-by: Matt Weber <matthew.weber@rockwellcollins.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] scanpypi: ignore empty elements in package requirements
2018-01-23 14:27 ` Matthew Weber
@ 2018-01-23 14:31 ` Yegor Yefremov
0 siblings, 0 replies; 5+ messages in thread
From: Yegor Yefremov @ 2018-01-23 14:31 UTC (permalink / raw)
To: buildroot
On Tue, Jan 23, 2018 at 3:27 PM, Matthew Weber
<matthew.weber@rockwellcollins.com> wrote:
> Yegor,
>
> On Tue, Jan 23, 2018 at 2:13 AM, <yegorslists@googlemail.com> wrote:
>> From: Yegor Yefremov <yegorslists@googlemail.com>
>>
>> Depending on how setup.py reads requirements files empty elements can occur.
>> This patch takes care, that such elements will be ignored and don't crash
>> the scanpypi script.
>>
>> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
>
> I used this new python package for testing
> (https://patchwork.ozlabs.org/patch/864829/)
>
> Tested-by: Matt Weber <matthew.weber@rockwellcollins.com>
Thanks for testing.
Yegor
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] scanpypi: ignore empty elements in package requirements
2018-01-23 8:13 [Buildroot] [PATCH] scanpypi: ignore empty elements in package requirements yegorslists at googlemail.com
2018-01-23 14:27 ` Matthew Weber
@ 2018-01-26 12:43 ` Peter Korsgaard
2018-01-26 12:48 ` Yegor Yefremov
1 sibling, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2018-01-26 12:43 UTC (permalink / raw)
To: buildroot
>>>>> "yegorslists" == yegorslists <yegorslists@googlemail.com> writes:
> From: Yegor Yefremov <yegorslists@googlemail.com>
> Depending on how setup.py reads requirements files empty elements can occur.
> This patch takes care, that such elements will be ignored and don't crash
> the scanpypi script.
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> ---
> utils/scanpypi | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
> diff --git a/utils/scanpypi b/utils/scanpypi
> index d043135..7392c50 100755
> --- a/utils/scanpypi
> +++ b/utils/scanpypi
> @@ -299,7 +299,9 @@ class BuildrootPackage():
> 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] != '#']
> + print("Req: {}".format(self.pkg_req))
What is this print for? Just debugging? Did you mean to add it?
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] scanpypi: ignore empty elements in package requirements
2018-01-26 12:43 ` Peter Korsgaard
@ 2018-01-26 12:48 ` Yegor Yefremov
0 siblings, 0 replies; 5+ messages in thread
From: Yegor Yefremov @ 2018-01-26 12:48 UTC (permalink / raw)
To: buildroot
On Fri, Jan 26, 2018 at 1:43 PM, Peter Korsgaard <peter@korsgaard.com> wrote:
>>>>>> "yegorslists" == yegorslists <yegorslists@googlemail.com> writes:
>
> > From: Yegor Yefremov <yegorslists@googlemail.com>
> > Depending on how setup.py reads requirements files empty elements can occur.
> > This patch takes care, that such elements will be ignored and don't crash
> > the scanpypi script.
>
> > Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> > ---
> > utils/scanpypi | 4 +++-
> > 1 file changed, 3 insertions(+), 1 deletion(-)
>
> > diff --git a/utils/scanpypi b/utils/scanpypi
> > index d043135..7392c50 100755
> > --- a/utils/scanpypi
> > +++ b/utils/scanpypi
> > @@ -299,7 +299,9 @@ class BuildrootPackage():
> > 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] != '#']
> > + print("Req: {}".format(self.pkg_req))
>
> What is this print for? Just debugging? Did you mean to add it?
You're right. It was for debugging. I'll send v2.
Yegor
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-01-26 12:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-23 8:13 [Buildroot] [PATCH] scanpypi: ignore empty elements in package requirements yegorslists at googlemail.com
2018-01-23 14:27 ` Matthew Weber
2018-01-23 14:31 ` Yegor Yefremov
2018-01-26 12:43 ` Peter Korsgaard
2018-01-26 12:48 ` Yegor Yefremov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.