forked from pool/python-mongoengine
* Fix typing import incompatible with Pymongo 3.7
* Fix bug related with recent updates to no_dereference context
manager #2799
* Fix for uuidRepresentation not read when provided in URI #2741
* Add option to user array_filters
* Fix combination of __raw__ and mongoengine syntax #2773
* Add tests against MongoDB 6.0 and MongoDB 7.0 in the pipeline
* Fix validate() not being called when inheritance is used in
EmbeddedDocument and validate is overriden #2784
* Add support for readPreferenceTags in connection parameters
* Use estimated_documents_count OR documents_count when count
is called, based on the query #2529
* Fix no_dereference context manager which wasn't turning off
auto-dereferencing correctly in some cases #2788
* BREAKING CHANGE: no_dereference context manager no longer
returns the class in __enter__ #2788
as it was useless and making it look like it was returning
a different class although it was the same.
* Added __raw__ to :meth:`~mongoengine.Queryset.order_by()` to
allow to provide raw pymongo 'sort' argument and get around
some of the limitations #2783
* Add `text_score` argument on mongoengine.Document.search_text()
to allow text_score computation to be turned off
as it interfere with natural returned documents order #2759
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mongoengine?expand=0&rev=15
66 lines
1.9 KiB
RPMSpec
66 lines
1.9 KiB
RPMSpec
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python3-%{**}}
|
|
%global skip_python2 1
|
|
Name: python-mongoengine
|
|
Version: 0.28.2
|
|
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
|
|
BuildRequires: %{python_module blinker}
|
|
BuildRequires: %{python_module pymongo >= 3.9}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-blinker
|
|
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
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
rm -v tests/test_connection.py
|
|
# o/opytest
|
|
|
|
%files %{python_files}
|
|
%doc AUTHORS README.rst
|
|
%license LICENSE
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|