Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 7eb89b2cd3 | |||
| 234f01d600 |
@@ -1,9 +1,3 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 28 05:29:28 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Add patch support-python314.patch:
|
||||
* Support Python 3.14 removals.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 14 20:23:54 UTC 2024 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-bson
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -29,7 +29,6 @@ Patch0: drop-python2-support.patch
|
||||
# PATCH-FIX-OPENSUSE Use assertEqual to support Python 3.12
|
||||
Patch1: support-python312.patch
|
||||
Patch2: fix2038.patch
|
||||
Patch3: support-python314.patch
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user