Skip to contentSkip to conversation

python3-bitarray: Upgrade 1.7.1 -> 1.8.0

PATCH In review Leon Anavi 2 participants 11 messages Mar 23, 2021 – Mar 24, 2021

lore
Share & tools
lore

Leon Anavi

author
#0 lore raw

PATCH 1/10 python3-bitarray: Upgrade 1.7.1 -> 1.8.0

Upgrade to release 1.8.0:

- Add bitarray.util.serialize() and bitarray.util.deserialize()
- Allow whitespace (ignore space and \n\r\t\v) in input strings, e.g. bitarray('01 11') or a += '10 00'
- Add bitarray.util.pprint()
- When initializing a bitarray from another with different bit endianness, e.g. a = bitarray('110', 'little') and b = bitarray(a, 'big'), the buffer used to be simply copied, with consequence that a == b would result in False. This is fixed now, that is a == b will always evaluate to True.
- Add example showing how to jsonize bitarrays
- Add tests

---
 .../{python3-bitarray_1.7.1.bb => python3-bitarray_1.8.0.bb}    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-bitarray_1.7.1.bb => python3-bitarray_1.8.0.bb} (77%)
meta-python/recipes-devtools/python/python3-bitarray_1.8.0.bb renamed from meta-python/recipes-devtools/python/python3-bitarray_1.7.1.bb +1 -1
similarity index 77%
rename from meta-python/recipes-devtools/python/python3-bitarray_1.7.1.bb
rename to meta-python/recipes-devtools/python/python3-bitarray_1.8.0.bb
index f859283ab..f38791716 100644
@@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/ilanschnell/bitarray"
 LICENSE = "PSF"
 LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=2ad702cdcd49e8d2ac01d7e7d0810d2d"
 
-SRC_URI[sha256sum] = "e4de977d708b7024760266d827b8285e4405dce4293f25508c4556970139018a"
+SRC_URI[sha256sum] = "fe4444d92b17073bf1f9f24e3015a0e5bb70a645c47df93ef8a9ce8be33fcbad"
 
 inherit setuptools3 pypi
 
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH 2/10 python3-pyscaffold: Upgrade 4.0 -> 4.0.1

Upgrade to release 4.0.1:

- Fix tox -e build issue when running on Conda
- Ensure snake_case for keys in setup.cfg
- Update dependencies on configupdater and pyscaffoldext-django
- Remove broken checks for old setuptools

---
 .../{python3-pyscaffold_4.0.bb => python3-pyscaffold_4.0.1.bb}  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-pyscaffold_4.0.bb => python3-pyscaffold_4.0.1.bb} (85%)
meta-python/recipes-devtools/python/python3-pyscaffold_4.0.1.bb renamed from meta-python/recipes-devtools/python/python3-pyscaffold_4.0.bb +1 -1
similarity index 85%
rename from meta-python/recipes-devtools/python/python3-pyscaffold_4.0.bb
rename to meta-python/recipes-devtools/python/python3-pyscaffold_4.0.1.bb
index 1ad33c10d..b0f8f3e9f 100644
@@ -12,6 +12,6 @@ inherit pypi setuptools3
 
 PYPI_PACKAGE = "PyScaffold"
 
-SRC_URI[sha256sum] = "7012ae5f9c95b910a39a099824104dc888beb932de86b07514882f3511bc6c74"
+SRC_URI[sha256sum] = "8fd7b2bdbfc7f7758a66d66cbf796af338e40d69fd4f7b4ddb9996c38add1dbe"
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.17.1
author
#2 lore raw

PATCH 3/10 python3-flask-migrate: Upgrade 2.6.0 -> 2.7.0

In reply to Leon Anavi

Upgrade to release 2.7.0:

- Reuse engine from Flask-SQLAlchemy
- Update logging configuration to include Flask-Migrate's logger

---
 ...n3-flask-migrate_2.6.0.bb => python3-flask-migrate_2.7.0.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-flask-migrate_2.6.0.bb => python3-flask-migrate_2.7.0.bb} (79%)
meta-python/recipes-devtools/python/python3-flask-migrate_2.7.0.bb renamed from meta-python/recipes-devtools/python/python3-flask-migrate_2.6.0.bb +1 -1
similarity index 79%
rename from meta-python/recipes-devtools/python/python3-flask-migrate_2.6.0.bb
rename to meta-python/recipes-devtools/python/python3-flask-migrate_2.7.0.bb
index 810f0eb27..1bf0dfa80 100644
@@ -2,7 +2,7 @@ DESCRIPTION = "SQLAlchemy database migrations for Flask applications using Alemb
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=3b69377f79f3f48c661701236d5a6a85"
 
-SRC_URI[sha256sum] = "8626af845e6071ef80c70b0dc16d373f761c981f0ad61bb143a529cab649e725"
+SRC_URI[sha256sum] = "ae2f05671588762dd83a21d8b18c51fe355e86783e24594995ff8d7380dffe38"
 
 PYPI_PACKAGE = "Flask-Migrate"
 
Signature · 1 line
2.17.1
author
#3 lore raw

PATCH 4/10 python3-grpcio-tools: Upgrade 1.35.0 -> 1.36.1

In reply to Leon Anavi

Upgrade to release 1.36.1:

- back-port: add env var protection for google-c2p resolver
- Backport "Fix implicit declaration error in zlib + macOS
- xDS features doc update for case insensitive prefix/full path matching
- Add darwin_arm64 and darwin_arm64e to c-ares config settings
- Add FileWatcher CertificateProvider
- Protect xds security code with the environment variable "GRPC_XDS_EXPERIMENTAL_SECURITY_SUPPORT"
- Fix visibility of libprotobuf symbols in protoc_compiler.so on Mac
- [Aio] Correct type annotation of grpc.aio.ServicerContext.abort
- Add limit concurrent RPC feature to asyncio server
- [Aio] Fix the emtpy response handling in streaming RPC
- [Backport] Implement grpc.Future interface in SingleThreadedRendezvous
- [Backport] Make Python 2 an optional dependency for Bazel build

---
 ...n3-grpcio-tools_1.35.0.bb => python3-grpcio-tools_1.36.1.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-grpcio-tools_1.35.0.bb => python3-grpcio-tools_1.36.1.bb} (85%)
meta-python/recipes-devtools/python/python3-grpcio-tools_1.36.1.bb renamed from meta-python/recipes-devtools/python/python3-grpcio-tools_1.35.0.bb +1 -1
similarity index 85%
rename from meta-python/recipes-devtools/python/python3-grpcio-tools_1.35.0.bb
rename to meta-python/recipes-devtools/python/python3-grpcio-tools_1.36.1.bb
index 6758429ae..da571d3a2 100644
@@ -11,7 +11,7 @@ DEPENDS += "${PYTHON_PN}-grpcio"
 
 SRC_URI += "file://0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch"
 
-SRC_URI[sha256sum] = "9e2a41cba9c5a20ae299d0fdd377fe231434fa04cbfbfb3807293c6ec10b03cf"
+SRC_URI[sha256sum] = "80ef584f7b917f575e4b8f2ec59cd4a4d98c2046e801a735f3136b05742a36a6"
 
 RDEPENDS_${PN} = "${PYTHON_PN}-grpcio"
 
Signature · 1 line
2.17.1
author
#4 lore raw

PATCH 5/10 python3-scrypt: Upgrade 0.8.6 -> 0.8.17

In reply to Leon Anavi

Upgrade to release 0.8.17:

- Add_dll_directory for python 3.8 on windows, as importlib.util.find_spec does not search all paths anymore
- Add additional test vector from RFC
- Fix missing import
- Fix imp deprecation warning
- Improve build for conda forge
- Add SCRYPT_WINDOWS_LINK_LEGACY_OPENSSL environment variable, when set, openssl 1.0.2 is linked
- Fix build for conda feedstock
- Fix typo
- Use the static libcrypto_static for windows and openssl 1.1.1
- Setup.py for windows improved, works with openssl 1.0.2 and 1.1.1
- Setup.py for windows fixed

License-Update: Update years

---
 ...-remove-the-hard-coded-include-paths.patch | 36 ++++++-------------
 ...rypt_0.8.6.bb => python3-scrypt_0.8.17.bb} |  9 +++--
 2 files changed, 14 insertions(+), 31 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-scrypt_0.8.6.bb => python3-scrypt_0.8.17.bb} (53%)
meta-python/recipes-devtools/python/python3-scrypt/0001-py-scrypt-remove-the-hard-coded-include-paths.patch +10 -26
index d535e4326..42d20855d 100644
@@ -1,26 +1,10 @@
-From d8db473ce9346cd6254c90e13ac45b3bbde494c4 Mon Sep 17 00:00:00 2001
-From: Derek Straka <[email protected]>
-Date: Sun, 11 Mar 2018 19:55:38 -0400
-Subject: [PATCH] py-scrypt: remove the hard coded include paths
-
-Upstream-Status: Pending
-
-Signed-off-by: Derek Straka <[email protected]>
----
- setup.py | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/setup.py b/setup.py
-index e36adc4..2ebfbf1 100644
---- a/setup.py
-+++ b/setup.py
-@@ -24,7 +24,6 @@ if sys.platform.startswith('linux'):
-                      ('HAVE_SYS_SYSINFO_H', '1'),
-                      ('_FILE_OFFSET_BITS', '64')]
-     libraries = ['crypto', 'rt']
--    includes = ['/usr/local/include', '/usr/include']
-     CFLAGS.append('-O2')
- elif sys.platform.startswith('win32'):
-     define_macros = [('inline', '__inline')]
--- 
-2.7.4
+--- a/setup.py	2020-09-09 16:39:47.000000000 +0000
++++ b/setup.py	2021-03-22 11:35:31.171587290 +0000
+@@ -25,7 +25,6 @@
+                      ('HAVE_SYS_SYSINFO_H', '1'),
+                      ('_FILE_OFFSET_BITS', '64')]
+     libraries = ['crypto', 'rt']
+-    includes = ['/usr/local/include', '/usr/include']
+     CFLAGS.append('-O2')
+ elif sys.platform.startswith('win32'):
+     define_macros = [('inline', '__inline')]
meta-python/recipes-devtools/python/python3-scrypt_0.8.17.bb renamed from meta-python/recipes-devtools/python/python3-scrypt_0.8.6.bb +4 -5
similarity index 53%
rename from meta-python/recipes-devtools/python/python3-scrypt_0.8.6.bb
rename to meta-python/recipes-devtools/python/python3-scrypt_0.8.17.bb
index 7588fc54b..122aa84d0 100644
@@ -1,12 +1,11 @@
 DESCRIPTION = "Bindings for the scrypt key derivation function library"
 LICENSE = "BSD-2-Clause"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=168ff75417f75a83e63c8875292d44dc"
-HOMEPAGE="https://bitbucket.org/mhallin/py-scrypt/overview"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=adb100454edec31fac41b1331cc76540"
+HOMEPAGE="https://github.com/holgern/py-scrypt"
 
 SRC_URI += "file://0001-py-scrypt-remove-the-hard-coded-include-paths.patch"
 
-SRC_URI[md5sum] = "ae8e3263aa31b040c1f9c7f1e1843a56"
-SRC_URI[sha256sum] = "f8239b2d47fa1d40bc27efd231dc7083695d10c1c2ac51a99380360741e0362d"
+SRC_URI[sha256sum] = "25b5075f2238be93af1cd574540a5ea01b8547f9b678aa72d22fce22577475ec"
 
 inherit pypi ptest setuptools3
 
@@ -20,5 +19,5 @@ RDEPENDS_${PN}-ptest += " \
 
 do_install_ptest() {
     install -d ${D}${PTEST_PATH}/tests
-    cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+    cp -rf ${S}/scrypt/tests/* ${D}${PTEST_PATH}/tests/
 }
Signature · 1 line
2.17.1
#5 lore raw

Re: [oe] [meta-python][PATCH 05/10] python3-scrypt: Upgrade 0.8.6 -> 0.8.17

Fails to patch

https://errors.yoctoproject.org/Errors/Details/574380/

Quoted 103 lines · Leon Anavi

Upgrade to release 0.8.17:

- Add_dll_directory for python 3.8 on windows, as importlib.util.find_spec does not search all paths anymore
- Add additional test vector from RFC
- Fix missing import
- Fix imp deprecation warning
- Improve build for conda forge
- Add SCRYPT_WINDOWS_LINK_LEGACY_OPENSSL environment variable, when set, openssl 1.0.2 is linked
- Fix build for conda feedstock
- Fix typo
- Use the static libcrypto_static for windows and openssl 1.1.1
- Setup.py for windows improved, works with openssl 1.0.2 and 1.1.1
- Setup.py for windows fixed

License-Update: Update years

---
 ...-remove-the-hard-coded-include-paths.patch | 36 ++++++-------------
 ...rypt_0.8.6.bb => python3-scrypt_0.8.17.bb} |  9 +++--
 2 files changed, 14 insertions(+), 31 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-scrypt_0.8.6.bb => python3-scrypt_0.8.17.bb} (53%)
meta-python/recipes-devtools/python/python3-scrypt/0001-py-scrypt-remove-the-hard-coded-include-paths.patch +10 -26
index d535e4326..42d20855d 100644
@@ -1,26 +1,10 @@
-From d8db473ce9346cd6254c90e13ac45b3bbde494c4 Mon Sep 17 00:00:00 2001
-From: Derek Straka <[email protected]>
-Date: Sun, 11 Mar 2018 19:55:38 -0400
-Subject: [PATCH] py-scrypt: remove the hard coded include paths
-
-Upstream-Status: Pending
-
-Signed-off-by: Derek Straka <[email protected]>
----
- setup.py | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/setup.py b/setup.py
-index e36adc4..2ebfbf1 100644
---- a/setup.py
-+++ b/setup.py
-@@ -24,7 +24,6 @@ if sys.platform.startswith('linux'):
-                      ('HAVE_SYS_SYSINFO_H', '1'),
-                      ('_FILE_OFFSET_BITS', '64')]
-     libraries = ['crypto', 'rt']
--    includes = ['/usr/local/include', '/usr/include']
-     CFLAGS.append('-O2')
- elif sys.platform.startswith('win32'):
-     define_macros = [('inline', '__inline')]
---
-2.7.4
+--- a/setup.py 2020-09-09 16:39:47.000000000 +0000
++++ b/setup.py 2021-03-22 11:35:31.171587290 +0000
+@@ -25,7 +25,6 @@
+                      ('HAVE_SYS_SYSINFO_H', '1'),
+                      ('_FILE_OFFSET_BITS', '64')]
+     libraries = ['crypto', 'rt']
+-    includes = ['/usr/local/include', '/usr/include']
+     CFLAGS.append('-O2')
+ elif sys.platform.startswith('win32'):
+     define_macros = [('inline', '__inline')]
meta-python/recipes-devtools/python/python3-scrypt_0.8.17.bb renamed from meta-python/recipes-devtools/python/python3-scrypt_0.8.6.bb +4 -6
similarity index 53%
rename from meta-python/recipes-devtools/python/python3-scrypt_0.8.6.bb
rename to meta-python/recipes-devtools/python/python3-scrypt_0.8.17.bb
index 7588fc54b..122aa84d0 100644
@@ -1,12 +1,11 @@
 DESCRIPTION = "Bindings for the scrypt key derivation function library"
 LICENSE = "BSD-2-Clause"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=168ff75417f75a83e63c8875292d44dc"
-HOMEPAGE="https://bitbucket.org/mhallin/py-scrypt/overview"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=adb100454edec31fac41b1331cc76540"
+HOMEPAGE="https://github.com/holgern/py-scrypt"
 
 SRC_URI += "file://0001-py-scrypt-remove-the-hard-coded-include-paths.patch"
 
-SRC_URI[md5sum] = "ae8e3263aa31b040c1f9c7f1e1843a56"
-SRC_URI[sha256sum] = "f8239b2d47fa1d40bc27efd231dc7083695d10c1c2ac51a99380360741e0362d"
+SRC_URI[sha256sum] = "25b5075f2238be93af1cd574540a5ea01b8547f9b678aa72d22fce22577475ec"
 
 inherit pypi ptest setuptools3
 
@@ -20,5 +19,5 @@ RDEPENDS_${PN}-ptest += " \
 
 do_install_ptest() {
     install -d ${D}${PTEST_PATH}/tests
-    cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+    cp -rf ${S}/scrypt/tests/* ${D}${PTEST_PATH}/tests/
 }
--

2.17.1

author
#6 lore raw

PATCH 6/10 python3-humanize: Upgrade 3.2.0 -> 3.3.0

In reply to Leon Anavi

Upgrade to release 3.3.0:

- Add humanize.number.clamp

---
 .../{python3-humanize_3.2.0.bb => python3-humanize_3.3.0.bb}    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-humanize_3.2.0.bb => python3-humanize_3.3.0.bb} (79%)
meta-python/recipes-devtools/python/python3-humanize_3.3.0.bb renamed from meta-python/recipes-devtools/python/python3-humanize_3.2.0.bb +1 -1
similarity index 79%
rename from meta-python/recipes-devtools/python/python3-humanize_3.2.0.bb
rename to meta-python/recipes-devtools/python/python3-humanize_3.3.0.bb
index 646e20f7d..3d54cf0c4 100644
@@ -4,7 +4,7 @@ HOMEPAGE = "http://github.com/jmoiron/humanize"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENCE;md5=4ecc42519e84f6f3e23529464df7bd1d"
 
-SRC_URI[sha256sum] = "ab69004895689951b79f2ae4fdd6b8127ff0c180aff107856d5d98119a33f026"
+SRC_URI[sha256sum] = "8bf7abd672b867f38b8b04593829b85b9b6199a61ef6586bf3629cc06458ff35"
 
 inherit pypi setuptools3
 
Signature · 1 line
2.17.1
author
#7 lore raw

PATCH 7/10 python3-regex: Upgrade 2020.11.13 -> 2021.3.17

In reply to Leon Anavi

Upgrade to release 2021.3.17:

- Fuzzy matching with wrong distance (unnecessary substitutions)
- Missing wheel for macosx and the new M1 chip (arm64 arch)

---
 .../{python3-regex_2020.11.13.bb => python3-regex_2021.3.17.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-regex_2020.11.13.bb => python3-regex_2021.3.17.bb} (77%)
meta-python/recipes-devtools/python/python3-regex_2021.3.17.bb renamed from meta-python/recipes-devtools/python/python3-regex_2020.11.13.bb +1 -1
similarity index 77%
rename from meta-python/recipes-devtools/python/python3-regex_2020.11.13.bb
rename to meta-python/recipes-devtools/python/python3-regex_2021.3.17.bb
index b5f714397..a3cb80413 100644
@@ -5,6 +5,6 @@ LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=f0a3e4a2554ebb89c0
 
 inherit pypi setuptools3
 
-SRC_URI[sha256sum] = "83d6b356e116ca119db8e7c6fc2983289d87b27b3fac238cfe5dca529d884562"
+SRC_URI[sha256sum] = "4b8a1fb724904139149a43e172850f35aa6ea97fb0545244dc0b805e0154ed68"
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.17.1
author
#8 lore raw

PATCH 8/10 python3-twine: Upgrade 3.4.0 -> 3.4.1

In reply to Leon Anavi

Upgrade to release 3.4.1:

- Fix a regression that was causing some namespace packages with dots in them fail to upload to PyPI

---
 .../python/{python3-twine_3.4.0.bb => python3-twine_3.4.1.bb}   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-twine_3.4.0.bb => python3-twine_3.4.1.bb} (77%)
meta-python/recipes-devtools/python/python3-twine_3.4.1.bb renamed from meta-python/recipes-devtools/python/python3-twine_3.4.0.bb +1 -1
similarity index 77%
rename from meta-python/recipes-devtools/python/python3-twine_3.4.0.bb
rename to meta-python/recipes-devtools/python/python3-twine_3.4.1.bb
index 2cbf16876..111366dba 100644
@@ -3,7 +3,7 @@ HOMEPAGE = "https://twine.readthedocs.io/"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=a3d1106b253a8d50dd82a4202a045b4c"
 
-SRC_URI[sha256sum] = "101f1c43ea4587ab19261d09157c63b6f37a0e55b215f0dd26304df1d49b620c"
+SRC_URI[sha256sum] = "a56c985264b991dc8a8f4234eb80c5af87fa8080d0c224ad8f2cd05a2c22e83b"
 
 inherit pypi setuptools3
 
Signature · 1 line
2.17.1
author
#9 lore raw

PATCH 9/10 python3-isort: Upgrade 5.7.0 -> 5.8.0

In reply to Leon Anavi

Upgrade to release 5.8.0:

- Fix: as import comments can in some cases be duplicated.
- Fix: extra newline added with float-to-top, after skip, in some cases.
- Fix: incorrect placement of noqa comments with multiple from imports.
- Fix: in some cases different length limits for dos based line endings.
- Export MyPY type hints.
- Identified import statements now return runnable code.
- Added "wemake" profile.
- Parallel (-j) now defaults to number of CPU cores if no value is provided.
- Added a safeguard against accidental usage against /.
- Provide a flag --overwrite-in-place to ensure same file handle is used after sorting.
- Added support for extending skips with --extend-skip and --extend-skip-glob.
- Auto identification and skipping of some invalid import statements.
- Ability to reverse the import sorting order.
- Added ability to push star imports to the top to avoid overriding explicitly defined imports.
- Doc: Skip doesn't support plain directory names, but skip_glob does.

---
 .../python/{python3-isort_5.7.0.bb => python3-isort_5.8.0.bb}   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-isort_5.7.0.bb => python3-isort_5.8.0.bb} (81%)
meta-python/recipes-devtools/python/python3-isort_5.8.0.bb renamed from meta-python/recipes-devtools/python/python3-isort_5.7.0.bb +1 -1
similarity index 81%
rename from meta-python/recipes-devtools/python/python3-isort_5.7.0.bb
rename to meta-python/recipes-devtools/python/python3-isort_5.8.0.bb
index 9f234ee46..36de825d2 100644
@@ -4,7 +4,7 @@ LICENSE = "MIT"
 SECTION = "devel/python"
 LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=6;endline=6;md5=8227180126797a0148f94f483f3e1489"
 
-SRC_URI[sha256sum] = "c729845434366216d320e936b8ad6f9d681aab72dc7cbc2d51bedc3582f3ad1e"
+SRC_URI[sha256sum] = "0a943902919f65c5684ac4e0154b1ad4fac6dcaa5d9f3426b732f1c8b5419be6"
 
 inherit pypi setuptools3
 
Signature · 1 line
2.17.1
author
#10 lore raw

PATCH 10/10 python3-sqlalchemy: Upgrade 1.3.23 -> 1.4.2

In reply to Leon Anavi

Upgrade to release 1.4.2:

orm:

- Added support for the declared_attr object to work in the context of dataclass fields.
- Fixed issue in new ORM dataclasses functionality where dataclass fields on an abstract base or mixin that contained column or other mapping constructs would not be mapped if they also included a “default” key within the dataclasses.field() object.
- Fixed regression where the Query.selectable accessor, which is a synonym for Query.__clause_element__(), got removed, it's now restored.
- Fixed regression where use of an unnamed SQL expression such as a SQL function would raise a column targeting error if the query itself were using joinedload for an entity and was also being wrapped in a subquery by the joinedload eager loading process.
- Fixed regression where the Query.filter_by() method would fail to locate the correct source entity if the Query.join() method had been used targeting an entity without any kind of ON clause.
- Fixed regression where the SQL compilation of a Function would not work correctly if the object had been "annotated", which is an internal memoization process used mostly by the ORM. In particular it could affect ORM lazy loads which make greater use of this feature in 1.4.
- Fixed regression where the ConcreteBase would fail to map at all when a mapped column name overlapped with the discriminator column name, producing an assertion error. The use case here did not function correctly in 1.3 as the polymorphic union would produce a query that ignored the discriminator column entirely, while emitting duplicate column warnings. As 1.4's architecture cannot easily reproduce this essentially broken behavior of 1.3 at the select() level right now, the use case now raises an informative error message instructing the user to use the .ConcreteBase._concrete_discriminator_name attribute to resolve the conflict. To assist with this configuration, .ConcreteBase._concrete_discriminator_name may be placed on the base class only where it will be automatically used by subclasses; previously this was not the case.

engine:

- Restored top level import for sqlalchemy.engine.reflection. This ensures that the base Inspector class is properly registered so that inspect() works for third party dialects that don't otherwise import this package.

sql:

- Fixed issue where using a func that includes dotted packagenames would fail to be cacheable by the SQL caching system due to a Python list of names that needed to be a tuple.
- Fixed regression in the case() construct, where the "dictionary" form of argument specification failed to work correctly if it were passed positionally, rather than as a "whens" keyword argument.

mypy:

- Fixed issue in MyPy extension which crashed on detecting the type of a Column if the type were given with a module prefix like sa.Integer().

postgresql:

- Rename the column name used by a reflection query that used a reserved word in some postgresql compatible databases.

---
 ...python3-sqlalchemy_1.3.23.bb => python3-sqlalchemy_1.4.2.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-sqlalchemy_1.3.23.bb => python3-sqlalchemy_1.4.2.bb} (85%)
meta-python/recipes-devtools/python/python3-sqlalchemy_1.4.2.bb renamed from meta-python/recipes-devtools/python/python3-sqlalchemy_1.3.23.bb +1 -1
similarity index 85%
rename from meta-python/recipes-devtools/python/python3-sqlalchemy_1.3.23.bb
rename to meta-python/recipes-devtools/python/python3-sqlalchemy_1.4.2.bb
index d962ea7d9..00ab6cc77 100644
@@ -4,7 +4,7 @@ HOMEPAGE = "http://www.sqlalchemy.org/"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=3359ed561ac16aaa25b6c6eff84df595"
 
-SRC_URI[sha256sum] = "6fca33672578666f657c131552c4ef8979c1606e494f78cd5199742dfb26918b"
+SRC_URI[sha256sum] = "6a8e4c2e65028933a6dc8643c8f5a4f295a367131195b3c708634925cb3e8ec1"
 
 PYPI_PACKAGE = "SQLAlchemy"
 inherit pypi setuptools3
Signature · 1 line
2.17.1