All of 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

* Re: [Buildroot] [PATCH next v2 5/7] package/python-magic-wormhole-mailbox-server: new package
  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
  0 siblings, 0 replies; 3+ messages in thread
From: Julien Olivain @ 2023-02-11 18:00 UTC (permalink / raw)
  To: Yann E. MORIN; +Cc: Asaf Kahlon, Thomas Petazzoni, buildroot

Yann, All,

On 11/02/2023 16:10, Yann E. MORIN wrote:
> 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?

Thank you for reporting this issue!  I just checked the series and it is
the only patch selecting autobhan with the missing host rustc 
dependency.

I will send a patch right away.

Best regards,

Julien.
_______________________________________________
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 5/7] package/python-magic-wormhole-mailbox-server: new package
  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 ` Julien Olivain
  0 siblings, 0 replies; 3+ messages in thread
From: Julien Olivain @ 2022-11-22 20:31 UTC (permalink / raw)
  To: buildroot; +Cc: Julien Olivain, Thomas Petazzoni, Asaf Kahlon

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>
---
 DEVELOPERS                                    |  1 +
 package/Config.in                             |  1 +
 ...the-U-open-mode-removed-in-Python-3..patch | 38 +++++++++++++++++++
 .../Config.in                                 | 15 ++++++++
 .../python-magic-wormhole-mailbox-server.hash |  5 +++
 .../python-magic-wormhole-mailbox-server.mk   | 14 +++++++
 6 files changed, 74 insertions(+)
 create mode 100644 package/python-magic-wormhole-mailbox-server/0001-setup.py-remove-the-U-open-mode-removed-in-Python-3..patch
 create mode 100644 package/python-magic-wormhole-mailbox-server/Config.in
 create mode 100644 package/python-magic-wormhole-mailbox-server/python-magic-wormhole-mailbox-server.hash
 create mode 100644 package/python-magic-wormhole-mailbox-server/python-magic-wormhole-mailbox-server.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index b898d3a70b..5497eb412c 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1696,6 +1696,7 @@ F:	package/python-distro/
 F:	package/python-gnupg/
 F:	package/python-hkdf/
 F:	package/python-magic-wormhole/
+F:	package/python-magic-wormhole-mailbox-server/
 F:	package/python-pyalsa/
 F:	package/python-spake2/
 F:	package/riscv-isa-sim/
diff --git a/package/Config.in b/package/Config.in
index 302ffbe4cb..0d95225080 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1110,6 +1110,7 @@ menu "External python modules"
 	source "package/python-m2crypto/Config.in"
 	source "package/python-m2r/Config.in"
 	source "package/python-magic-wormhole/Config.in"
+	source "package/python-magic-wormhole-mailbox-server/Config.in"
 	source "package/python-mako/Config.in"
 	source "package/python-markdown/Config.in"
 	source "package/python-markdown2/Config.in"
diff --git a/package/python-magic-wormhole-mailbox-server/0001-setup.py-remove-the-U-open-mode-removed-in-Python-3..patch b/package/python-magic-wormhole-mailbox-server/0001-setup.py-remove-the-U-open-mode-removed-in-Python-3..patch
new file mode 100644
index 0000000000..bf98537ae8
--- /dev/null
+++ b/package/python-magic-wormhole-mailbox-server/0001-setup.py-remove-the-U-open-mode-removed-in-Python-3..patch
@@ -0,0 +1,38 @@
+From df6126ee86c1f84c7e0c25fcf69543b83b1b32c6 Mon Sep 17 00:00:00 2001
+From: Julien Olivain <ju.o@free.fr>
+Date: Sat, 5 Nov 2022 13:06:07 +0100
+Subject: [PATCH] setup.py: remove the 'U' open mode removed in Python 3.11
+
+The 'U' open mode was removed in Python 3.11. See:
+https://docs.python.org/3.11/library/functions.html#open
+
+Installing with Python 3.11 fails with:
+
+    /path/to/python-magic-wormhole-mailbox-server-0.4.1/setup.py", line 20, in <module>
+        long_description=open('README.md', 'rU').read(),
+                         ^^^^^^^^^^^^^^^^^^^^^^^
+    ValueError: invalid mode: 'rU'
+
+This patch removes the 'U' open mode.
+
+Signed-off-by: Julien Olivain <ju.o@free.fr>
+---
+ setup.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index 6ef292f..ad9ff5a 100644
+--- a/setup.py
++++ b/setup.py
+@@ -17,7 +17,7 @@ trove_classifiers = [
+ setup(name="magic-wormhole-mailbox-server",
+       version=versioneer.get_version(),
+       description="Securely transfer data between computers",
+-      long_description=open('README.md', 'rU').read(),
++      long_description=open('README.md', 'r').read(),
+       long_description_content_type='text/markdown',
+       author="Brian Warner",
+       author_email="warner-magic-wormhole@lothar.com",
+-- 
+2.38.1
+
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
+	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

^ 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 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.