diff mbox

[v3,4/9] python-crossbar: fix byte-compilation of .pyc files

Message ID 1462133720-409-5-git-send-email-thomas.petazzoni@free-electrons.com
State Accepted
Headers show

Commit Message

Thomas Petazzoni May 1, 2016, 8:15 p.m. UTC
For its continuous integration tests, python-crossbar includes one .py
file that intentionally has a syntax error. Until now, this wasn't
causing any problem, but with the introduction of a Python
byte-compilation process that errors out when there is a failure, it
is going to become a problem.

We simply add a patch that removes the syntax error, as we don't care
about it in the context of Buildroot. The problem has been reported
upstream to see if a better fix is possible.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 .../0001-Avoid-intentional-syntax-error.patch      | 29 ++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 package/python-crossbar/0001-Avoid-intentional-syntax-error.patch

Comments

Samuel Martin May 1, 2016, 8:46 p.m. UTC | #1
Thomas, all,

On Sun, May 1, 2016 at 10:15 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> For its continuous integration tests, python-crossbar includes one .py
> file that intentionally has a syntax error. Until now, this wasn't
> causing any problem, but with the introduction of a Python
> byte-compilation process that errors out when there is a failure, it
> is going to become a problem.
>
> We simply add a patch that removes the syntax error, as we don't care
> about it in the context of Buildroot. The problem has been reported
> upstream to see if a better fix is possible.
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: Samuel Martin <s.martin49@gmail.com>

Regards,
Thomas Petazzoni May 17, 2016, 8:49 p.m. UTC | #2
Hello,

On Sun,  1 May 2016 22:15:15 +0200, Thomas Petazzoni wrote:
> For its continuous integration tests, python-crossbar includes one .py
> file that intentionally has a syntax error. Until now, this wasn't
> causing any problem, but with the introduction of a Python
> byte-compilation process that errors out when there is a failure, it
> is going to become a problem.
> 
> We simply add a patch that removes the syntax error, as we don't care
> about it in the context of Buildroot. The problem has been reported
> upstream to see if a better fix is possible.
> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
>  .../0001-Avoid-intentional-syntax-error.patch      | 29 ++++++++++++++++++++++
>  1 file changed, 29 insertions(+)
>  create mode 100644 package/python-crossbar/0001-Avoid-intentional-syntax-error.patch

Applied to next, thanks.

Thomas
diff mbox

Patch

diff --git a/package/python-crossbar/0001-Avoid-intentional-syntax-error.patch b/package/python-crossbar/0001-Avoid-intentional-syntax-error.patch
new file mode 100644
index 0000000..fb8e4a2
--- /dev/null
+++ b/package/python-crossbar/0001-Avoid-intentional-syntax-error.patch
@@ -0,0 +1,29 @@ 
+From 9ab2b96c2ee679c6dcb387174be211db5d70fa97 Mon Sep 17 00:00:00 2001
+From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+Date: Sun, 1 May 2016 15:35:32 +0200
+Subject: [PATCH] Avoid intentional syntax error
+
+This file has an intentional syntax error, meant to validate QA, but
+it breaks byte compilation of this package.
+
+Issue reported upstream:
+https://github.com/crossbario/crossbar/issues/750.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+---
+ crossbar/worker/test/examples/syntaxerror.py | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/crossbar/worker/test/examples/syntaxerror.py b/crossbar/worker/test/examples/syntaxerror.py
+index a5947cc..585c995 100644
+--- a/crossbar/worker/test/examples/syntaxerror.py
++++ b/crossbar/worker/test/examples/syntaxerror.py
+@@ -29,5 +29,3 @@
+ #####################################################################################
+ 
+ from __future__ import absolute_import, division
+-
+-class # noqa
+-- 
+2.7.4
+