Skip to contentSkip to conversation

python3-sqlalchemy: Upgrade 1.3.22 -> 1.3.23

PATCH In review Leon Anavi 2 participants 4 messages Feb 2, 2021 – Feb 5, 2021

lore
Share & tools
lore

Leon Anavi

author
#0 lore raw

PATCH 1/2 python3-sqlalchemy: Upgrade 1.3.22 -> 1.3.23

Upgrade to release 1.3.23:

- Fixed bug where making use of the TypeEngine.with_variant() method on a TypeDecorator type would fail to take into account the dialect-specific mappings in use, due to a rule in TypeDecorator that was instead attempting to check for chains of TypeDecorator instances.
- For SQLAlchemy 1.3 only, setup.py pins pg8000 to a version lower than 1.16.6. Version 1.16.6 and above is supported by SQLAlchemy 1.4.
- Fixed issue where using Table.to_metadata() (called Table.tometadata() in 1.3) in conjunction with a PostgreSQL ExcludeConstraint that made use of ad-hoc column expressions would fail to copy correctly.
- Casting to FLOAT is now supported in MySQL >= (8, 0, 17) and MariaDb >= (10, 4, 5).
- Fixed bug where MySQL server default reflection would fail for numeric values with a negation symbol present.
- Fixed long-lived bug in MySQL dialect where the maximum identifier length of 255 was too long for names of all types of constraints, not just indexes, all of which have a size limit of
64. As metadata naming conventions can create too-long names in this area, apply the limit to the identifier generator within the DDL compiler.
- Fixed deprecation warnings that arose as a result of the release of PyMySQL 1.0, including deprecation warnings for the “db” and “passwd” parameters now replaced with “database” and “password”.
- Fixed regression from SQLAlchemy 1.3.20 caused by a fix which adds double-parenthesis for MySQL functional expressions in indexes, as is required by the backend, this inadvertently extended to include arbitrary text() expressions as well as Alembic’s internal textual component, which are required by Alembic for arbitrary index expressions which don’t imply double parenthesis. The check has been narrowed to include only binary/ unary/functional expressions directly.
- Fixed regression in Oracle dialect introduced by #4894 in SQLAlchemy 1.3.11 where use of a SQL expression in RETURNING for an UPDATE would fail to compile, due to a check for “server_default” when an arbitrary SQL expression is not a column.
- Fixed bug in Oracle dialect where retriving a CLOB/BLOB column via Insert.returning() would fail as the LOB value would need to be read when returned; additionally, repaired support for retrieval of Unicode values via RETURNING under Python 2.
- Fixed issue where the stringification that is sometimes called when attempting to generate the “key” for the .c collection on a selectable would fail if the column were an unlabeled custom SQL construct using the sqlalchemy.ext.compiler extension, and did not provide a default compilation form; while this seems like an unusual case, it can get invoked for some ORM scenarios such as when the expression is used in an “order by” in combination with joined eager loading. The issue is that the lack of a default compiler function was raising CompileError and not UnsupportedCompilationError.

License-Update: Update year

---
 ...hon3-sqlalchemy_1.3.22.bb => python3-sqlalchemy_1.3.23.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-sqlalchemy_1.3.22.bb => python3-sqlalchemy_1.3.23.bb} (73%)
meta-python/recipes-devtools/python/python3-sqlalchemy_1.3.23.bb renamed from meta-python/recipes-devtools/python/python3-sqlalchemy_1.3.22.bb +2 -2
similarity index 73%
rename from meta-python/recipes-devtools/python/python3-sqlalchemy_1.3.22.bb
rename to meta-python/recipes-devtools/python/python3-sqlalchemy_1.3.23.bb
index cf127241d..d962ea7d9 100644
@@ -2,9 +2,9 @@ DESCRIPTION = "Python SQL toolkit and Object Relational Mapper that gives \
 application developers the full power and flexibility of SQL"
 HOMEPAGE = "http://www.sqlalchemy.org/"
 LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=c19467890539ff718c00a019c9c7a7b2"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=3359ed561ac16aaa25b6c6eff84df595"
 
-SRC_URI[sha256sum] = "758fc8c4d6c0336e617f9f6919f9daea3ab6bb9b07005eda9a1a682e24a6cacc"
+SRC_URI[sha256sum] = "6fca33672578666f657c131552c4ef8979c1606e494f78cd5199742dfb26918b"
 
 PYPI_PACKAGE = "SQLAlchemy"
 inherit pypi setuptools3
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH 2/2 python3-flask-migrate: Upgrade 2.5.3 -> 2.6.0

Upgrade to release 2.6.0:

- Removed deprecated --head-only option
- Initialize logger with a name
- Move import to the top in env.py file to avoid linter warnings
- Add a note to the documentation regarding logging
- Move builds to GitHub actions

---
 ...3-flask-migrate_2.5.3.bb => python3-flask-migrate_2.6.0.bb} | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-flask-migrate_2.5.3.bb => python3-flask-migrate_2.6.0.bb} (71%)
meta-python/recipes-devtools/python/python3-flask-migrate_2.6.0.bb renamed from meta-python/recipes-devtools/python/python3-flask-migrate_2.5.3.bb +1 -2
similarity index 71%
rename from meta-python/recipes-devtools/python/python3-flask-migrate_2.5.3.bb
rename to meta-python/recipes-devtools/python/python3-flask-migrate_2.6.0.bb
index 54fa1dd97..810f0eb27 100644
@@ -2,8 +2,7 @@ DESCRIPTION = "SQLAlchemy database migrations for Flask applications using Alemb
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=3b69377f79f3f48c661701236d5a6a85"
 
-SRC_URI[md5sum] = "707d4a5fd4e11d3113a1228aa7793176"
-SRC_URI[sha256sum] = "a69d508c2e09d289f6e55a417b3b8c7bfe70e640f53d2d9deb0d056a384f37ee"
+SRC_URI[sha256sum] = "8626af845e6071ef80c70b0dc16d373f761c981f0ad61bb143a529cab649e725"
 
 PYPI_PACKAGE = "Flask-Migrate"
 
Signature · 1 line
2.17.1
Acked-by on v1 2/2
#2 lore raw

Re: [oe] [meta-python][PATCH 2/2] python3-flask-migrate: Upgrade 2.5.3 -> 2.6.0

Quoted 11 lines · Leon Anavi

[Please note: This e-mail is from an EXTERNAL e-mail address]

Upgrade to release 2.6.0:

- Removed deprecated --head-only option
- Initialize logger with a name
- Move import to the top in env.py file to avoid linter warnings
- Add a note to the documentation regarding logging
- Move builds to GitHub actions

Quoted 28 lines
---
  ...3-flask-migrate_2.5.3.bb => python3-flask-migrate_2.6.0.bb} | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)

rename meta-python/recipes-devtools/python/{python3-flask-migrate_2.5.3.bb => python3-flask-migrate_2.6.0.bb} (71%)

meta-python/recipes-devtools/python/python3-flask-migrate_2.6.0.bb renamed from meta-python/recipes-devtools/python/python3-flask-migrate_2.5.3.bb +1 -3
similarity index 71%
rename from meta-python/recipes-devtools/python/python3-flask-migrate_2.5.3.bb
rename to meta-python/recipes-devtools/python/python3-flask-migrate_2.6.0.bb
index 54fa1dd97..810f0eb27 100644
@@ -2,8 +2,7 @@ DESCRIPTION = "SQLAlchemy database migrations for Flask applications using Alemb
  LICENSE = "MIT"
  LIC_FILES_CHKSUM = "file://LICENSE;md5=3b69377f79f3f48c661701236d5a6a85"
 
-SRC_URI[md5sum] = "707d4a5fd4e11d3113a1228aa7793176"
-SRC_URI[sha256sum] = "a69d508c2e09d289f6e55a417b3b8c7bfe70e640f53d2d9deb0d056a384f37ee"
+SRC_URI[sha256sum] = "8626af845e6071ef80c70b0dc16d373f761c981f0ad61bb143a529cab649e725"
 
  PYPI_PACKAGE = "Flask-Migrate"
 
--

2.17.1

Acked-by on v1 1/2
#3 lore raw
In reply to Leon Anavi
Quoted 57 lines · Leon Anavi

[Please note: This e-mail is from an EXTERNAL e-mail address]

Upgrade to release 1.3.23:

- Fixed bug where making use of the TypeEngine.with_variant() method on a TypeDecorator type would fail to take into account the dialect-specific mappings in use, due to a rule in TypeDecorator that was instead attempting to check for chains of TypeDecorator instances.
- For SQLAlchemy 1.3 only, setup.py pins pg8000 to a version lower than 1.16.6. Version 1.16.6 and above is supported by SQLAlchemy 1.4.
- Fixed issue where using Table.to_metadata() (called Table.tometadata() in 1.3) in conjunction with a PostgreSQL ExcludeConstraint that made use of ad-hoc column expressions would fail to copy correctly.
- Casting to FLOAT is now supported in MySQL >= (8, 0, 17) and MariaDb >= (10, 4, 5).
- Fixed bug where MySQL server default reflection would fail for numeric values with a negation symbol present.
- Fixed long-lived bug in MySQL dialect where the maximum identifier length of 255 was too long for names of all types of constraints, not just indexes, all of which have a size limit of
64. As metadata naming conventions can create too-long names in this area, apply the limit to the identifier generator within the DDL compiler.
- Fixed deprecation warnings that arose as a result of the release of PyMySQL 1.0, including deprecation warnings for the “db” and “passwd” parameters now replaced with “database” and “password”.
- Fixed regression from SQLAlchemy 1.3.20 caused by a fix which adds double-parenthesis for MySQL functional expressions in indexes, as is required by the backend, this inadvertently extended to include arbitrary text() expressions as well as Alembic’s internal textual component, which are required by Alembic for arbitrary index expressions which don’t imply double parenthesis. The check has been narrowed to include only binary/ unary/functional expressions directly.
- Fixed regression in Oracle dialect introduced by #4894 in SQLAlchemy 1.3.11 where use of a SQL expression in RETURNING for an UPDATE would fail to compile, due to a check for “server_default” when an arbitrary SQL expression is not a column.
- Fixed bug in Oracle dialect where retriving a CLOB/BLOB column via Insert.returning() would fail as the LOB value would need to be read when returned; additionally, repaired support for retrieval of Unicode values via RETURNING under Python 2.
- Fixed issue where the stringification that is sometimes called when attempting to generate the “key” for the .c collection on a selectable would fail if the column were an unlabeled custom SQL construct using the sqlalchemy.ext.compiler extension, and did not provide a default compilation form; while this seems like an unusual case, it can get invoked for some ORM scenarios such as when the expression is used in an “order by” in combination with joined eager loading. The issue is that the lack of a default compiler function was raising CompileError and not UnsupportedCompilationError.

Quoted 3 lines

License-Update: Update year

Quoted 30 lines
---
  ...hon3-sqlalchemy_1.3.22.bb => python3-sqlalchemy_1.3.23.bb} | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

rename meta-python/recipes-devtools/python/{python3-sqlalchemy_1.3.22.bb => python3-sqlalchemy_1.3.23.bb} (73%)

meta-python/recipes-devtools/python/python3-sqlalchemy_1.3.23.bb renamed from meta-python/recipes-devtools/python/python3-sqlalchemy_1.3.22.bb +2 -3
similarity index 73%
rename from meta-python/recipes-devtools/python/python3-sqlalchemy_1.3.22.bb
rename to meta-python/recipes-devtools/python/python3-sqlalchemy_1.3.23.bb
index cf127241d..d962ea7d9 100644
@@ -2,9 +2,9 @@ DESCRIPTION = "Python SQL toolkit and Object Relational Mapper that gives \
  application developers the full power and flexibility of SQL"
  HOMEPAGE = "http://www.sqlalchemy.org/"
  LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=c19467890539ff718c00a019c9c7a7b2"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=3359ed561ac16aaa25b6c6eff84df595"
 
-SRC_URI[sha256sum] = "758fc8c4d6c0336e617f9f6919f9daea3ab6bb9b07005eda9a1a682e24a6cacc"
+SRC_URI[sha256sum] = "6fca33672578666f657c131552c4ef8979c1606e494f78cd5199742dfb26918b"
 
  PYPI_PACKAGE = "SQLAlchemy"
  inherit pypi setuptools3
--

2.17.1