diff mbox series

[1/1] python-fastentrypoints: new package

Message ID 20180408174859.19679-1-asafka7@gmail.com
State Changes Requested
Headers show
Series [1/1] python-fastentrypoints: new package | expand

Commit Message

Asaf Kahlon April 8, 2018, 5:48 p.m. UTC
host-package that is able to shorten the load time of entry_points declared
in setup.py of python packages.

Unfortunately, license file was not found.

Signed-off-by: Asaf Kahlon <asafka7@gmail.com>
---
 DEVELOPERS                                           |  1 +
 package/Config.in                                    |  1 +
 package/python-fastentrypoints/Config.in             |  6 ++++++
 .../python-fastentrypoints.hash                      |  3 +++
 .../python-fastentrypoints/python-fastentrypoints.mk | 12 ++++++++++++
 5 files changed, 23 insertions(+)
 create mode 100644 package/python-fastentrypoints/Config.in
 create mode 100644 package/python-fastentrypoints/python-fastentrypoints.hash
 create mode 100644 package/python-fastentrypoints/python-fastentrypoints.mk

Comments

Yegor Yefremov April 8, 2018, 8:59 p.m. UTC | #1
Hi Asaf,

On Sun, Apr 8, 2018 at 7:48 PM, Asaf Kahlon <asafka7@gmail.com> wrote:
> host-package that is able to shorten the load time of entry_points declared
> in setup.py of python packages.
>
> Unfortunately, license file was not found.

This comment shouldn't be part of the commit log.

> Signed-off-by: Asaf Kahlon <asafka7@gmail.com>
> ---
>  DEVELOPERS                                           |  1 +
>  package/Config.in                                    |  1 +
>  package/python-fastentrypoints/Config.in             |  6 ++++++
>  .../python-fastentrypoints.hash                      |  3 +++
>  .../python-fastentrypoints/python-fastentrypoints.mk | 12 ++++++++++++
>  5 files changed, 23 insertions(+)
>  create mode 100644 package/python-fastentrypoints/Config.in
>  create mode 100644 package/python-fastentrypoints/python-fastentrypoints.hash
>  create mode 100644 package/python-fastentrypoints/python-fastentrypoints.mk
>
> diff --git a/DEVELOPERS b/DEVELOPERS
> index 10b20c259b..ea33d5e730 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -189,6 +189,7 @@ F:  package/sqlcipher/
>  F:     package/stress/
>
>  N:     Asaf Kahlon <asafka7@gmail.com>
> +F:     package/python-fastentrypoints/
>  F:     package/python-jsonmodels/
>  F:     package/python-yieldfrom/
>
> diff --git a/package/Config.in b/package/Config.in
> index 5e798a4f14..d7e51b203c 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -778,6 +778,7 @@ menu "External python modules"
>         source "package/python-engineio/Config.in"
>         source "package/python-enum/Config.in"
>         source "package/python-enum34/Config.in"
> +       source "package/python-fastentrypoints/Config.in"
>         source "package/python-flask/Config.in"
>         source "package/python-flask-cors/Config.in"
>         source "package/python-flask-babel/Config.in"
> diff --git a/package/python-fastentrypoints/Config.in b/package/python-fastentrypoints/Config.in
> new file mode 100644
> index 0000000000..d2c86dbc5e
> --- /dev/null
> +++ b/package/python-fastentrypoints/Config.in
> @@ -0,0 +1,6 @@
> +config BR2_PACKAGE_PYTHON_FASTENTRYPOINTS
> +       bool "python-fastentrypoints"
> +       help
> +         Makes entry_points specified in setup.py load more quickly.
> +
> +         https://github.com/ninjaaron/fast-entry_points
> diff --git a/package/python-fastentrypoints/python-fastentrypoints.hash b/package/python-fastentrypoints/python-fastentrypoints.hash
> new file mode 100644
> index 0000000000..da6e2ae9d8
> --- /dev/null
> +++ b/package/python-fastentrypoints/python-fastentrypoints.hash
> @@ -0,0 +1,3 @@
> +# md5 from https://pypi.python.org/pypi/fastentrypoints/json, sha256 locally computed
> +md5    9bd2a34697eb8279d87e7b927f4f7e85  fastentrypoints-0.10.tar.gz
> +sha256 ed418146ed87230694ec2d8890b9b3e2967e95d857e5ce933cafecb1067cca82  fastentrypoints-0.10.tar.gz
> diff --git a/package/python-fastentrypoints/python-fastentrypoints.mk b/package/python-fastentrypoints/python-fastentrypoints.mk
> new file mode 100644
> index 0000000000..455cfe8319
> --- /dev/null
> +++ b/package/python-fastentrypoints/python-fastentrypoints.mk
> @@ -0,0 +1,12 @@
> +################################################################################
> +#
> +# python-fastentrypoints
> +#
> +################################################################################
> +
> +PYTHON_FASTENTRYPOINTS_VERSION = 0.10
> +PYTHON_FASTENTRYPOINTS_SOURCE = fastentrypoints-$(PYTHON_FASTENTRYPOINTS_VERSION).tar.gz
> +PYTHON_FASTENTRYPOINTS_SITE = https://pypi.python.org/packages/e8/c8/c2902c9c9da43d8be8c75a730f15f0c51933c42c39b91d1d7b605a88e907
> +PYTHON_FASTENTRYPOINTS_SETUP_TYPE = setuptools

The license file can be found on github and seems to be BSD-2c [1]

With these changes applied you can add my: Reviewed-by: Yegor Yefremov
<yegorslists@googlemail.com>

[1] https://github.com/ninjaaron/fast-entry_points/blob/master/LICENSE

Yegor

> +
> +$(eval $(host-python-package))
> --
> 2.17.0
>
Thomas Petazzoni April 9, 2018, 7:14 a.m. UTC | #2
Hello,

On Sun, 8 Apr 2018 22:59:32 +0200, Yegor Yefremov wrote:

> On Sun, Apr 8, 2018 at 7:48 PM, Asaf Kahlon <asafka7@gmail.com> wrote:
> > host-package that is able to shorten the load time of entry_points declared
> > in setup.py of python packages.
> >
> > Unfortunately, license file was not found.  
> 
> This comment shouldn't be part of the commit log.

I disagree, this comment makes sense in a commit log.


> > diff --git a/package/python-fastentrypoints/Config.in b/package/python-fastentrypoints/Config.in
> > new file mode 100644
> > index 0000000000..d2c86dbc5e
> > --- /dev/null
> > +++ b/package/python-fastentrypoints/Config.in
> > @@ -0,0 +1,6 @@
> > +config BR2_PACKAGE_PYTHON_FASTENTRYPOINTS
> > +       bool "python-fastentrypoints"
> > +       help
> > +         Makes entry_points specified in setup.py load more quickly.
> > +
> > +         https://github.com/ninjaaron/fast-entry_points

So we have a Config.in option for a target package.

> > +PYTHON_FASTENTRYPOINTS_VERSION = 0.10
> > +PYTHON_FASTENTRYPOINTS_SOURCE = fastentrypoints-$(PYTHON_FASTENTRYPOINTS_VERSION).tar.gz
> > +PYTHON_FASTENTRYPOINTS_SITE = https://pypi.python.org/packages/e8/c8/c2902c9c9da43d8be8c75a730f15f0c51933c42c39b91d1d7b605a88e907
> > +PYTHON_FASTENTRYPOINTS_SETUP_TYPE = setuptools  
> 
> The license file can be found on github and seems to be BSD-2c [1]
> 
> With these changes applied you can add my: Reviewed-by: Yegor Yefremov
> <yegorslists@googlemail.com>
> 
> [1] https://github.com/ninjaaron/fast-entry_points/blob/master/LICENSE
> 
> Yegor
> 
> > +
> > +$(eval $(host-python-package))

But this is a host only package ?

I don't see how this can work. Am I missing something ?

Best regards,

Thomas
Asaf Kahlon April 9, 2018, 3:54 p.m. UTC | #3
Yegor, Thomas,

Indeed this is a host package. After you compile it, it can be used to
speed up entry points.
I now see Buildroot uses Config.in.host for this kind of packages, so I can
fix this on a new patch.

About the license - I saw the license file on the Github repository, but
this license is not provided on the tar.gz archive downloaded from pypi, so
how can I add the licence information?

Regards,
Asaf.

On Mon, Apr 9, 2018, 10:14 Thomas Petazzoni <thomas.petazzoni@bootlin.com>
wrote:

> Hello,
>
> On Sun, 8 Apr 2018 22:59:32 +0200, Yegor Yefremov wrote:
>
> > On Sun, Apr 8, 2018 at 7:48 PM, Asaf Kahlon <asafka7@gmail.com> wrote:
> > > host-package that is able to shorten the load time of entry_points
> declared
> > > in setup.py of python packages.
> > >
> > > Unfortunately, license file was not found.
> >
> > This comment shouldn't be part of the commit log.
>
> I disagree, this comment makes sense in a commit log.
>
>
> > > diff --git a/package/python-fastentrypoints/Config.in
> b/package/python-fastentrypoints/Config.in
> > > new file mode 100644
> > > index 0000000000..d2c86dbc5e
> > > --- /dev/null
> > > +++ b/package/python-fastentrypoints/Config.in
> > > @@ -0,0 +1,6 @@
> > > +config BR2_PACKAGE_PYTHON_FASTENTRYPOINTS
> > > +       bool "python-fastentrypoints"
> > > +       help
> > > +         Makes entry_points specified in setup.py load more quickly.
> > > +
> > > +         https://github.com/ninjaaron/fast-entry_points
>
> So we have a Config.in option for a target package.
>
> > > +PYTHON_FASTENTRYPOINTS_VERSION = 0.10
> > > +PYTHON_FASTENTRYPOINTS_SOURCE =
> fastentrypoints-$(PYTHON_FASTENTRYPOINTS_VERSION).tar.gz
> > > +PYTHON_FASTENTRYPOINTS_SITE =
> https://pypi.python.org/packages/e8/c8/c2902c9c9da43d8be8c75a730f15f0c51933c42c39b91d1d7b605a88e907
> > > +PYTHON_FASTENTRYPOINTS_SETUP_TYPE = setuptools
> >
> > The license file can be found on github and seems to be BSD-2c [1]
> >
> > With these changes applied you can add my: Reviewed-by: Yegor Yefremov
> > <yegorslists@googlemail.com>
> >
> > [1] https://github.com/ninjaaron/fast-entry_points/blob/master/LICENSE
> >
> > Yegor
> >
> > > +
> > > +$(eval $(host-python-package))
>
> But this is a host only package ?
>
> I don't see how this can work. Am I missing something ?
>
> Best regards,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
> Embedded Linux and Kernel engineering
> https://bootlin.com
>
<div dir="auto">Yegor, Thomas,<div dir="auto"><br></div><div dir="auto">Indeed this is a host package. After you compile it, it can be used to speed up entry points.</div><div dir="auto">I now see Buildroot uses Config.in.host for this kind of packages, so I can fix this on a new patch.</div><div dir="auto"><br></div><div dir="auto">About the license - I saw the license file on the Github repository, but this license is not provided on the tar.gz archive downloaded from pypi, so how can I add the licence information?</div><div dir="auto"><br></div><div dir="auto">Regards,</div><div dir="auto">Asaf.</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Apr 9, 2018, 10:14 Thomas Petazzoni &lt;<a href="mailto:thomas.petazzoni@bootlin.com" target="_blank" rel="noreferrer">thomas.petazzoni@bootlin.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
On Sun, 8 Apr 2018 22:59:32 +0200, Yegor Yefremov wrote:<br>
<br>
&gt; On Sun, Apr 8, 2018 at 7:48 PM, Asaf Kahlon &lt;<a href="mailto:asafka7@gmail.com" rel="noreferrer noreferrer" target="_blank">asafka7@gmail.com</a>&gt; wrote:<br>
&gt; &gt; host-package that is able to shorten the load time of entry_points declared<br>
&gt; &gt; in setup.py of python packages.<br>
&gt; &gt;<br>
&gt; &gt; Unfortunately, license file was not found.<br>
&gt;<br>
&gt; This comment shouldn&#39;t be part of the commit log.<br>
<br>
I disagree, this comment makes sense in a commit log.<br>
<br>
<br>
&gt; &gt; diff --git a/package/python-fastentrypoints/Config.in b/package/python-fastentrypoints/Config.in<br>
&gt; &gt; new file mode 100644<br>
&gt; &gt; index 0000000000..d2c86dbc5e<br>
&gt; &gt; --- /dev/null<br>
&gt; &gt; +++ b/package/python-fastentrypoints/Config.in<br>
&gt; &gt; @@ -0,0 +1,6 @@<br>
&gt; &gt; +config BR2_PACKAGE_PYTHON_FASTENTRYPOINTS<br>
&gt; &gt; +       bool &quot;python-fastentrypoints&quot;<br>
&gt; &gt; +       help<br>
&gt; &gt; +         Makes entry_points specified in setup.py load more quickly.<br>
&gt; &gt; +<br>
&gt; &gt; +         <a href="https://github.com/ninjaaron/fast-entry_points" rel="noreferrer noreferrer noreferrer" target="_blank">https://github.com/ninjaaron/fast-entry_points</a><br>
<br>
So we have a Config.in option for a target package.<br>
<br>
&gt; &gt; +PYTHON_FASTENTRYPOINTS_VERSION = 0.10<br>
&gt; &gt; +PYTHON_FASTENTRYPOINTS_SOURCE = fastentrypoints-$(PYTHON_FASTENTRYPOINTS_VERSION).tar.gz<br>
&gt; &gt; +PYTHON_FASTENTRYPOINTS_SITE = <a href="https://pypi.python.org/packages/e8/c8/c2902c9c9da43d8be8c75a730f15f0c51933c42c39b91d1d7b605a88e907" rel="noreferrer noreferrer noreferrer" target="_blank">https://pypi.python.org/packages/e8/c8/c2902c9c9da43d8be8c75a730f15f0c51933c42c39b91d1d7b605a88e907</a><br>
&gt; &gt; +PYTHON_FASTENTRYPOINTS_SETUP_TYPE = setuptools<br>
&gt;<br>
&gt; The license file can be found on github and seems to be BSD-2c [1]<br>
&gt;<br>
&gt; With these changes applied you can add my: Reviewed-by: Yegor Yefremov<br>
&gt; &lt;<a href="mailto:yegorslists@googlemail.com" rel="noreferrer noreferrer" target="_blank">yegorslists@googlemail.com</a>&gt;<br>
&gt;<br>
&gt; [1] <a href="https://github.com/ninjaaron/fast-entry_points/blob/master/LICENSE" rel="noreferrer noreferrer noreferrer" target="_blank">https://github.com/ninjaaron/fast-entry_points/blob/master/LICENSE</a><br>
&gt;<br>
&gt; Yegor<br>
&gt;<br>
&gt; &gt; +<br>
&gt; &gt; +$(eval $(host-python-package))<br>
<br>
But this is a host only package ?<br>
<br>
I don&#39;t see how this can work. Am I missing something ?<br>
<br>
Best regards,<br>
<br>
Thomas<br>
--<br>
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)<br>
Embedded Linux and Kernel engineering<br>
<a href="https://bootlin.com" rel="noreferrer noreferrer noreferrer" target="_blank">https://bootlin.com</a><br>
</blockquote></div>
Yegor Yefremov April 9, 2018, 4:47 p.m. UTC | #4
Hi Asaf,

On Mon, Apr 9, 2018 at 5:54 PM, Asaf Kahlon <asafka7@gmail.com> wrote:
> Yegor, Thomas,
>
> Indeed this is a host package. After you compile it, it can be used to speed
> up entry points.
> I now see Buildroot uses Config.in.host for this kind of packages, so I can
> fix this on a new patch.
>
> About the license - I saw the license file on the Github repository, but
> this license is not provided on the tar.gz archive downloaded from pypi, so
> how can I add the licence information?

Just use fastentrypoints.py as license file. I've asked maintainer to
add license file to the PyPI's archive. So perhaps the new version
would already have it.

Yegor

> On Mon, Apr 9, 2018, 10:14 Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> wrote:
>>
>> Hello,
>>
>> On Sun, 8 Apr 2018 22:59:32 +0200, Yegor Yefremov wrote:
>>
>> > On Sun, Apr 8, 2018 at 7:48 PM, Asaf Kahlon <asafka7@gmail.com> wrote:
>> > > host-package that is able to shorten the load time of entry_points
>> > > declared
>> > > in setup.py of python packages.
>> > >
>> > > Unfortunately, license file was not found.
>> >
>> > This comment shouldn't be part of the commit log.
>>
>> I disagree, this comment makes sense in a commit log.
>>
>>
>> > > diff --git a/package/python-fastentrypoints/Config.in
>> > > b/package/python-fastentrypoints/Config.in
>> > > new file mode 100644
>> > > index 0000000000..d2c86dbc5e
>> > > --- /dev/null
>> > > +++ b/package/python-fastentrypoints/Config.in
>> > > @@ -0,0 +1,6 @@
>> > > +config BR2_PACKAGE_PYTHON_FASTENTRYPOINTS
>> > > +       bool "python-fastentrypoints"
>> > > +       help
>> > > +         Makes entry_points specified in setup.py load more quickly.
>> > > +
>> > > +         https://github.com/ninjaaron/fast-entry_points
>>
>> So we have a Config.in option for a target package.
>>
>> > > +PYTHON_FASTENTRYPOINTS_VERSION = 0.10
>> > > +PYTHON_FASTENTRYPOINTS_SOURCE =
>> > > fastentrypoints-$(PYTHON_FASTENTRYPOINTS_VERSION).tar.gz
>> > > +PYTHON_FASTENTRYPOINTS_SITE =
>> > > https://pypi.python.org/packages/e8/c8/c2902c9c9da43d8be8c75a730f15f0c51933c42c39b91d1d7b605a88e907
>> > > +PYTHON_FASTENTRYPOINTS_SETUP_TYPE = setuptools
>> >
>> > The license file can be found on github and seems to be BSD-2c [1]
>> >
>> > With these changes applied you can add my: Reviewed-by: Yegor Yefremov
>> > <yegorslists@googlemail.com>
>> >
>> > [1] https://github.com/ninjaaron/fast-entry_points/blob/master/LICENSE
>> >
>> > Yegor
>> >
>> > > +
>> > > +$(eval $(host-python-package))
>>
>> But this is a host only package ?
>>
>> I don't see how this can work. Am I missing something ?
>>
>> Best regards,
>>
>> Thomas
>> --
>> Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
>> Embedded Linux and Kernel engineering
>> https://bootlin.com
Asaf Kahlon April 9, 2018, 6:02 p.m. UTC | #5
OK, I'll keep an eye on this package and when it updates I'll send a patch.
Meantime, I'll put fastentrypoints.py as license file.

Thanks!

On Mon, Apr 9, 2018 at 7:47 PM, Yegor Yefremov <yegorslists@googlemail.com>
wrote:

> Hi Asaf,
>
> On Mon, Apr 9, 2018 at 5:54 PM, Asaf Kahlon <asafka7@gmail.com> wrote:
> > Yegor, Thomas,
> >
> > Indeed this is a host package. After you compile it, it can be used to
> speed
> > up entry points.
> > I now see Buildroot uses Config.in.host for this kind of packages, so I
> can
> > fix this on a new patch.
> >
> > About the license - I saw the license file on the Github repository, but
> > this license is not provided on the tar.gz archive downloaded from pypi,
> so
> > how can I add the licence information?
>
> Just use fastentrypoints.py as license file. I've asked maintainer to
> add license file to the PyPI's archive. So perhaps the new version
> would already have it.
>
> Yegor
>
> > On Mon, Apr 9, 2018, 10:14 Thomas Petazzoni <
> thomas.petazzoni@bootlin.com>
> > wrote:
> >>
> >> Hello,
> >>
> >> On Sun, 8 Apr 2018 22:59:32 +0200, Yegor Yefremov wrote:
> >>
> >> > On Sun, Apr 8, 2018 at 7:48 PM, Asaf Kahlon <asafka7@gmail.com>
> wrote:
> >> > > host-package that is able to shorten the load time of entry_points
> >> > > declared
> >> > > in setup.py of python packages.
> >> > >
> >> > > Unfortunately, license file was not found.
> >> >
> >> > This comment shouldn't be part of the commit log.
> >>
> >> I disagree, this comment makes sense in a commit log.
> >>
> >>
> >> > > diff --git a/package/python-fastentrypoints/Config.in
> >> > > b/package/python-fastentrypoints/Config.in
> >> > > new file mode 100644
> >> > > index 0000000000..d2c86dbc5e
> >> > > --- /dev/null
> >> > > +++ b/package/python-fastentrypoints/Config.in
> >> > > @@ -0,0 +1,6 @@
> >> > > +config BR2_PACKAGE_PYTHON_FASTENTRYPOINTS
> >> > > +       bool "python-fastentrypoints"
> >> > > +       help
> >> > > +         Makes entry_points specified in setup.py load more
> quickly.
> >> > > +
> >> > > +         https://github.com/ninjaaron/fast-entry_points
> >>
> >> So we have a Config.in option for a target package.
> >>
> >> > > +PYTHON_FASTENTRYPOINTS_VERSION = 0.10
> >> > > +PYTHON_FASTENTRYPOINTS_SOURCE =
> >> > > fastentrypoints-$(PYTHON_FASTENTRYPOINTS_VERSION).tar.gz
> >> > > +PYTHON_FASTENTRYPOINTS_SITE =
> >> > > https://pypi.python.org/packages/e8/c8/
> c2902c9c9da43d8be8c75a730f15f0c51933c42c39b91d1d7b605a88e907
> >> > > +PYTHON_FASTENTRYPOINTS_SETUP_TYPE = setuptools
> >> >
> >> > The license file can be found on github and seems to be BSD-2c [1]
> >> >
> >> > With these changes applied you can add my: Reviewed-by: Yegor Yefremov
> >> > <yegorslists@googlemail.com>
> >> >
> >> > [1] https://github.com/ninjaaron/fast-entry_points/blob/master/
> LICENSE
> >> >
> >> > Yegor
> >> >
> >> > > +
> >> > > +$(eval $(host-python-package))
> >>
> >> But this is a host only package ?
> >>
> >> I don't see how this can work. Am I missing something ?
> >>
> >> Best regards,
> >>
> >> Thomas
> >> --
> >> Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
> >> Embedded Linux and Kernel engineering
> >> https://bootlin.com
>
<div dir="ltr">OK, I&#39;ll keep an eye on this package and when it updates I&#39;ll send a patch.<div>Meantime, I&#39;ll put fastentrypoints.py as license file.</div><div><br></div><div>Thanks!</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 9, 2018 at 7:47 PM, Yegor Yefremov <span dir="ltr">&lt;<a href="mailto:yegorslists@googlemail.com" target="_blank">yegorslists@googlemail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Asaf,<br>
<span class=""><br>
On Mon, Apr 9, 2018 at 5:54 PM, Asaf Kahlon &lt;<a href="mailto:asafka7@gmail.com">asafka7@gmail.com</a>&gt; wrote:<br>
&gt; Yegor, Thomas,<br>
&gt;<br>
&gt; Indeed this is a host package. After you compile it, it can be used to speed<br>
&gt; up entry points.<br>
&gt; I now see Buildroot uses Config.in.host for this kind of packages, so I can<br>
&gt; fix this on a new patch.<br>
&gt;<br>
&gt; About the license - I saw the license file on the Github repository, but<br>
&gt; this license is not provided on the tar.gz archive downloaded from pypi, so<br>
&gt; how can I add the licence information?<br>
<br>
</span>Just use fastentrypoints.py as license file. I&#39;ve asked maintainer to<br>
add license file to the PyPI&#39;s archive. So perhaps the new version<br>
would already have it.<br>
<span class="HOEnZb"><font color="#888888"><br>
Yegor<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
&gt; On Mon, Apr 9, 2018, 10:14 Thomas Petazzoni &lt;<a href="mailto:thomas.petazzoni@bootlin.com">thomas.petazzoni@bootlin.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hello,<br>
&gt;&gt;<br>
&gt;&gt; On Sun, 8 Apr 2018 22:59:32 +0200, Yegor Yefremov wrote:<br>
&gt;&gt;<br>
&gt;&gt; &gt; On Sun, Apr 8, 2018 at 7:48 PM, Asaf Kahlon &lt;<a href="mailto:asafka7@gmail.com">asafka7@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; &gt; host-package that is able to shorten the load time of entry_points<br>
&gt;&gt; &gt; &gt; declared<br>
&gt;&gt; &gt; &gt; in setup.py of python packages.<br>
&gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; Unfortunately, license file was not found.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; This comment shouldn&#39;t be part of the commit log.<br>
&gt;&gt;<br>
&gt;&gt; I disagree, this comment makes sense in a commit log.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; &gt; &gt; diff --git a/package/python-<wbr>fastentrypoints/Config.in<br>
&gt;&gt; &gt; &gt; b/package/python-<wbr>fastentrypoints/Config.in<br>
&gt;&gt; &gt; &gt; new file mode 100644<br>
&gt;&gt; &gt; &gt; index 0000000000..d2c86dbc5e<br>
&gt;&gt; &gt; &gt; --- /dev/null<br>
&gt;&gt; &gt; &gt; +++ b/package/python-<wbr>fastentrypoints/Config.in<br>
&gt;&gt; &gt; &gt; @@ -0,0 +1,6 @@<br>
&gt;&gt; &gt; &gt; +config BR2_PACKAGE_PYTHON_<wbr>FASTENTRYPOINTS<br>
&gt;&gt; &gt; &gt; +       bool &quot;python-fastentrypoints&quot;<br>
&gt;&gt; &gt; &gt; +       help<br>
&gt;&gt; &gt; &gt; +         Makes entry_points specified in setup.py load more quickly.<br>
&gt;&gt; &gt; &gt; +<br>
&gt;&gt; &gt; &gt; +         <a href="https://github.com/ninjaaron/fast-entry_points" rel="noreferrer" target="_blank">https://github.com/ninjaaron/<wbr>fast-entry_points</a><br>
&gt;&gt;<br>
&gt;&gt; So we have a Config.in option for a target package.<br>
&gt;&gt;<br>
&gt;&gt; &gt; &gt; +PYTHON_FASTENTRYPOINTS_<wbr>VERSION = 0.10<br>
&gt;&gt; &gt; &gt; +PYTHON_FASTENTRYPOINTS_SOURCE =<br>
&gt;&gt; &gt; &gt; fastentrypoints-$(PYTHON_<wbr>FASTENTRYPOINTS_VERSION).tar.<wbr>gz<br>
&gt;&gt; &gt; &gt; +PYTHON_FASTENTRYPOINTS_SITE =<br>
&gt;&gt; &gt; &gt; <a href="https://pypi.python.org/packages/e8/c8/c2902c9c9da43d8be8c75a730f15f0c51933c42c39b91d1d7b605a88e907" rel="noreferrer" target="_blank">https://pypi.python.org/<wbr>packages/e8/c8/<wbr>c2902c9c9da43d8be8c75a730f15f0<wbr>c51933c42c39b91d1d7b605a88e907</a><br>
&gt;&gt; &gt; &gt; +PYTHON_FASTENTRYPOINTS_SETUP_<wbr>TYPE = setuptools<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; The license file can be found on github and seems to be BSD-2c [1]<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; With these changes applied you can add my: Reviewed-by: Yegor Yefremov<br>
&gt;&gt; &gt; &lt;<a href="mailto:yegorslists@googlemail.com">yegorslists@googlemail.com</a>&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; [1] <a href="https://github.com/ninjaaron/fast-entry_points/blob/master/LICENSE" rel="noreferrer" target="_blank">https://github.com/ninjaaron/<wbr>fast-entry_points/blob/master/<wbr>LICENSE</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Yegor<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; &gt; +<br>
&gt;&gt; &gt; &gt; +$(eval $(host-python-package))<br>
&gt;&gt;<br>
&gt;&gt; But this is a host only package ?<br>
&gt;&gt;<br>
&gt;&gt; I don&#39;t see how this can work. Am I missing something ?<br>
&gt;&gt;<br>
&gt;&gt; Best regards,<br>
&gt;&gt;<br>
&gt;&gt; Thomas<br>
&gt;&gt; --<br>
&gt;&gt; Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)<br>
&gt;&gt; Embedded Linux and Kernel engineering<br>
&gt;&gt; <a href="https://bootlin.com" rel="noreferrer" target="_blank">https://bootlin.com</a><br>
</div></div></blockquote></div><br></div>
diff mbox series

Patch

diff --git a/DEVELOPERS b/DEVELOPERS
index 10b20c259b..ea33d5e730 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -189,6 +189,7 @@  F:	package/sqlcipher/
 F:	package/stress/
 
 N:	Asaf Kahlon <asafka7@gmail.com>
+F:	package/python-fastentrypoints/
 F:	package/python-jsonmodels/
 F:	package/python-yieldfrom/
 
diff --git a/package/Config.in b/package/Config.in
index 5e798a4f14..d7e51b203c 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -778,6 +778,7 @@  menu "External python modules"
 	source "package/python-engineio/Config.in"
 	source "package/python-enum/Config.in"
 	source "package/python-enum34/Config.in"
+	source "package/python-fastentrypoints/Config.in"
 	source "package/python-flask/Config.in"
 	source "package/python-flask-cors/Config.in"
 	source "package/python-flask-babel/Config.in"
diff --git a/package/python-fastentrypoints/Config.in b/package/python-fastentrypoints/Config.in
new file mode 100644
index 0000000000..d2c86dbc5e
--- /dev/null
+++ b/package/python-fastentrypoints/Config.in
@@ -0,0 +1,6 @@ 
+config BR2_PACKAGE_PYTHON_FASTENTRYPOINTS
+	bool "python-fastentrypoints"
+	help
+	  Makes entry_points specified in setup.py load more quickly.
+
+	  https://github.com/ninjaaron/fast-entry_points
diff --git a/package/python-fastentrypoints/python-fastentrypoints.hash b/package/python-fastentrypoints/python-fastentrypoints.hash
new file mode 100644
index 0000000000..da6e2ae9d8
--- /dev/null
+++ b/package/python-fastentrypoints/python-fastentrypoints.hash
@@ -0,0 +1,3 @@ 
+# md5 from https://pypi.python.org/pypi/fastentrypoints/json, sha256 locally computed
+md5	9bd2a34697eb8279d87e7b927f4f7e85  fastentrypoints-0.10.tar.gz
+sha256	ed418146ed87230694ec2d8890b9b3e2967e95d857e5ce933cafecb1067cca82  fastentrypoints-0.10.tar.gz
diff --git a/package/python-fastentrypoints/python-fastentrypoints.mk b/package/python-fastentrypoints/python-fastentrypoints.mk
new file mode 100644
index 0000000000..455cfe8319
--- /dev/null
+++ b/package/python-fastentrypoints/python-fastentrypoints.mk
@@ -0,0 +1,12 @@ 
+################################################################################
+#
+# python-fastentrypoints
+#
+################################################################################
+
+PYTHON_FASTENTRYPOINTS_VERSION = 0.10
+PYTHON_FASTENTRYPOINTS_SOURCE = fastentrypoints-$(PYTHON_FASTENTRYPOINTS_VERSION).tar.gz
+PYTHON_FASTENTRYPOINTS_SITE = https://pypi.python.org/packages/e8/c8/c2902c9c9da43d8be8c75a730f15f0c51933c42c39b91d1d7b605a88e907
+PYTHON_FASTENTRYPOINTS_SETUP_TYPE = setuptools
+
+$(eval $(host-python-package))