diff options
-rw-r--r-- | meta-python/recipes-devtools/python/python-sqlparse.inc | 2 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-sqlparse/0001-sqlparse-change-shebang-to-python3.patch | 51 |
2 files changed, 53 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python-sqlparse.inc b/meta-python/recipes-devtools/python/python-sqlparse.inc index f71f8152aa..14e683d002 100644 --- a/meta-python/recipes-devtools/python/python-sqlparse.inc +++ b/meta-python/recipes-devtools/python/python-sqlparse.inc | |||
@@ -4,6 +4,8 @@ SECTION = "devel/python" | |||
4 | LICENSE = "BSD" | 4 | LICENSE = "BSD" |
5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=2b136f573f5386001ea3b7b9016222fc" | 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=2b136f573f5386001ea3b7b9016222fc" |
6 | 6 | ||
7 | SRC_URI += "file://0001-sqlparse-change-shebang-to-python3.patch" | ||
8 | |||
7 | SRC_URI[md5sum] = "2ce34181d6b7b234c9f3c0ecd1ffb93e" | 9 | SRC_URI[md5sum] = "2ce34181d6b7b234c9f3c0ecd1ffb93e" |
8 | SRC_URI[sha256sum] = "7c3dca29c022744e95b547e867cee89f4fce4373f3549ccd8797d8eb52cdb873" | 10 | SRC_URI[sha256sum] = "7c3dca29c022744e95b547e867cee89f4fce4373f3549ccd8797d8eb52cdb873" |
9 | 11 | ||
diff --git a/meta-python/recipes-devtools/python/python3-sqlparse/0001-sqlparse-change-shebang-to-python3.patch b/meta-python/recipes-devtools/python/python3-sqlparse/0001-sqlparse-change-shebang-to-python3.patch new file mode 100644 index 0000000000..ad6c50ff77 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-sqlparse/0001-sqlparse-change-shebang-to-python3.patch | |||
@@ -0,0 +1,51 @@ | |||
1 | From 10c9d3341d64d697f678a64ae707f6bda21565bb Mon Sep 17 00:00:00 2001 | ||
2 | From: Changqing Li <changqing.li@windriver.com> | ||
3 | Date: Mon, 9 Mar 2020 13:10:37 +0800 | ||
4 | Subject: [PATCH] sqlparse: change shebang to python3 | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Don't send upstream since upstream still support python2, | ||
9 | we can only make this change after python2 is offcially | ||
10 | dropped. | ||
11 | |||
12 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
13 | --- | ||
14 | setup.py | 2 +- | ||
15 | sqlparse/__main__.py | 2 +- | ||
16 | sqlparse/cli.py | 2 +- | ||
17 | 3 files changed, 3 insertions(+), 3 deletions(-) | ||
18 | |||
19 | diff --git a/setup.py b/setup.py | ||
20 | index 345d0ce..ce3abc3 100644 | ||
21 | --- a/setup.py | ||
22 | +++ b/setup.py | ||
23 | @@ -1,4 +1,4 @@ | ||
24 | -#!/usr/bin/env python | ||
25 | +#!/usr/bin/env python3 | ||
26 | # -*- coding: utf-8 -*- | ||
27 | # | ||
28 | # Copyright (C) 2009-2018 the sqlparse authors and contributors | ||
29 | diff --git a/sqlparse/__main__.py b/sqlparse/__main__.py | ||
30 | index 867d75d..dd0c074 100644 | ||
31 | --- a/sqlparse/__main__.py | ||
32 | +++ b/sqlparse/__main__.py | ||
33 | @@ -1,4 +1,4 @@ | ||
34 | -#!/usr/bin/env python | ||
35 | +#!/usr/bin/env python3 | ||
36 | # -*- coding: utf-8 -*- | ||
37 | # | ||
38 | # Copyright (C) 2009-2018 the sqlparse authors and contributors | ||
39 | diff --git a/sqlparse/cli.py b/sqlparse/cli.py | ||
40 | index 25555a5..8bf050a 100755 | ||
41 | --- a/sqlparse/cli.py | ||
42 | +++ b/sqlparse/cli.py | ||
43 | @@ -1,4 +1,4 @@ | ||
44 | -#!/usr/bin/env python | ||
45 | +#!/usr/bin/env python3 | ||
46 | # -*- coding: utf-8 -*- | ||
47 | # | ||
48 | # Copyright (C) 2009-2018 the sqlparse authors and contributors | ||
49 | -- | ||
50 | 2.7.4 | ||
51 | |||