python/elasticsearch: update to 8.16.0
[oi-userland.git] / components / python / versioneer / patches / 03-test-bdist_wheel.patch
blobacf3c7ad67aef33d0df1436af0b060856be84896
1 https://github.com/python-versioneer/python-versioneer/pull/395
3 --- versioneer-0.29/test/git/test_invocations.py.orig
4 +++ versioneer-0.29/test/git/test_invocations.py
5 @@ -1,7 +1,14 @@
6 import os, sys, shutil, unittest, tempfile, tarfile, warnings
7 -from wheel.bdist_wheel import get_abi_tag, get_platform
8 from packaging.tags import interpreter_name, interpreter_version
10 +try:
11 + # As of `setuptools`` 70.1.0
12 + from setuptools.command.bdist_wheel import get_abi_tag, get_platform
13 +except ImportError:
14 + # Deprecated starting from `wheel` 0.44.0
15 + from wheel.bdist_wheel import get_abi_tag, get_platform
18 sys.path.insert(0, "src")
19 import common