- Add patch support-python314.patch:

* Support Python 3.14 removals.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bson?expand=0&rev=16
This commit is contained in:
2025-10-28 05:30:12 +00:00
committed by Git OBS Bridge
commit 84f4769e70
9 changed files with 435 additions and 0 deletions

22
support-python314.patch Normal file
View File

@@ -0,0 +1,22 @@
Index: bson-0.5.10/setup.py
===================================================================
--- bson-0.5.10.orig/setup.py
+++ bson-0.5.10/setup.py
@@ -4,7 +4,7 @@
# Copyright (c) 2015, Ayun Park. All rights reserved.
# For licensing, see LICENSE file included in the package.
import sys
-import pkgutil
+import importlib.util
from setuptools import setup
from setuptools.command.install import install
@@ -13,7 +13,7 @@ class NewInstall(install):
@staticmethod
def check_pymongo():
- if pkgutil.find_loader('pymongo'):
+ if importlib.util.find_spec('pymongo'):
return True
return False