forked from pool/python-bson
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 8ac5655845 | |||
| 84f4769e70 | |||
| b968af6732 | |||
| 13451d2a90 |
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
Thu Nov 14 20:23:54 UTC 2024 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-bson
|
# spec file for package python-bson
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC and contributors
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -29,6 +29,7 @@ Patch0: drop-python2-support.patch
|
|||||||
# PATCH-FIX-OPENSUSE Use assertEqual to support Python 3.12
|
# PATCH-FIX-OPENSUSE Use assertEqual to support Python 3.12
|
||||||
Patch1: support-python312.patch
|
Patch1: support-python312.patch
|
||||||
Patch2: fix2038.patch
|
Patch2: fix2038.patch
|
||||||
|
Patch3: support-python314.patch
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
|
|||||||
22
support-python314.patch
Normal file
22
support-python314.patch
Normal 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
|
||||||
|
|
||||||
Reference in New Issue
Block a user