diff mbox series

[meta-python,3/5] python3-propcache: Add recipe

Message ID 20241009123007.1023153-3-leon.anavi@konsulko.com
State Accepted
Headers show
Series [meta-python,1/5] python3-stevedore: Upgrade 5.2.0 -> 5.3.0 | expand

Commit Message

Leon Anavi Oct. 9, 2024, 12:30 p.m. UTC
Add recipe for release 0.2.0:

- Fixed loading the C-extensions on Python 3.8
- Improved typing for the :func:`propcache.api.under_cached_property`
  decorator

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
---
 .../python/python3-propcache_0.2.0.bb         | 24 +++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-propcache_0.2.0.bb

Comments

Khem Raj Oct. 9, 2024, 5:48 p.m. UTC | #1
On Wed, Oct 9, 2024 at 5:30 AM Leon Anavi via lists.openembedded.org
<leon.anavi=konsulko.com@lists.openembedded.org> wrote:
>
> Add recipe for release 0.2.0:
>
> - Fixed loading the C-extensions on Python 3.8
> - Improved typing for the :func:`propcache.api.under_cached_property`
>   decorator
>
> Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
> ---
>  .../python/python3-propcache_0.2.0.bb         | 24 +++++++++++++++++++
>  1 file changed, 24 insertions(+)
>  create mode 100644 meta-python/recipes-devtools/python/python3-propcache_0.2.0.bb
>
> diff --git a/meta-python/recipes-devtools/python/python3-propcache_0.2.0.bb b/meta-python/recipes-devtools/python/python3-propcache_0.2.0.bb
> new file mode 100644
> index 000000000..01a7c4c05
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-propcache_0.2.0.bb
> @@ -0,0 +1,24 @@
> +SUMMARY = "Fast property caching"
> +HOMEPAGE = "https://github.com/aio-libs/propcache"
> +LICENSE = "Apache-2.0"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
> +
> +SRC_URI[sha256sum] = "df81779732feb9d01e5d513fad0122efb3d53bbc75f61b2a4f29a020bc985e70"
> +
> +inherit pypi python_setuptools_build_meta
> +
> +DEPENDS += " \
> +    python3-expandvars-native \
> +    python3-cython-native \
> +"
> +
> +#RDEPENDS:${PN} = "\
> +#    python3-multidict \
> +#    python3-idna \
> +#    python3-io \
> +#"
> +
> +#RDEPENDS:${PN}-ptest += " \
> +#    python3-pytest \
> +#    python3-unittest-automake-output \
> +#"

why are we adding commented code? Do tests work for this package at
all or is it wip
> --
> 2.39.5
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#112729): https://lists.openembedded.org/g/openembedded-devel/message/112729
> Mute This Topic: https://lists.openembedded.org/mt/108907750/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
Leon Anavi Oct. 10, 2024, 9:59 a.m. UTC | #2
Hi Khem,

On 9.10.24 г. 20:48 ч., Khem Raj wrote:
> On Wed, Oct 9, 2024 at 5:30 AM Leon Anavi via lists.openembedded.org
> <leon.anavi=konsulko.com@lists.openembedded.org> wrote:
>> Add recipe for release 0.2.0:
>>
>> - Fixed loading the C-extensions on Python 3.8
>> - Improved typing for the :func:`propcache.api.under_cached_property`
>>    decorator
>>
>> Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
>> ---
>>   .../python/python3-propcache_0.2.0.bb         | 24 +++++++++++++++++++
>>   1 file changed, 24 insertions(+)
>>   create mode 100644 meta-python/recipes-devtools/python/python3-propcache_0.2.0.bb
>>
>> diff --git a/meta-python/recipes-devtools/python/python3-propcache_0.2.0.bb b/meta-python/recipes-devtools/python/python3-propcache_0.2.0.bb
>> new file mode 100644
>> index 000000000..01a7c4c05
>> --- /dev/null
>> +++ b/meta-python/recipes-devtools/python/python3-propcache_0.2.0.bb
>> @@ -0,0 +1,24 @@
>> +SUMMARY = "Fast property caching"
>> +HOMEPAGE = "https://github.com/aio-libs/propcache"
>> +LICENSE = "Apache-2.0"
>> +LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
>> +
>> +SRC_URI[sha256sum] = "df81779732feb9d01e5d513fad0122efb3d53bbc75f61b2a4f29a020bc985e70"
>> +
>> +inherit pypi python_setuptools_build_meta
>> +
>> +DEPENDS += " \
>> +    python3-expandvars-native \
>> +    python3-cython-native \
>> +"
>> +
>> +#RDEPENDS:${PN} = "\
>> +#    python3-multidict \
>> +#    python3-idna \
>> +#    python3-io \
>> +#"
>> +
>> +#RDEPENDS:${PN}-ptest += " \
>> +#    python3-pytest \
>> +#    python3-unittest-automake-output \
>> +#"
> why are we adding commented code? Do tests work for this package at
> all or is it wip

Sorry, I've just sent v2 of the patch. We need this recipe for new 
version of python3-yarl which I updated yesterday. The package works. I 
tested it with my rpi5 setup.

Best regards,
Leon

>> --
>> 2.39.5
>>
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>> View/Reply Online (#112729): https://lists.openembedded.org/g/openembedded-devel/message/112729
>> Mute This Topic: https://lists.openembedded.org/mt/108907750/1997914
>> Group Owner: openembedded-devel+owner@lists.openembedded.org
>> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-propcache_0.2.0.bb b/meta-python/recipes-devtools/python/python3-propcache_0.2.0.bb
new file mode 100644
index 000000000..01a7c4c05
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-propcache_0.2.0.bb
@@ -0,0 +1,24 @@ 
+SUMMARY = "Fast property caching"
+HOMEPAGE = "https://github.com/aio-libs/propcache"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
+
+SRC_URI[sha256sum] = "df81779732feb9d01e5d513fad0122efb3d53bbc75f61b2a4f29a020bc985e70"
+
+inherit pypi python_setuptools_build_meta
+
+DEPENDS += " \
+    python3-expandvars-native \
+    python3-cython-native \
+"
+
+#RDEPENDS:${PN} = "\
+#    python3-multidict \
+#    python3-idna \
+#    python3-io \
+#"
+
+#RDEPENDS:${PN}-ptest += " \
+#    python3-pytest \
+#    python3-unittest-automake-output \
+#"