Skip to contentSkip to conversation

python3-sqlparse: Upgrade 0.3.1 -> 0.4.1

PATCH In review Leon Anavi 2 participants 6 messages Oct 13, 2020 – Oct 16, 2020

lore
Share & tools
lore

Leon Anavi

author
#0 lore raw

PATCH 1/3 python3-sqlparse: Upgrade 0.3.1 -> 0.4.1

Upgrade to release 0.4.1:

- Just removed a debug print statement
- Remove support for end-of-life Python 2.7 and 3.4. Python 3.5+ is now required.
- Remaining strings that only consist of whitespaces are not treated as statements anymore. Code that ignored the last element from sqlparse.split() should be updated accordingly since that function now doesn't return an empty string as the last element in some cases.

---
 ...1-sqlparse-change-shebang-to-python3.patch | 90 +++++++++++++++----
 ...rse_0.3.1.bb => python3-sqlparse_0.4.1.bb} |  4 +-
 2 files changed, 77 insertions(+), 17 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-sqlparse_0.3.1.bb => python3-sqlparse_0.4.1.bb} (81%)
meta-python/recipes-devtools/python/python3-sqlparse/0001-sqlparse-change-shebang-to-python3.patch +75 -15
index ad6c50ff77..94121340d5 100644
@@ -1,4 +1,4 @@
-From 10c9d3341d64d697f678a64ae707f6bda21565bb Mon Sep 17 00:00:00 2001
+From 7fd00ab8c1b663052d57e735b6b956d5c92fbaed Mon Sep 17 00:00:00 2001
 From: Changqing Li <[email protected]>
 Date: Mon, 9 Mar 2020 13:10:37 +0800
 Subject: [PATCH] sqlparse: change shebang to python3
@@ -10,42 +10,102 @@ we can only make this change after python2 is offcially
 dropped.
 
 Signed-off-by: Changqing Li <[email protected]>
+Signed-off-by: Leon Anavi <[email protected]>
 ---
- setup.py             | 2 +-
- sqlparse/__main__.py | 2 +-
- sqlparse/cli.py      | 2 +-
- 3 files changed, 3 insertions(+), 3 deletions(-)
+ 0001-sqlparse-change-shebang-to-python3.patch | 51 +++++++++++++++++++
+ setup.py                                      |  2 +-
+ sqlparse/__main__.py                          |  2 +-
+ sqlparse/cli.py                               |  2 +-
+ 4 files changed, 54 insertions(+), 3 deletions(-)
+ create mode 100644 0001-sqlparse-change-shebang-to-python3.patch
 
+diff --git a/0001-sqlparse-change-shebang-to-python3.patch b/0001-sqlparse-change-shebang-to-python3.patch
+new file mode 100644
+index 0000000..ad6c50f
+--- /dev/null
++++ b/0001-sqlparse-change-shebang-to-python3.patch
+@@ -0,0 +1,51 @@
++From 10c9d3341d64d697f678a64ae707f6bda21565bb Mon Sep 17 00:00:00 2001
++From: Changqing Li <[email protected]>
++Date: Mon, 9 Mar 2020 13:10:37 +0800
++Subject: [PATCH] sqlparse: change shebang to python3
++
++Upstream-Status: Pending
++
++Don't send upstream since upstream still support python2,
++we can only make this change after python2 is offcially
++dropped.
++
++Signed-off-by: Changqing Li <[email protected]>
++---
++ setup.py             | 2 +-
++ sqlparse/__main__.py | 2 +-
++ sqlparse/cli.py      | 2 +-
++ 3 files changed, 3 insertions(+), 3 deletions(-)
++
++diff --git a/setup.py b/setup.py
++index 345d0ce..ce3abc3 100644
++--- a/setup.py
+++++ b/setup.py
++@@ -1,4 +1,4 @@
++-#!/usr/bin/env python
+++#!/usr/bin/env python3
++ # -*- coding: utf-8 -*-
++ #
++ # Copyright (C) 2009-2018 the sqlparse authors and contributors
++diff --git a/sqlparse/__main__.py b/sqlparse/__main__.py
++index 867d75d..dd0c074 100644
++--- a/sqlparse/__main__.py
+++++ b/sqlparse/__main__.py
++@@ -1,4 +1,4 @@
++-#!/usr/bin/env python
+++#!/usr/bin/env python3
++ # -*- coding: utf-8 -*-
++ #
++ # Copyright (C) 2009-2018 the sqlparse authors and contributors
++diff --git a/sqlparse/cli.py b/sqlparse/cli.py
++index 25555a5..8bf050a 100755
++--- a/sqlparse/cli.py
+++++ b/sqlparse/cli.py
++@@ -1,4 +1,4 @@
++-#!/usr/bin/env python
+++#!/usr/bin/env python3
++ # -*- coding: utf-8 -*-
++ #
++ # Copyright (C) 2009-2018 the sqlparse authors and contributors
++-- 
++2.7.4
++
 diff --git a/setup.py b/setup.py
-index 345d0ce..ce3abc3 100644
+index ede0aff..dc6a323 100644
 --- a/setup.py
 +++ b/setup.py
 @@ -1,4 +1,4 @@
 -#!/usr/bin/env python
 +#!/usr/bin/env python3
- # -*- coding: utf-8 -*-
  #
- # Copyright (C) 2009-2018 the sqlparse authors and contributors
+ # Copyright (C) 2009-2020 the sqlparse authors and contributors
+ # <see AUTHORS file>
 diff --git a/sqlparse/__main__.py b/sqlparse/__main__.py
-index 867d75d..dd0c074 100644
+index 2bf2513..6a3a115 100644
 --- a/sqlparse/__main__.py
 +++ b/sqlparse/__main__.py
 @@ -1,4 +1,4 @@
 -#!/usr/bin/env python
 +#!/usr/bin/env python3
- # -*- coding: utf-8 -*-
  #
- # Copyright (C) 2009-2018 the sqlparse authors and contributors
+ # Copyright (C) 2009-2020 the sqlparse authors and contributors
+ # <see AUTHORS file>
 diff --git a/sqlparse/cli.py b/sqlparse/cli.py
-index 25555a5..8bf050a 100755
+index 7a8aacb..9c727e8 100755
 --- a/sqlparse/cli.py
 +++ b/sqlparse/cli.py
 @@ -1,4 +1,4 @@
 -#!/usr/bin/env python
 +#!/usr/bin/env python3
- # -*- coding: utf-8 -*-
  #
- # Copyright (C) 2009-2018 the sqlparse authors and contributors
+ # Copyright (C) 2009-2020 the sqlparse authors and contributors
+ # <see AUTHORS file>
 -- 
-2.7.4
+2.17.1
 
meta-python/recipes-devtools/python/python3-sqlparse_0.4.1.bb renamed from meta-python/recipes-devtools/python/python3-sqlparse_0.3.1.bb +2 -2
similarity index 81%
rename from meta-python/recipes-devtools/python/python3-sqlparse_0.3.1.bb
rename to meta-python/recipes-devtools/python/python3-sqlparse_0.4.1.bb
index 1aef28be03..c8a64c1095 100644
@@ -8,8 +8,8 @@ SRC_URI += "file://0001-sqlparse-change-shebang-to-python3.patch \
             file://run-ptest \
 	    "
 
-SRC_URI[md5sum] = "423047887a3590b04dd18f8caf843a2f"
-SRC_URI[sha256sum] = "e162203737712307dfe78860cc56c8da8a852ab2ee33750e33aeadf38d12c548"
+SRC_URI[md5sum] = "eebbc6b5f1033054873033e54b0c1266"
+SRC_URI[sha256sum] = "0f91fd2e829c44362cbcfab3e9ae12e22badaa8a29ad5ff599f9ec109f0454e8"
 
 export BUILD_SYS
 export HOST_SYS
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH 2/3 python3-sqlalchemy: Upgrade 1.3.19 -> 1.3.20

Upgrade to release 1.3.20:

orm:
- An ArgumentError with more detail is now raised if the target parameter for Query.join() is set to an unmapped object. Prior to this change a less detailed AttributeError was raised.
- Fixed issue where using a loader option against a string attribute name that is not actually a mapped attribute, such as a plain Python descriptor, would raise an uninformative AttributeError; a descriptive error is now raised.

engine:
- Fixed issue where a non-string object sent to SQLAlchemyError or a subclass, as occurs with some third party dialects, would fail to stringify correctly.
- Repaired a function-level import that was not using SQLAlchemy’s standard late-import system within the sqlalchemy.exc module.

sql:
- Fixed issue where the pickle.dumps() operation against Over construct would produce a recursion overflow.
- Fixed bug where an error was not raised in the case where a column() were added to more than one table() at a time. This raised correctly for the Column and Table objects. An ArgumentError is now raised when this occurs.

postgresql:
- The psycopg2 dialect now support PostgreSQL multiple host connections, by passing host/port combinations to the query string.
- Adjusted the Comparator.any() and Comparator.all() methods to implement a straight “NOT” operation for negation, rather than negating the comparison operator.
- Fixed issue where the ENUM type would not consult the schema translate map when emitting a CREATE TYPE or DROP TYPE during the test to see if the type exists or not. Additionally, repaired an issue where if the same enum were encountered multiple times in a single DDL sequence, the “check” query would run repeatedly rather than relying upon a cached value.

mysql:
- Adjusted the MySQL dialect to correctly parenthesize functional index expressions as accepted by MySQL 8.
- The “skip_locked” keyword used with with_for_update() will emit a warning when used on MariaDB backends, and will then be ignored. This is a deprecated behavior that will raise in SQLAlchemy 1.4, as an application that requests “skip locked” is looking for a non-blocking operation which is not available on those backends.
- Fixed bug where an UPDATE statement against a JOIN using MySQL multi-table format would fail to include the table prefix for the target table if the statement had no WHERE clause, as only the WHERE clause were scanned to detect a “multi table update” at that particular point. The target is now also scanned if it’s a JOIN to get the leftmost table as the primary table and the additional entries as additional FROM entries.
- Add new MySQL reserved words: cube, lateral added in MySQL 8.0.1 and 8.0.14, respectively; this indicates that these terms will be quoted if used as table or column identifier names.

mssql:
- Fixed issue where a SQLAlchemy connection URI for Azure DW with authentication=ActiveDirectoryIntegrated (and no username+password) was not constructing the ODBC connection string in a way that was acceptable to the Azure DW instance.

misc:
- Fixed issue where the following pool parameters were not being propagated to the new pool created when Engine.dispose() were
called: pre_ping, use_lifo. Additionally the recycle and reset_on_return parameter is now propagated for the AssertionPool class.
- An informative error is now raised when attempting to use an association proxy element as a plain column expression to be SELECTed from or used in a SQL function; this use case is not currently supported.
- Fixed incompatibilities in the test suite when running against Pytest 6.x.

---
 ...hon3-sqlalchemy_1.3.19.bb => python3-sqlalchemy_1.3.20.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-sqlalchemy_1.3.19.bb => python3-sqlalchemy_1.3.20.bb} (78%)
meta-python/recipes-devtools/python/python3-sqlalchemy_1.3.20.bb renamed from meta-python/recipes-devtools/python/python3-sqlalchemy_1.3.19.bb +2 -2
similarity index 78%
rename from meta-python/recipes-devtools/python/python3-sqlalchemy_1.3.19.bb
rename to meta-python/recipes-devtools/python/python3-sqlalchemy_1.3.20.bb
index 52e7bf376b..e8f598ada3 100644
@@ -4,8 +4,8 @@ HOMEPAGE = "http://www.sqlalchemy.org/"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=c19467890539ff718c00a019c9c7a7b2"
 
-SRC_URI[md5sum] = "a5710b0aee19a743e513f3bf002072a8"
-SRC_URI[sha256sum] = "3bba2e9fbedb0511769780fe1d63007081008c5c2d7d715e91858c94dbaa260e"
+SRC_URI[md5sum] = "40200b570274446a05959abd3fa81778"
+SRC_URI[sha256sum] = "d2f25c7f410338d31666d7ddedfa67570900e248b940d186b48461bd4e5569a1"
 
 PYPI_PACKAGE = "SQLAlchemy"
 inherit pypi setuptools3
Signature · 1 line
2.17.1
Acked-by on v1 2/3
#2 lore raw

Re: [oe] [meta-python][PATCH 2/3] python3-sqlalchemy: Upgrade 1.3.19 -> 1.3.20

Quoted 78 lines · Leon Anavi

Upgrade to release 1.3.20:

orm:
- An ArgumentError with more detail is now raised if the target parameter for Query.join() is set to an unmapped object. Prior to this change a less detailed AttributeError was raised.
- Fixed issue where using a loader option against a string attribute name that is not actually a mapped attribute, such as a plain Python descriptor, would raise an uninformative AttributeError; a descriptive error is now raised.

engine:
- Fixed issue where a non-string object sent to SQLAlchemyError or a subclass, as occurs with some third party dialects, would fail to stringify correctly.
- Repaired a function-level import that was not using SQLAlchemy’s standard late-import system within the sqlalchemy.exc module.

sql:
- Fixed issue where the pickle.dumps() operation against Over construct would produce a recursion overflow.
- Fixed bug where an error was not raised in the case where a column() were added to more than one table() at a time. This raised correctly for the Column and Table objects. An ArgumentError is now raised when this occurs.

postgresql:
- The psycopg2 dialect now support PostgreSQL multiple host connections, by passing host/port combinations to the query string.
- Adjusted the Comparator.any() and Comparator.all() methods to implement a straight “NOT” operation for negation, rather than negating the comparison operator.
- Fixed issue where the ENUM type would not consult the schema translate map when emitting a CREATE TYPE or DROP TYPE during the test to see if the type exists or not. Additionally, repaired an issue where if the same enum were encountered multiple times in a single DDL sequence, the “check” query would run repeatedly rather than relying upon a cached value.

mysql:
- Adjusted the MySQL dialect to correctly parenthesize functional index expressions as accepted by MySQL 8.
- The “skip_locked” keyword used with with_for_update() will emit a warning when used on MariaDB backends, and will then be ignored. This is a deprecated behavior that will raise in SQLAlchemy 1.4, as an application that requests “skip locked” is looking for a non-blocking operation which is not available on those backends.
- Fixed bug where an UPDATE statement against a JOIN using MySQL multi-table format would fail to include the table prefix for the target table if the statement had no WHERE clause, as only the WHERE clause were scanned to detect a “multi table update” at that particular point. The target is now also scanned if it’s a JOIN to get the leftmost table as the primary table and the additional entries as additional FROM entries.
- Add new MySQL reserved words: cube, lateral added in MySQL 8.0.1 and 8.0.14, respectively; this indicates that these terms will be quoted if used as table or column identifier names.

mssql:
- Fixed issue where a SQLAlchemy connection URI for Azure DW with authentication=ActiveDirectoryIntegrated (and no username+password) was not constructing the ODBC connection string in a way that was acceptable to the Azure DW instance.

misc:
- Fixed issue where the following pool parameters were not being propagated to the new pool created when Engine.dispose() were
called: pre_ping, use_lifo. Additionally the recycle and reset_on_return parameter is now propagated for the AssertionPool class.
- An informative error is now raised when attempting to use an association proxy element as a plain column expression to be SELECTed from or used in a SQL function; this use case is not currently supported.
- Fixed incompatibilities in the test suite when running against Pytest 6.x.

Quoted 1 line
Quoted 26 lines
---
  ...hon3-sqlalchemy_1.3.19.bb => python3-sqlalchemy_1.3.20.bb} | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

rename meta-python/recipes-devtools/python/{python3-sqlalchemy_1.3.19.bb => python3-sqlalchemy_1.3.20.bb} (78%)

meta-python/recipes-devtools/python/python3-sqlalchemy_1.3.20.bb renamed from meta-python/recipes-devtools/python/python3-sqlalchemy_1.3.19.bb +2 -2
similarity index 78%
rename from meta-python/recipes-devtools/python/python3-sqlalchemy_1.3.19.bb
rename to meta-python/recipes-devtools/python/python3-sqlalchemy_1.3.20.bb
index 52e7bf376b..e8f598ada3 100644
@@ -4,8 +4,8 @@ HOMEPAGE = "http://www.sqlalchemy.org/"
  LICENSE = "MIT"
  LIC_FILES_CHKSUM = "file://LICENSE;md5=c19467890539ff718c00a019c9c7a7b2"
 
-SRC_URI[md5sum] = "a5710b0aee19a743e513f3bf002072a8"
-SRC_URI[sha256sum] = "3bba2e9fbedb0511769780fe1d63007081008c5c2d7d715e91858c94dbaa260e"
+SRC_URI[md5sum] = "40200b570274446a05959abd3fa81778"
+SRC_URI[sha256sum] = "d2f25c7f410338d31666d7ddedfa67570900e248b940d186b48461bd4e5569a1"
 
  PYPI_PACKAGE = "SQLAlchemy"
  inherit pypi setuptools3
author
#3 lore raw

PATCH 3/3 python3-sentry-sdk: Upgrade 0.18.0 -> 0.19.0

In reply to Leon Anavi

Upgrade to release 0.19.0:

- Removed _experiments.auto_enabling_integrations in favor of just auto_enabling_integrations which is now enabled by default.

---
 ...hon3-sentry-sdk_0.18.0.bb => python3-sentry-sdk_0.19.0.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-sentry-sdk_0.18.0.bb => python3-sentry-sdk_0.19.0.bb} (72%)
meta-python/recipes-devtools/python/python3-sentry-sdk_0.19.0.bb renamed from meta-python/recipes-devtools/python/python3-sentry-sdk_0.18.0.bb +2 -2
similarity index 72%
rename from meta-python/recipes-devtools/python/python3-sentry-sdk_0.18.0.bb
rename to meta-python/recipes-devtools/python/python3-sentry-sdk_0.19.0.bb
index e4ab9f33d6..b03e76b7c1 100644
@@ -5,8 +5,8 @@ HOMEPAGE = "https://github.com/getsentry/sentry-python"
 LICENSE = "BSD-2-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=0c79f8d3c91fc847350efd28bfe0a341"
 
-SRC_URI[md5sum] = "d6a85d958aea9277c1728c77dcf063a1"
-SRC_URI[sha256sum] = "1d91a0059d2d8bb980bec169578035c2f2d4b93cd8a4fb5b85c81904d33e221a"
+SRC_URI[md5sum] = "5c988086e4c124380887b0d579081f33"
+SRC_URI[sha256sum] = "a3716e98a1285a74eeaea7418a5b8fb2d7568fa11b5fba389946f465876a4d44"
 
 PYPI_PACKAGE = "sentry-sdk"
 inherit pypi setuptools3
Signature · 1 line
2.17.1
Acked-by on v1 3/3
#4 lore raw

Re: [oe] [meta-python][PATCH 3/3] python3-sentry-sdk: Upgrade 0.18.0 -> 0.19.0

Quoted 4 lines · Leon Anavi

- Removed _experiments.auto_enabling_integrations in favor of just auto_enabling_integrations which is now enabled by default.

Quoted 26 lines
---
  ...hon3-sentry-sdk_0.18.0.bb => python3-sentry-sdk_0.19.0.bb} | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

rename meta-python/recipes-devtools/python/{python3-sentry-sdk_0.18.0.bb => python3-sentry-sdk_0.19.0.bb} (72%)

meta-python/recipes-devtools/python/python3-sentry-sdk_0.19.0.bb renamed from meta-python/recipes-devtools/python/python3-sentry-sdk_0.18.0.bb +2 -2
similarity index 72%
rename from meta-python/recipes-devtools/python/python3-sentry-sdk_0.18.0.bb
rename to meta-python/recipes-devtools/python/python3-sentry-sdk_0.19.0.bb
index e4ab9f33d6..b03e76b7c1 100644
@@ -5,8 +5,8 @@ HOMEPAGE = "https://github.com/getsentry/sentry-python"
  LICENSE = "BSD-2-Clause"
  LIC_FILES_CHKSUM = "file://LICENSE;md5=0c79f8d3c91fc847350efd28bfe0a341"
 
-SRC_URI[md5sum] = "d6a85d958aea9277c1728c77dcf063a1"
-SRC_URI[sha256sum] = "1d91a0059d2d8bb980bec169578035c2f2d4b93cd8a4fb5b85c81904d33e221a"
+SRC_URI[md5sum] = "5c988086e4c124380887b0d579081f33"
+SRC_URI[sha256sum] = "a3716e98a1285a74eeaea7418a5b8fb2d7568fa11b5fba389946f465876a4d44"
 
  PYPI_PACKAGE = "sentry-sdk"
  inherit pypi setuptools3
Acked-by on v1 1/3
#5 lore raw
In reply to Leon Anavi
Quoted 10 lines · Leon Anavi

- Just removed a debug print statement
- Remove support for end-of-life Python 2.7 and 3.4. Python 3.5+ is now required.
- Remaining strings that only consist of whitespaces are not treated as statements anymore. Code that ignored the last element from sqlparse.split() should be updated accordingly since that function now doesn't return an empty string as the last element in some cases.

Quoted 154 lines
---
  ...1-sqlparse-change-shebang-to-python3.patch | 90 +++++++++++++++----
  ...rse_0.3.1.bb => python3-sqlparse_0.4.1.bb} |  4 +-
  2 files changed, 77 insertions(+), 17 deletions(-)

rename meta-python/recipes-devtools/python/{python3-sqlparse_0.3.1.bb => python3-sqlparse_0.4.1.bb} (81%)

meta-python/recipes-devtools/python/python3-sqlparse/0001-sqlparse-change-shebang-to-python3.patch +75 -15
index ad6c50ff77..94121340d5 100644
@@ -1,4 +1,4 @@
-From 10c9d3341d64d697f678a64ae707f6bda21565bb Mon Sep 17 00:00:00 2001
+From 7fd00ab8c1b663052d57e735b6b956d5c92fbaed Mon Sep 17 00:00:00 2001
  From: Changqing Li <[email protected]>
  Date: Mon, 9 Mar 2020 13:10:37 +0800
  Subject: [PATCH] sqlparse: change shebang to python3
@@ -10,42 +10,102 @@ we can only make this change after python2 is offcially
  dropped.
 
  Signed-off-by: Changqing Li <[email protected]>
+Signed-off-by: Leon Anavi <[email protected]>
  ---
- setup.py             | 2 +-
- sqlparse/__main__.py | 2 +-
- sqlparse/cli.py      | 2 +-
- 3 files changed, 3 insertions(+), 3 deletions(-)
+ 0001-sqlparse-change-shebang-to-python3.patch | 51 +++++++++++++++++++
+ setup.py                                      |  2 +-
+ sqlparse/__main__.py                          |  2 +-
+ sqlparse/cli.py                               |  2 +-
+ 4 files changed, 54 insertions(+), 3 deletions(-)
+ create mode 100644 0001-sqlparse-change-shebang-to-python3.patch
 
+diff --git a/0001-sqlparse-change-shebang-to-python3.patch b/0001-sqlparse-change-shebang-to-python3.patch
+new file mode 100644
+index 0000000..ad6c50f
+--- /dev/null
++++ b/0001-sqlparse-change-shebang-to-python3.patch
+@@ -0,0 +1,51 @@
++From 10c9d3341d64d697f678a64ae707f6bda21565bb Mon Sep 17 00:00:00 2001
++From: Changqing Li <[email protected]>
++Date: Mon, 9 Mar 2020 13:10:37 +0800
++Subject: [PATCH] sqlparse: change shebang to python3
++
++Upstream-Status: Pending
++
++Don't send upstream since upstream still support python2,
++we can only make this change after python2 is offcially
++dropped.
++
++Signed-off-by: Changqing Li <[email protected]>
++---
++ setup.py             | 2 +-
++ sqlparse/__main__.py | 2 +-
++ sqlparse/cli.py      | 2 +-
++ 3 files changed, 3 insertions(+), 3 deletions(-)
++
++diff --git a/setup.py b/setup.py
++index 345d0ce..ce3abc3 100644
++--- a/setup.py
+++++ b/setup.py
++@@ -1,4 +1,4 @@
++-#!/usr/bin/env python
+++#!/usr/bin/env python3
++ # -*- coding: utf-8 -*-
++ #
++ # Copyright (C) 2009-2018 the sqlparse authors and contributors
++diff --git a/sqlparse/__main__.py b/sqlparse/__main__.py
++index 867d75d..dd0c074 100644
++--- a/sqlparse/__main__.py
+++++ b/sqlparse/__main__.py
++@@ -1,4 +1,4 @@
++-#!/usr/bin/env python
+++#!/usr/bin/env python3
++ # -*- coding: utf-8 -*-
++ #
++ # Copyright (C) 2009-2018 the sqlparse authors and contributors
++diff --git a/sqlparse/cli.py b/sqlparse/cli.py
++index 25555a5..8bf050a 100755
++--- a/sqlparse/cli.py
+++++ b/sqlparse/cli.py
++@@ -1,4 +1,4 @@
++-#!/usr/bin/env python
+++#!/usr/bin/env python3
++ # -*- coding: utf-8 -*-
++ #
++ # Copyright (C) 2009-2018 the sqlparse authors and contributors
++--
++2.7.4
++
  diff --git a/setup.py b/setup.py
-index 345d0ce..ce3abc3 100644
+index ede0aff..dc6a323 100644
  --- a/setup.py
  +++ b/setup.py
  @@ -1,4 +1,4 @@
  -#!/usr/bin/env python
  +#!/usr/bin/env python3
- # -*- coding: utf-8 -*-
   #
- # Copyright (C) 2009-2018 the sqlparse authors and contributors
+ # Copyright (C) 2009-2020 the sqlparse authors and contributors
+ # <see AUTHORS file>
  diff --git a/sqlparse/__main__.py b/sqlparse/__main__.py
-index 867d75d..dd0c074 100644
+index 2bf2513..6a3a115 100644
  --- a/sqlparse/__main__.py
  +++ b/sqlparse/__main__.py
  @@ -1,4 +1,4 @@
  -#!/usr/bin/env python
  +#!/usr/bin/env python3
- # -*- coding: utf-8 -*-
   #
- # Copyright (C) 2009-2018 the sqlparse authors and contributors
+ # Copyright (C) 2009-2020 the sqlparse authors and contributors
+ # <see AUTHORS file>
  diff --git a/sqlparse/cli.py b/sqlparse/cli.py
-index 25555a5..8bf050a 100755
+index 7a8aacb..9c727e8 100755
  --- a/sqlparse/cli.py
  +++ b/sqlparse/cli.py
  @@ -1,4 +1,4 @@
  -#!/usr/bin/env python
  +#!/usr/bin/env python3
- # -*- coding: utf-8 -*-
   #
- # Copyright (C) 2009-2018 the sqlparse authors and contributors
+ # Copyright (C) 2009-2020 the sqlparse authors and contributors
+ # <see AUTHORS file>
  --
-2.7.4
+2.17.1
 
meta-python/recipes-devtools/python/python3-sqlparse_0.4.1.bb renamed from meta-python/recipes-devtools/python/python3-sqlparse_0.3.1.bb +2 -2
similarity index 81%
rename from meta-python/recipes-devtools/python/python3-sqlparse_0.3.1.bb
rename to meta-python/recipes-devtools/python/python3-sqlparse_0.4.1.bb
index 1aef28be03..c8a64c1095 100644
@@ -8,8 +8,8 @@ SRC_URI += "file://0001-sqlparse-change-shebang-to-python3.patch \
              file://run-ptest \
  	    "
 
-SRC_URI[md5sum] = "423047887a3590b04dd18f8caf843a2f"
-SRC_URI[sha256sum] = "e162203737712307dfe78860cc56c8da8a852ab2ee33750e33aeadf38d12c548"
+SRC_URI[md5sum] = "eebbc6b5f1033054873033e54b0c1266"
+SRC_URI[sha256sum] = "0f91fd2e829c44362cbcfab3e9ae12e22badaa8a29ad5ff599f9ec109f0454e8"
 
  export BUILD_SYS
  export HOST_SYS