summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-29 12:19:13 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-29 12:19:13 +0000
commitd3a7538cc2dd3e6cb20bad995df7c3f027be6b8e (patch)
treeceb62e48ef038f5832759398d10203553131ee3e
parentee730b3f2c5755e0bd9d623709e86a07a228e2bc (diff)
automatic import of python-mongoframes
-rw-r--r--.gitignore1
-rw-r--r--python-mongoframes.spec246
-rw-r--r--sources1
3 files changed, 248 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..6e3f0e7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/MongoFrames-1.3.6.tar.gz
diff --git a/python-mongoframes.spec b/python-mongoframes.spec
new file mode 100644
index 0000000..b784fbf
--- /dev/null
+++ b/python-mongoframes.spec
@@ -0,0 +1,246 @@
+%global _empty_manifest_terminate_build 0
+Name: python-MongoFrames
+Version: 1.3.6
+Release: 1
+Summary: A fast unobtrusive MongoDB ODM for Python
+License: MIT
+URL: https://github.com/GetmeUK/MongoFrames
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/43/d9/751096281f7683cbe332d17e60e58f67841d98dcac3efaa7560b0cf9ac11/MongoFrames-1.3.6.tar.gz
+BuildArch: noarch
+
+
+%description
+<a href="http://mongoframes.com"><img width="188" src="http://mongoframes.com/images/github-splash.png" alt="MongoFrames logo"></a>
+
+# MongoFrames
+
+[![Build Status](https://travis-ci.org/GetmeUK/MongoFrames.svg?branch=master)](https://travis-ci.org/GetmeUK/MongoFrames)
+[![Join the chat at https://gitter.im/GetmeUK/ContentTools](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/GetmeUK/MongoFrames?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
+
+MongoFrames is a fast unobtrusive MongoDB ODM for Python designed to fit into a workflow not dictate one. Documentation is available at [MongoFrames.com](http://mongoframes.com) and includes:
+
+- [A getting started guide](http://mongoframes.com/getting-started)
+- [Tutorials/Snippets](http://mongoframes.com/snippets)
+- [API documentation](http://mongoframes.com/api)
+
+## Installation
+
+We recommend you use [virtualenv](https://virtualenv.pypa.io) or [virtualenvwrapper](https://virtualenvwrapper.readthedocs.io) to create a virtual environment for your install. There are several options for installing MongoFrames:
+
+- `pip install MongoFrames` *(recommended)*
+- `easy_install MongoFrames`
+- Download the source and run `python setup.py install`
+
+## Dependencies
+
+- [blinker](https://pythonhosted.org/blinker/) >= 1.4
+- [pymongo](https://api.mongodb.com) >= 3
+- [pytest](http://pytest.org/) >= 2.8.7 *(only for testing)*
+
+## 10 second example
+
+```Python
+from mongoframes import *
+
+# Define some document frames (a.k.a models)
+class Dragon(Frame):
+ _fields = {'name', 'loot'}
+
+class Item(Frame):
+ _fields = {'desc', 'value'}
+
+# Create a dragon and loot to boot
+Item(desc='Sock', value=1).insert()
+Item(desc='Diamond', value=100).insert()
+Dragon(name='Burt', loot=Item.many()).insert()
+
+# Have Burt boast about his loot
+burt = Dragon.one(Q.name == 'Burt', projection={'loot': {'$ref': Item}})
+for item in burt.loot:
+ print('I have a {0.name} worth {0.value} crown'.format(item))
+```
+
+## Testing
+
+To test the library you'll need to be running a local instance of MongoDB on the standard port.
+
+To run the test suite: `py.test`
+To run the test suite on each supported version of Python: `tox`
+
+## Helpful organizations
+MongoFrames is developed using a number of tools & services provided for free by nice folks at organizations committed to supporting open-source projects including [GitHub](https://github.com) and [Travis CI](https://travis-ci.org).
+
+%package -n python3-MongoFrames
+Summary: A fast unobtrusive MongoDB ODM for Python
+Provides: python-MongoFrames
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-MongoFrames
+<a href="http://mongoframes.com"><img width="188" src="http://mongoframes.com/images/github-splash.png" alt="MongoFrames logo"></a>
+
+# MongoFrames
+
+[![Build Status](https://travis-ci.org/GetmeUK/MongoFrames.svg?branch=master)](https://travis-ci.org/GetmeUK/MongoFrames)
+[![Join the chat at https://gitter.im/GetmeUK/ContentTools](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/GetmeUK/MongoFrames?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
+
+MongoFrames is a fast unobtrusive MongoDB ODM for Python designed to fit into a workflow not dictate one. Documentation is available at [MongoFrames.com](http://mongoframes.com) and includes:
+
+- [A getting started guide](http://mongoframes.com/getting-started)
+- [Tutorials/Snippets](http://mongoframes.com/snippets)
+- [API documentation](http://mongoframes.com/api)
+
+## Installation
+
+We recommend you use [virtualenv](https://virtualenv.pypa.io) or [virtualenvwrapper](https://virtualenvwrapper.readthedocs.io) to create a virtual environment for your install. There are several options for installing MongoFrames:
+
+- `pip install MongoFrames` *(recommended)*
+- `easy_install MongoFrames`
+- Download the source and run `python setup.py install`
+
+## Dependencies
+
+- [blinker](https://pythonhosted.org/blinker/) >= 1.4
+- [pymongo](https://api.mongodb.com) >= 3
+- [pytest](http://pytest.org/) >= 2.8.7 *(only for testing)*
+
+## 10 second example
+
+```Python
+from mongoframes import *
+
+# Define some document frames (a.k.a models)
+class Dragon(Frame):
+ _fields = {'name', 'loot'}
+
+class Item(Frame):
+ _fields = {'desc', 'value'}
+
+# Create a dragon and loot to boot
+Item(desc='Sock', value=1).insert()
+Item(desc='Diamond', value=100).insert()
+Dragon(name='Burt', loot=Item.many()).insert()
+
+# Have Burt boast about his loot
+burt = Dragon.one(Q.name == 'Burt', projection={'loot': {'$ref': Item}})
+for item in burt.loot:
+ print('I have a {0.name} worth {0.value} crown'.format(item))
+```
+
+## Testing
+
+To test the library you'll need to be running a local instance of MongoDB on the standard port.
+
+To run the test suite: `py.test`
+To run the test suite on each supported version of Python: `tox`
+
+## Helpful organizations
+MongoFrames is developed using a number of tools & services provided for free by nice folks at organizations committed to supporting open-source projects including [GitHub](https://github.com) and [Travis CI](https://travis-ci.org).
+
+%package help
+Summary: Development documents and examples for MongoFrames
+Provides: python3-MongoFrames-doc
+%description help
+<a href="http://mongoframes.com"><img width="188" src="http://mongoframes.com/images/github-splash.png" alt="MongoFrames logo"></a>
+
+# MongoFrames
+
+[![Build Status](https://travis-ci.org/GetmeUK/MongoFrames.svg?branch=master)](https://travis-ci.org/GetmeUK/MongoFrames)
+[![Join the chat at https://gitter.im/GetmeUK/ContentTools](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/GetmeUK/MongoFrames?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
+
+MongoFrames is a fast unobtrusive MongoDB ODM for Python designed to fit into a workflow not dictate one. Documentation is available at [MongoFrames.com](http://mongoframes.com) and includes:
+
+- [A getting started guide](http://mongoframes.com/getting-started)
+- [Tutorials/Snippets](http://mongoframes.com/snippets)
+- [API documentation](http://mongoframes.com/api)
+
+## Installation
+
+We recommend you use [virtualenv](https://virtualenv.pypa.io) or [virtualenvwrapper](https://virtualenvwrapper.readthedocs.io) to create a virtual environment for your install. There are several options for installing MongoFrames:
+
+- `pip install MongoFrames` *(recommended)*
+- `easy_install MongoFrames`
+- Download the source and run `python setup.py install`
+
+## Dependencies
+
+- [blinker](https://pythonhosted.org/blinker/) >= 1.4
+- [pymongo](https://api.mongodb.com) >= 3
+- [pytest](http://pytest.org/) >= 2.8.7 *(only for testing)*
+
+## 10 second example
+
+```Python
+from mongoframes import *
+
+# Define some document frames (a.k.a models)
+class Dragon(Frame):
+ _fields = {'name', 'loot'}
+
+class Item(Frame):
+ _fields = {'desc', 'value'}
+
+# Create a dragon and loot to boot
+Item(desc='Sock', value=1).insert()
+Item(desc='Diamond', value=100).insert()
+Dragon(name='Burt', loot=Item.many()).insert()
+
+# Have Burt boast about his loot
+burt = Dragon.one(Q.name == 'Burt', projection={'loot': {'$ref': Item}})
+for item in burt.loot:
+ print('I have a {0.name} worth {0.value} crown'.format(item))
+```
+
+## Testing
+
+To test the library you'll need to be running a local instance of MongoDB on the standard port.
+
+To run the test suite: `py.test`
+To run the test suite on each supported version of Python: `tox`
+
+## Helpful organizations
+MongoFrames is developed using a number of tools & services provided for free by nice folks at organizations committed to supporting open-source projects including [GitHub](https://github.com) and [Travis CI](https://travis-ci.org).
+
+%prep
+%autosetup -n MongoFrames-1.3.6
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-MongoFrames -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 1.3.6-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..98fbf42
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+74915a0ab766494bfe227890ff141b0c MongoFrames-1.3.6.tar.gz