commit f2a957fc8c154a2b351adbcfa60785ff73d02ae7f9527bebc56bc6903d28e0f5 Author: Dirk Mueller Date: Thu Oct 4 07:44:20 2018 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..37a8eaa --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8b731c3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.obscpio +*.osc +_build.* +.pbuild diff --git a/fix-requirements.patch b/fix-requirements.patch new file mode 100644 index 0000000..3f4d4c3 --- /dev/null +++ b/fix-requirements.patch @@ -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 diff --git a/mongoengine-0.15.3.tar.gz b/mongoengine-0.15.3.tar.gz new file mode 100644 index 0000000..70bfbbd --- /dev/null +++ b/mongoengine-0.15.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2ecc60f50d9f85d4ae7e2e8bd1dc19778af65d2883d5ad6d658d77f1560059d3 +size 145529 diff --git a/python-mongoengine.changes b/python-mongoengine.changes new file mode 100644 index 0000000..e0a1833 --- /dev/null +++ b/python-mongoengine.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri Sep 21 09:46:39 UTC 2018 - Antonio Larrosa - 0.15.3 + +- Initial release of python-mongoengine 0.15.3 +- Add fix-requirements.patch to not force a specific version of python-coverage diff --git a/python-mongoengine.spec b/python-mongoengine.spec new file mode 100644 index 0000000..b030d56 --- /dev/null +++ b/python-mongoengine.spec @@ -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