[meta-python] python3-txsockjs: new package

Submitted by Bartosz Golaszewski on April 27, 2021, 2 p.m. | Patch ID: 179692

Details

Message ID 20210427140009.10771-1-brgl@bgdev.pl
State New
Headers show

Commit Message

Bartosz Golaszewski April 27, 2021, 2 p.m.
This adds twisted python support for SockJS.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
---
 .../0001-setup-fix-syntax-error.patch         | 27 +++++++++++++++++++
 .../python/python3-txsockjs_1.2.2.bb          | 15 +++++++++++
 2 files changed, 42 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-txsockjs/0001-setup-fix-syntax-error.patch
 create mode 100644 meta-python/recipes-devtools/python/python3-txsockjs_1.2.2.bb

Patch hide | download patch | download mbox

diff --git a/meta-python/recipes-devtools/python/python3-txsockjs/0001-setup-fix-syntax-error.patch b/meta-python/recipes-devtools/python/python3-txsockjs/0001-setup-fix-syntax-error.patch
new file mode 100644
index 000000000..f5de64221
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-txsockjs/0001-setup-fix-syntax-error.patch
@@ -0,0 +1,27 @@ 
+From 7b6323f467dc4f2ff4421350ac5fbf3a73c66764 Mon Sep 17 00:00:00 2001
+From: Bartosz Golaszewski <brgl@bgdev.pl>
+Date: Tue, 27 Apr 2021 14:20:41 +0200
+Subject: [PATCH] setup: fix syntax error
+
+Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
+---
+Upstream-Status: Inappropriate [Project's github has been removed :(]
+
+ setup.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index d67320e..13ac3c5 100644
+--- a/setup.py
++++ b/setup.py
+@@ -70,6 +70,6 @@ setup(
+ try:
+     from twisted.plugin import IPlugin, getPlugins
+     list(getPlugins(IPlugin))
+-except Exception, e:
++except Exception as e:
+     log.warn("*** Failed to update Twisted plugin cache. ***")
+     log.warn(str(e))
+-- 
+2.25.1
+
diff --git a/meta-python/recipes-devtools/python/python3-txsockjs_1.2.2.bb b/meta-python/recipes-devtools/python/python3-txsockjs_1.2.2.bb
new file mode 100644
index 000000000..e5a86e013
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-txsockjs_1.2.2.bb
@@ -0,0 +1,15 @@ 
+SUMMARY = "A simple library for adding SockJS support to your twisted application."
+AUTHOR = "Christopher Gamble"
+HOMEPAGE = "https://pypi.org/project/txsockjs/"
+SECTION = "devel/python"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=c62063068876fa826aa4fb6db49fdf7a"
+
+SRC_URI += "file://0001-setup-fix-syntax-error.patch"
+
+SRC_URI[md5sum] = "fcdd3f68021abc6034223b5b36f43128"
+SRC_URI[sha256sum] = "759f5571e276e70c1ad20919d27cf2e8eef8751594892bd107d6e88dce4a5db9"
+
+inherit pypi setuptools3
+
+RDEPENDS_${PN} += "python3-twisted"

Comments

Trevor Gamblin April 27, 2021, 2:04 p.m.
On 2021-04-27 10:00 a.m., Bartosz Golaszewski wrote:
> [Please note: This e-mail is from an EXTERNAL e-mail address]
>
> This adds twisted python support for SockJS.
>
> Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
> ---
>   .../0001-setup-fix-syntax-error.patch         | 27 +++++++++++++++++++
>   .../python/python3-txsockjs_1.2.2.bb          | 15 +++++++++++
>   2 files changed, 42 insertions(+)
>   create mode 100644 meta-python/recipes-devtools/python/python3-txsockjs/0001-setup-fix-syntax-error.patch
>   create mode 100644 meta-python/recipes-devtools/python/python3-txsockjs_1.2.2.bb
>
> diff --git a/meta-python/recipes-devtools/python/python3-txsockjs/0001-setup-fix-syntax-error.patch b/meta-python/recipes-devtools/python/python3-txsockjs/0001-setup-fix-syntax-error.patch
> new file mode 100644
> index 000000000..f5de64221
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-txsockjs/0001-setup-fix-syntax-error.patch
> @@ -0,0 +1,27 @@
> +From 7b6323f467dc4f2ff4421350ac5fbf3a73c66764 Mon Sep 17 00:00:00 2001
> +From: Bartosz Golaszewski <brgl@bgdev.pl>
> +Date: Tue, 27 Apr 2021 14:20:41 +0200
> +Subject: [PATCH] setup: fix syntax error
> +
> +Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
> +---
> +Upstream-Status: Inappropriate [Project's github has been removed :(]

I'm hesitant to add a recipe for a module whose official repository may 
have been deleted. I do see the DesertBus/sockjs-twisted repo, but it 
hasn't been updated in several years. Do you know if any of the forks 
are actually being maintained?

- Trevor

> +
> + setup.py | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/setup.py b/setup.py
> +index d67320e..13ac3c5 100644
> +--- a/setup.py
> ++++ b/setup.py
> +@@ -70,6 +70,6 @@ setup(
> + try:
>
> +     from twisted.plugin import IPlugin, getPlugins
>
> +     list(getPlugins(IPlugin))
>
> +-except Exception, e:
>
> ++except Exception as e:
>
> +     log.warn("*** Failed to update Twisted plugin cache. ***")
>
> +     log.warn(str(e))
>
> +--
> +2.25.1
> +
> diff --git a/meta-python/recipes-devtools/python/python3-txsockjs_1.2.2.bb b/meta-python/recipes-devtools/python/python3-txsockjs_1.2.2.bb
> new file mode 100644
> index 000000000..e5a86e013
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-txsockjs_1.2.2.bb
> @@ -0,0 +1,15 @@
> +SUMMARY = "A simple library for adding SockJS support to your twisted application."
> +AUTHOR = "Christopher Gamble"
> +HOMEPAGE = "https://pypi.org/project/txsockjs/"
> +SECTION = "devel/python"
> +LICENSE = "BSD"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=c62063068876fa826aa4fb6db49fdf7a"
> +
> +SRC_URI += "file://0001-setup-fix-syntax-error.patch"
> +
> +SRC_URI[md5sum] = "fcdd3f68021abc6034223b5b36f43128"
> +SRC_URI[sha256sum] = "759f5571e276e70c1ad20919d27cf2e8eef8751594892bd107d6e88dce4a5db9"
> +
> +inherit pypi setuptools3
> +
> +RDEPENDS_${PN} += "python3-twisted"
> --
> 2.30.1
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#91085): https://lists.openembedded.org/g/openembedded-devel/message/91085
Mute This Topic: https://lists.openembedded.org/mt/82404387/3617530
Group Owner: openembedded-devel+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [oe-patchwork@oe-patch.openembedded.org]
-=-=-=-=-=-=-=-=-=-=-=-
Bartosz Golaszewski April 27, 2021, 2:43 p.m.
On Tue, Apr 27, 2021 at 4:04 PM Trevor Gamblin
<trevor.gamblin@windriver.com> wrote:
>
>
> On 2021-04-27 10:00 a.m., Bartosz Golaszewski wrote:
> > [Please note: This e-mail is from an EXTERNAL e-mail address]
> >
> > This adds twisted python support for SockJS.
> >
> > Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
> > ---
> >   .../0001-setup-fix-syntax-error.patch         | 27 +++++++++++++++++++
> >   .../python/python3-txsockjs_1.2.2.bb          | 15 +++++++++++
> >   2 files changed, 42 insertions(+)
> >   create mode 100644 meta-python/recipes-devtools/python/python3-txsockjs/0001-setup-fix-syntax-error.patch
> >   create mode 100644 meta-python/recipes-devtools/python/python3-txsockjs_1.2.2.bb
> >
> > diff --git a/meta-python/recipes-devtools/python/python3-txsockjs/0001-setup-fix-syntax-error.patch b/meta-python/recipes-devtools/python/python3-txsockjs/0001-setup-fix-syntax-error.patch
> > new file mode 100644
> > index 000000000..f5de64221
> > --- /dev/null
> > +++ b/meta-python/recipes-devtools/python/python3-txsockjs/0001-setup-fix-syntax-error.patch
> > @@ -0,0 +1,27 @@
> > +From 7b6323f467dc4f2ff4421350ac5fbf3a73c66764 Mon Sep 17 00:00:00 2001
> > +From: Bartosz Golaszewski <brgl@bgdev.pl>
> > +Date: Tue, 27 Apr 2021 14:20:41 +0200
> > +Subject: [PATCH] setup: fix syntax error
> > +
> > +Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
> > +---
> > +Upstream-Status: Inappropriate [Project's github has been removed :(]
>
> I'm hesitant to add a recipe for a module whose official repository may
> have been deleted. I do see the DesertBus/sockjs-twisted repo, but it
> hasn't been updated in several years. Do you know if any of the forks
> are actually being maintained?
>

Doesn't look like they are but the package works fine for me. I'm not
too attached to this, we can keep the recipe locally in our layer if
you decide not to apply it.

Bart

> - Trevor
>
> > +
> > + setup.py | 2 +-
> > + 1 file changed, 1 insertion(+), 1 deletion(-)
> > +
> > +diff --git a/setup.py b/setup.py
> > +index d67320e..13ac3c5 100644
> > +--- a/setup.py
> > ++++ b/setup.py
> > +@@ -70,6 +70,6 @@ setup(
> > + try:
> >
> > +     from twisted.plugin import IPlugin, getPlugins
> >
> > +     list(getPlugins(IPlugin))
> >
> > +-except Exception, e:
> >
> > ++except Exception as e:
> >
> > +     log.warn("*** Failed to update Twisted plugin cache. ***")
> >
> > +     log.warn(str(e))
> >
> > +--
> > +2.25.1
> > +
> > diff --git a/meta-python/recipes-devtools/python/python3-txsockjs_1.2.2.bb b/meta-python/recipes-devtools/python/python3-txsockjs_1.2.2.bb
> > new file mode 100644
> > index 000000000..e5a86e013
> > --- /dev/null
> > +++ b/meta-python/recipes-devtools/python/python3-txsockjs_1.2.2.bb
> > @@ -0,0 +1,15 @@
> > +SUMMARY = "A simple library for adding SockJS support to your twisted application."
> > +AUTHOR = "Christopher Gamble"
> > +HOMEPAGE = "https://pypi.org/project/txsockjs/"
> > +SECTION = "devel/python"
> > +LICENSE = "BSD"
> > +LIC_FILES_CHKSUM = "file://LICENSE;md5=c62063068876fa826aa4fb6db49fdf7a"
> > +
> > +SRC_URI += "file://0001-setup-fix-syntax-error.patch"
> > +
> > +SRC_URI[md5sum] = "fcdd3f68021abc6034223b5b36f43128"
> > +SRC_URI[sha256sum] = "759f5571e276e70c1ad20919d27cf2e8eef8751594892bd107d6e88dce4a5db9"
> > +
> > +inherit pypi setuptools3
> > +
> > +RDEPENDS_${PN} += "python3-twisted"
> > --
> > 2.30.1
> >
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#91086): https://lists.openembedded.org/g/openembedded-devel/message/91086
Mute This Topic: https://lists.openembedded.org/mt/82404387/3617530
Group Owner: openembedded-devel+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [oe-patchwork@oe-patch.openembedded.org]
-=-=-=-=-=-=-=-=-=-=-=-