* Update uuidRepresentation warnings with "unspecified" as the
future default (instead of 'standard' previously advertised)
#2739
* Added `mongo_client_class` optional parameter to connect() to
allow to use an alternative mongo client than
pymongo.MongoClient.
* Fix DictField that always gets marked as changed #2606
* fix for Queryset.none() that has no effect on
update/aggregate / first #2669
* Changes in 0.26.0
* BREAKING CHANGE: Improved the performance of
:meth:`~mongoengine.Document.save()`
by removing the call to
:meth:`~mongoengine.Document.ensure_indexes` unless
``meta['auto_create_index_on_save']`` is set to True. With
the default settings, Document indexes will still be created
on the fly, during the first usage of the collection
(query, insert, etc), they will just not be re-created
whenever .save() is called.
* BREAKING CHANGE: remove deprecated method ``ensure_index``
(replaced by ``create_index`` long time ago).
* Addition of Decimal128Field:
:class:`~mongoengine.fields.Decimal128Field` for accurate
representation of Decimals (much better than the legacy field
DecimalField).
* BREAKING CHANGE: When using ListField(EnumField) or
DictField(EnumField), the values weren't always cast into the
Enum
* BREAKING CHANGE (bugfix) Querying ObjectIdField or
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mongoengine?expand=0&rev=13
66 lines
1.9 KiB
RPMSpec
66 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package python-mongoengine
|
|
#
|
|
# 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
|
|
# 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.27.0
|
|
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
|