17
0

Accepting request 639545 from home:alarrosa:branches:devel:languages:python:flask

New package python-mongoengine

OBS-URL: https://build.opensuse.org/request/show/639545
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mongoengine?expand=0&rev=1
This commit is contained in:
2018-10-04 07:44:20 +00:00
committed by Git OBS Bridge
commit f2a957fc8c
6 changed files with 108 additions and 0 deletions

24
.gitattributes vendored Normal file
View File

@@ -0,0 +1,24 @@
*.changes merge=merge-changes
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tar filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

4
.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
*.obscpio
*.osc
_build.*
.pbuild

13
fix-requirements.patch Normal file
View File

@@ -0,0 +1,13 @@
Index: mongoengine-0.15.3/setup.py
===================================================================
--- mongoengine-0.15.3.orig/setup.py
+++ mongoengine-0.15.3/setup.py
@@ -55,7 +55,7 @@ CLASSIFIERS = [
extra_opts = {
'packages': find_packages(exclude=['tests', 'tests.*']),
- 'tests_require': ['nose', 'coverage==4.2', 'blinker', 'Pillow>=2.0.0']
+ 'tests_require': ['nose', 'coverage>=4.2', 'blinker', 'Pillow>=2.0.0']
}
if sys.version_info[0] == 3:
extra_opts['use_2to3'] = True

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2ecc60f50d9f85d4ae7e2e8bd1dc19778af65d2883d5ad6d658d77f1560059d3
size 145529

View File

@@ -0,0 +1,5 @@
-------------------------------------------------------------------
Fri Sep 21 09:46:39 UTC 2018 - Antonio Larrosa <alarrosa@suse.com> - 0.15.3
- Initial release of python-mongoengine 0.15.3
- Add fix-requirements.patch to not force a specific version of python-coverage

59
python-mongoengine.spec Normal file
View File

@@ -0,0 +1,59 @@
#
# spec file for package python-mongoengine
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-mongoengine
Version: 0.15.3
Release: 0
License: MIT
Summary: MongoEngine is a Python Object-Document Mapper for working with MongoDB
Url: http://mongoengine.org/
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/m/mongoengine/mongoengine-%{version}.tar.gz
Patch0: fix-requirements.patch
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
Requires: python-pymongo >= 2.7.1
Requires: python-six
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}
%patch0 -p1
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%doc AUTHORS README.rst
%license LICENSE
%{python_sitelib}/*
%changelog