diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000000000000000000000000000000000..f087b429e2f81a9f37b28a8308e2210f84df6c9b --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.tar.gz filter=lfs diff=lfs merge=lfs -text diff --git a/.lfsconfig b/.lfsconfig new file mode 100644 index 0000000000000000000000000000000000000000..b8c6b904cd2180db529bb048de65db4ae961f158 --- /dev/null +++ b/.lfsconfig @@ -0,0 +1,2 @@ +[lfs] + url = https://artlfs.openeuler.openatom.cn/src-openEuler/python-pymongo diff --git a/pymongo-4.13.2.tar.gz b/pymongo-4.13.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..fe9c382906ad770841fb5e43140bc3fa64fc3673 --- /dev/null +++ b/pymongo-4.13.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0f64c6469c2362962e6ce97258ae1391abba1566a953a492562d2924b44815c2 +size 2167844 diff --git a/pymongo-4.7.3.tar.gz b/pymongo-4.7.3.tar.gz deleted file mode 100644 index ac63d7107cbbb3f4240f24adb5a53f730be0d6db..0000000000000000000000000000000000000000 Binary files a/pymongo-4.7.3.tar.gz and /dev/null differ diff --git a/python-pymongo.spec b/python-pymongo.spec index fae51d3c1e0eb613a9f221946b42dd61a1045a2f..236e3f357e808e144bfb5640516562ca5f037a0a 100644 --- a/python-pymongo.spec +++ b/python-pymongo.spec @@ -1,7 +1,7 @@ Name: python-pymongo -Version: 4.7.3 +Version: 4.13.2 Release: 1 -License: Apache License 2.0 +License: Apache-2.0 Summary: PyMongo - the Python driver for MongoDB URL: https://github.com/mongodb/mongo-python-driver Source0: %{pypi_source pymongo} @@ -9,6 +9,9 @@ Source0: %{pypi_source pymongo} BuildRequires: python3-devel python3-setuptools BuildRequires: python3-sphinx gcc python3-pip python3-dns BuildRequires: python3-pytest +BuildRequires: python3-hatchling python3-hatch-requirements-txt +# test requirements +BuildRequires: python3-pytest-asyncio >= 0.24.0 %global _description \ The PyMongo distribution contains tools for interacting with \ @@ -53,19 +56,16 @@ The PyMongo distribution contains tools for interacting with MongoDB database fr %autosetup -n pymongo-%{version} -p1 %build -%py3_build +%pyproject_build %install -%py3_install +%pyproject_install chmod 755 %{buildroot}%{python3_sitearch}/bson/*.so chmod 755 %{buildroot}%{python3_sitearch}/pymongo/*.so %check -sed -i '$!N;/test_detected_environment_warning/!P;D' test/test_client.py -sed -i '/with self._caplog.at_level/,+18 d' test/test_client.py -sed -i '/test_metadata/,+49 d' test/test_client.py -python3 -m unittest discover -v +%pytest %files -n python3-bson %license LICENSE @@ -76,7 +76,7 @@ python3 -m unittest discover -v %license LICENSE %doc README.md %{python3_sitearch}/pymongo -%{python3_sitearch}/pymongo-%{version}-*.egg-info +%{python3_sitearch}/pymongo-%{version}.dist-info %files -n python3-pymongo-gridfs %{python3_sitearch}/gridfs @@ -85,6 +85,15 @@ python3 -m unittest discover -v %{_docdir}/python3-pymongo %changelog +* Wed Jul 09 2025 yaoxin <1024769339@qq.com> - 4.13.2-1 +- Update to 4.13.2: + * Fixed a bug where AsyncMongoClient would block the event loop while creating new connections, + potentially significantly increasing latency for ongoing operations. + * Fixed a bug that resulted in confusing error messages after hostname verification errors when using PyOpenSSL. + * Fixed a bug that could raise ServerSelectionTimeoutError when using timeouts with AsyncMongoClient. + * Fixed a bug that could raise NetworkTimeout errors on Windows. + * Fixed a bug where pymongo.write_concern.WriteConcern repr was not eval-able when using w="majority". + * Wed Apr 23 2025 Ge Wang - 4.7.3-1 - Update to 4.7.3