15
0
Files
python-mongoengine/python-mongoengine.spec

68 lines
2.0 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package python-mongoengine
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-mongoengine
Version: 0.29.1
Release: 0
Summary: Python Object-Document Mapper for working with MongoDB
License: MIT
Group: Development/Languages/Python
URL: http://mongoengine.org/
Source: https://github.com/MongoEngine/mongoengine/archive/v%{version}.tar.gz
- update to 0.24.0: * EnumField improvements: now ``choices`` limits the values of an enum to allow * Fix bug that prevented instance queryset from using custom queryset_class #2589 * Fix deepcopy of EmbeddedDocument #2202 * Introduce a base exception class for MongoEngine exceptions (MongoEngineException). Note that this doesn't concern the pymongo errors #2515 * Fix error when using precision=0 with DecimalField #2535 * Add support for regex and whole word text search query #2568 * Add support for update aggregation pipeline #2578 * BREAKING CHANGE: Updates to support pymongo 4.0. Where possible deprecated functionality has been migrated, but additional care should be taken when migrating to pymongo 4.0 as existing code may have been using deprecated features which have now been removed #2614. For the pymongo migration guide see: https://pymongo.readthedocs.io/en/stable/migrate-to-pymongo4.html. In addition to the changes in the migration guide, the following is a high level overview of the changes made to MongoEngine when using pymongo 4.0: - limited support of geohaystack indexes has been removed - ``QuerySet.map_reduce`` has been migrated from ``Collection.map_reduce`` and ``Collection.inline_map_reduce`` to use ``db.command({mapReduce: ..., ...})`` and support between the two may need additional verification. - UUIDs are encoded with the ``pythonLegacy`` encoding by default instead of the newer and cross platform ``standard`` encoding. Existing UUIDs will need to be migrated before changing the encoding, and this should be done explicitly by the user rather than switching to a new default by MongoEngine. This default will change at a later date, but to allow specifying and then migrating to the new format a default ``json_options`` has been provided. - ``Queryset.count`` has been using ``Collection.count_documents`` and OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mongoengine?expand=0&rev=7
2022-03-07 11:37:26 +00:00
BuildRequires: %{python_module blinker}
BuildRequires: %{python_module pip}
- update to 0.24.0: * EnumField improvements: now ``choices`` limits the values of an enum to allow * Fix bug that prevented instance queryset from using custom queryset_class #2589 * Fix deepcopy of EmbeddedDocument #2202 * Introduce a base exception class for MongoEngine exceptions (MongoEngineException). Note that this doesn't concern the pymongo errors #2515 * Fix error when using precision=0 with DecimalField #2535 * Add support for regex and whole word text search query #2568 * Add support for update aggregation pipeline #2578 * BREAKING CHANGE: Updates to support pymongo 4.0. Where possible deprecated functionality has been migrated, but additional care should be taken when migrating to pymongo 4.0 as existing code may have been using deprecated features which have now been removed #2614. For the pymongo migration guide see: https://pymongo.readthedocs.io/en/stable/migrate-to-pymongo4.html. In addition to the changes in the migration guide, the following is a high level overview of the changes made to MongoEngine when using pymongo 4.0: - limited support of geohaystack indexes has been removed - ``QuerySet.map_reduce`` has been migrated from ``Collection.map_reduce`` and ``Collection.inline_map_reduce`` to use ``db.command({mapReduce: ..., ...})`` and support between the two may need additional verification. - UUIDs are encoded with the ``pythonLegacy`` encoding by default instead of the newer and cross platform ``standard`` encoding. Existing UUIDs will need to be migrated before changing the encoding, and this should be done explicitly by the user rather than switching to a new default by MongoEngine. This default will change at a later date, but to allow specifying and then migrating to the new format a default ``json_options`` has been provided. - ``Queryset.count`` has been using ``Collection.count_documents`` and OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mongoengine?expand=0&rev=7
2022-03-07 11:37:26 +00:00
BuildRequires: %{python_module pymongo >= 3.9}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-blinker
- update to 0.24.0: * EnumField improvements: now ``choices`` limits the values of an enum to allow * Fix bug that prevented instance queryset from using custom queryset_class #2589 * Fix deepcopy of EmbeddedDocument #2202 * Introduce a base exception class for MongoEngine exceptions (MongoEngineException). Note that this doesn't concern the pymongo errors #2515 * Fix error when using precision=0 with DecimalField #2535 * Add support for regex and whole word text search query #2568 * Add support for update aggregation pipeline #2578 * BREAKING CHANGE: Updates to support pymongo 4.0. Where possible deprecated functionality has been migrated, but additional care should be taken when migrating to pymongo 4.0 as existing code may have been using deprecated features which have now been removed #2614. For the pymongo migration guide see: https://pymongo.readthedocs.io/en/stable/migrate-to-pymongo4.html. In addition to the changes in the migration guide, the following is a high level overview of the changes made to MongoEngine when using pymongo 4.0: - limited support of geohaystack indexes has been removed - ``QuerySet.map_reduce`` has been migrated from ``Collection.map_reduce`` and ``Collection.inline_map_reduce`` to use ``db.command({mapReduce: ..., ...})`` and support between the two may need additional verification. - UUIDs are encoded with the ``pythonLegacy`` encoding by default instead of the newer and cross platform ``standard`` encoding. Existing UUIDs will need to be migrated before changing the encoding, and this should be done explicitly by the user rather than switching to a new default by MongoEngine. This default will change at a later date, but to allow specifying and then migrating to the new format a default ``json_options`` has been provided. - ``Queryset.count`` has been using ``Collection.count_documents`` and OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mongoengine?expand=0&rev=7
2022-03-07 11:37:26 +00:00
Requires: python-pymongo >= 3.9
Suggests: python-python-dateutil
BuildArch: noarch
%python_subpackages
%description
MongoEngine is an ORM-like layer on top of PyMongo.
MongoEngine is a Python Object-Document Mapper for working with MongoDB
built on top of PyMongo.
%prep
%setup -q -n mongoengine-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
- update to 0.24.0: * EnumField improvements: now ``choices`` limits the values of an enum to allow * Fix bug that prevented instance queryset from using custom queryset_class #2589 * Fix deepcopy of EmbeddedDocument #2202 * Introduce a base exception class for MongoEngine exceptions (MongoEngineException). Note that this doesn't concern the pymongo errors #2515 * Fix error when using precision=0 with DecimalField #2535 * Add support for regex and whole word text search query #2568 * Add support for update aggregation pipeline #2578 * BREAKING CHANGE: Updates to support pymongo 4.0. Where possible deprecated functionality has been migrated, but additional care should be taken when migrating to pymongo 4.0 as existing code may have been using deprecated features which have now been removed #2614. For the pymongo migration guide see: https://pymongo.readthedocs.io/en/stable/migrate-to-pymongo4.html. In addition to the changes in the migration guide, the following is a high level overview of the changes made to MongoEngine when using pymongo 4.0: - limited support of geohaystack indexes has been removed - ``QuerySet.map_reduce`` has been migrated from ``Collection.map_reduce`` and ``Collection.inline_map_reduce`` to use ``db.command({mapReduce: ..., ...})`` and support between the two may need additional verification. - UUIDs are encoded with the ``pythonLegacy`` encoding by default instead of the newer and cross platform ``standard`` encoding. Existing UUIDs will need to be migrated before changing the encoding, and this should be done explicitly by the user rather than switching to a new default by MongoEngine. This default will change at a later date, but to allow specifying and then migrating to the new format a default ``json_options`` has been provided. - ``Queryset.count`` has been using ``Collection.count_documents`` and OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mongoengine?expand=0&rev=7
2022-03-07 11:37:26 +00:00
%check
rm -v tests/test_connection.py
# o/opytest
%files %{python_files}
%doc AUTHORS README.rst
%license LICENSE
%{python_sitelib}/mongoengine
%{python_sitelib}/mongoengine-%{version}.dist-info
%changelog