From: Mike Bayer Date: Mon, 13 Sep 2021 18:38:02 +0000 (-0400) Subject: replace "in" operator with "==" + "or" for greenlet platforms X-Git-Tag: rel_1_4_24~24^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b1081ef618a1e3279cc82f725ccf955b0001fd3;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git replace "in" operator with "==" + "or" for greenlet platforms 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 --- diff --git a/doc/build/changelog/unreleased_14/7024.rst b/doc/build/changelog/unreleased_14/7024.rst new file mode 100644 index 0000000000..f0c44a0421 --- /dev/null +++ b/doc/build/changelog/unreleased_14/7024.rst @@ -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. diff --git a/setup.cfg b/setup.cfg index 5e797f7830..689539687b 100644 --- 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 =