Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Buildroot] [PATCH next v2 5/7] package/python-magic-wormhole-mailbox-server: new package
@ 2023-02-11 15:10 Yann E. MORIN
  2023-02-11 18:00 ` Julien Olivain
  0 siblings, 1 reply; 3+ messages in thread
From: Yann E. MORIN @ 2023-02-11 15:10 UTC (permalink / raw)
  To: Julien Olivain; +Cc: Asaf Kahlon, Thomas Petazzoni, buildroot

Julien, All,

On 2022-11-22 21:31 +0100, Julien Olivain spake thusly:
> This package is the main server that Magic-Wormhole clients connect to.
> The server performs store-and-forward delivery for small key-exchange
> and control messages. Bulk data is sent over a direct TCP connection,
> or through a transit-relay.
> 
> https://github.com/magic-wormhole/magic-wormhole-mailbox-server
> 
> Signed-off-by: Julien Olivain <ju.o@free.fr>
> ---
[--SNIP--]
> diff --git a/package/python-magic-wormhole-mailbox-server/Config.in b/package/python-magic-wormhole-mailbox-server/Config.in
> new file mode 100644
> index 0000000000..db20d3e7b6
> --- /dev/null
> +++ b/package/python-magic-wormhole-mailbox-server/Config.in
> @@ -0,0 +1,15 @@
> +config BR2_PACKAGE_PYTHON_MAGIC_WORMHOLE_MAILBOX_SERVER
> +	bool "python-magic-wormhole-mailbox-server"
> +	select BR2_PACKAGE_PYTHON3_SQLITE # runtime
> +	select BR2_PACKAGE_PYTHON_ATTRS # runtime
> +	select BR2_PACKAGE_PYTHON_AUTOBAHN # runtime

python-autobahn depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS,
so this should have been propagated. It's relatively easy to reproduce
on current master as of commit 451672e890b5:

    $ KCONFIG_SEED=0x1D15B9D4 make randconfig
    [...]
    WARNING: unmet direct dependencies detected for BR2_PACKAGE_PYTHON_AUTOBAHN
      Depends on [n]: BR2_PACKAGE_PYTHON3 [=y] && BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS [=n]
      Selected by [y]:
      - BR2_PACKAGE_PYTHON_MAGIC_WORMHOLE_MAILBOX_SERVER [=y] && BR2_PACKAGE_PYTHON3 [=y]

Care to send a fix, and check the other packages that were added in this
series, please?

Regards,
Yann E. MORIN.

> +	select BR2_PACKAGE_PYTHON_SIX # runtime
> +	select BR2_PACKAGE_PYTHON_TWISTED # runtime
> +	help
> +	  This package is the main server that Magic-Wormhole clients
> +	  connect to. The server performs store-and-forward delivery
> +	  for small key-exchange and control messages. Bulk data is
> +	  sent over a direct TCP connection, or through a
> +	  transit-relay.
> +
> +	  https://github.com/magic-wormhole/magic-wormhole-mailbox-server
> diff --git a/package/python-magic-wormhole-mailbox-server/python-magic-wormhole-mailbox-server.hash b/package/python-magic-wormhole-mailbox-server/python-magic-wormhole-mailbox-server.hash
> new file mode 100644
> index 0000000000..c714712641
> --- /dev/null
> +++ b/package/python-magic-wormhole-mailbox-server/python-magic-wormhole-mailbox-server.hash
> @@ -0,0 +1,5 @@
> +# md5, sha256 from https://pypi.org/pypi/magic-wormhole-mailbox-server/json
> +md5  3da441df1f354a8399a728da3421ac8f  magic-wormhole-mailbox-server-0.4.1.tar.gz
> +sha256  1af10592909caaf519c00e706eac842c5e77f8d4356215fe9c61c7b2258a88fb  magic-wormhole-mailbox-server-0.4.1.tar.gz
> +# Locally computed sha256 checksums
> +sha256  4a9cc2415c52cef591b6822eee68fed36d7e6d80284b09638cff61d762d99060  LICENSE
> diff --git a/package/python-magic-wormhole-mailbox-server/python-magic-wormhole-mailbox-server.mk b/package/python-magic-wormhole-mailbox-server/python-magic-wormhole-mailbox-server.mk
> new file mode 100644
> index 0000000000..a3394c7dcd
> --- /dev/null
> +++ b/package/python-magic-wormhole-mailbox-server/python-magic-wormhole-mailbox-server.mk
> @@ -0,0 +1,14 @@
> +################################################################################
> +#
> +# python-magic-wormhole-mailbox-server
> +#
> +################################################################################
> +
> +PYTHON_MAGIC_WORMHOLE_MAILBOX_SERVER_VERSION = 0.4.1
> +PYTHON_MAGIC_WORMHOLE_MAILBOX_SERVER_SOURCE = magic-wormhole-mailbox-server-$(PYTHON_MAGIC_WORMHOLE_MAILBOX_SERVER_VERSION).tar.gz
> +PYTHON_MAGIC_WORMHOLE_MAILBOX_SERVER_SITE = https://files.pythonhosted.org/packages/5b/ba/cbb211bc8f8bfdf7fb620d33331f07bcd889c7a28e7fd8a0de9029bb5a2f
> +PYTHON_MAGIC_WORMHOLE_MAILBOX_SERVER_SETUP_TYPE = setuptools
> +PYTHON_MAGIC_WORMHOLE_MAILBOX_SERVER_LICENSE = MIT
> +PYTHON_MAGIC_WORMHOLE_MAILBOX_SERVER_LICENSE_FILES = LICENSE
> +
> +$(eval $(python-package))
> -- 
> 2.38.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread
* [Buildroot] [PATCH next v2 1/7] package/python-idna: set _SETUP_TYPE = flit
@ 2022-11-22 20:31 Julien Olivain
  2022-11-22 20:31 ` [Buildroot] [PATCH next v2 5/7] package/python-magic-wormhole-mailbox-server: new package Julien Olivain
  0 siblings, 1 reply; 3+ messages in thread
From: Julien Olivain @ 2022-11-22 20:31 UTC (permalink / raw)
  To: buildroot; +Cc: Julien Olivain, Thomas Petazzoni, Asaf Kahlon

Python idna package switched to pyproject.toml in commit:
https://github.com/kjd/idna/commit/2a00e518efe55d2eeb62cd3f88ace7db41338603
which is included in idna v3.4.

When using the old setuptools infra, the package is incorrectly
installed as v0.0, which is then incorrectly detected by other
packages when using setuptools pkg_resources.

The issue can be reproduced with the command:

    python3 <<EOF
    __requires__ = ["idna >= 2.5"]
    import pkg_resources
    EOF

which will fail with output:

    pkg_resources.ContextualVersionConflict: (idna 0.0.0 (/usr/lib/python3.11/site-packages), Requirement.parse('idna>=2.5'), {'hyperlink'})
    pkg_resources.DistributionNotFound: The 'idna>=2.5' distribution was not found and is required by hyperlink

This commit changes _SETUP_TYPE to "flit" to fix this issue.

Signed-off-by: Julien Olivain <ju.o@free.fr>
---
Changes v1 -> v2:
- Included James' review comment:
  - _SETUP_TYPE changed from pep517 to flit
---
 package/python-idna/python-idna.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/python-idna/python-idna.mk b/package/python-idna/python-idna.mk
index 4d9994a9c7..3976cb1518 100644
--- a/package/python-idna/python-idna.mk
+++ b/package/python-idna/python-idna.mk
@@ -9,7 +9,7 @@ PYTHON_IDNA_SOURCE = idna-$(PYTHON_IDNA_VERSION).tar.gz
 PYTHON_IDNA_SITE = https://files.pythonhosted.org/packages/8b/e1/43beb3d38dba6cb420cefa297822eac205a277ab43e5ba5d5c46faf96438
 PYTHON_IDNA_LICENSE = BSD-3-Clause
 PYTHON_IDNA_LICENSE_FILES = LICENSE.md
-PYTHON_IDNA_SETUP_TYPE = setuptools
+PYTHON_IDNA_SETUP_TYPE = flit
 
 $(eval $(python-package))
 $(eval $(host-python-package))
-- 
2.38.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-02-11 18:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-11 15:10 [Buildroot] [PATCH next v2 5/7] package/python-magic-wormhole-mailbox-server: new package Yann E. MORIN
2023-02-11 18:00 ` Julien Olivain
  -- strict thread matches above, loose matches on Subject: below --
2022-11-22 20:31 [Buildroot] [PATCH next v2 1/7] package/python-idna: set _SETUP_TYPE = flit Julien Olivain
2022-11-22 20:31 ` [Buildroot] [PATCH next v2 5/7] package/python-magic-wormhole-mailbox-server: new package Julien Olivain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox