]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
replace "in" operator with "==" + "or" for greenlet platforms
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 13 Sep 2021 18:38:02 +0000 (14:38 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 13 Sep 2021 18:38:02 +0000 (14:38 -0400)
Further adjusted the "greenlet" package specifier in setup.cfg to use a
long chain of "or" expressions, so that the comparison of
``platform_machine`` to a specific identifier matches only the complete
string.

Fixes: #7024
Change-Id: I1cd40f5e14c62c21bd2e530ca8e38a5a3d50d353

doc/build/changelog/unreleased_14/7024.rst [new file with mode: 0644]
setup.cfg

diff --git a/doc/build/changelog/unreleased_14/7024.rst b/doc/build/changelog/unreleased_14/7024.rst
new file mode 100644 (file)
index 0000000..f0c44a0
--- /dev/null
@@ -0,0 +1,8 @@
+.. change::
+    :tags: bug, installation
+    :tickets: 7024
+
+    Further adjusted the "greenlet" package specifier in setup.cfg to use a
+    long chain of "or" expressions, so that the comparison of
+    ``platform_machine`` to a specific identifier matches only the complete
+    string.
index 5e797f7830597d626fadac4c1f1dc88e8a39a714..689539687b7c320887af0d49a4c174818ae3eb07 100644 (file)
--- a/setup.cfg
+++ b/setup.cfg
@@ -40,7 +40,7 @@ package_dir =
 
 install_requires =
     importlib-metadata;python_version<"3.8"
-    greenlet != 0.4.17;python_version>="3" and platform_machine in 'x86_64 X86_64 aarch64 AARCH64 ppc64le PPC64LE amd64 AMD64 win32 WIN32'
+    greenlet != 0.4.17;python_version>='3' and (platform_machine=='arch64' or (platform_machine=='ppc64le' or (platform_machine=='x86_64' or (platform_machine=='amd64' or (platform_machine=='win32' or platform_machine=='WIN32')))))
 
 [options.extras_require]
 asyncio =