[python-bottle-sqlite] Initial spec

paragn paragn at fedoraproject.org
Sat Aug 4 13:35:58 UTC 2012


commit 0a50306afe543a3daebe9dfd6a8714c72cfe4e63
Author: Parag Nemade <panemade at gmail.com>
Date:   Sat Aug 4 19:05:42 2012 +0530

    Initial spec

 .gitignore                |    1 +
 python-bottle-sqlite.spec |   45 +++++++++++++++++++++++++++++++++++++++++++++
 sources                   |    1 +
 3 files changed, 47 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1443103 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/bottle-sqlite-0.1.tar.gz
diff --git a/python-bottle-sqlite.spec b/python-bottle-sqlite.spec
new file mode 100644
index 0000000..3f4e0c7
--- /dev/null
+++ b/python-bottle-sqlite.spec
@@ -0,0 +1,45 @@
+%global srcname bottle-sqlite
+Name:           python-%{srcname}
+Version:        0.1
+Release:        1%{?dist}
+Summary:        SQLite3 integration for Bottle WSGI framework
+
+Group:          Development/Languages
+License:        MIT
+URL:            http://bottlepy.org
+Source0:        http://pypi.python.org/packages/source/b/%{srcname}/%{srcname}-%{version}.tar.gz
+
+BuildArch:      noarch
+BuildRequires:  python-devel
+BuildRequires:  python-setuptools
+
+Requires:       python-bottle
+
+%description
+Bottle-sqlite is a plugin that integrates SQLite3 with your Bottle application. 
+It automatically connects to a database at the beginning of a request, passes 
+the database handle to the route callback and closes the connection afterwards.
+
+To automatically detect routes that need a database connection, the plugin 
+searches for route callbacks that require a db keyword argument (configurable) 
+and skips routes that do not. This removes any overhead for routes that don't 
+need a database connection.
+
+%prep
+%setup -q -n %{srcname}-%{version}
+
+%build
+%{__python} setup.py build
+
+%install
+%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+
+%files
+%doc README PKG-INFO
+%{python_sitelib}/bottle_sqlite.py*
+%{python_sitelib}/bottle_sqlite*.egg-info
+
+
+%changelog
+* Mon Jul 18 2011 Rahul Sundaram <sundaram at fedoraproject.org> - 0.1-1
+- Initial spec
diff --git a/sources b/sources
index e69de29..f290078 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+0ee58a72e4aa490700b274c61154862d  bottle-sqlite-0.1.tar.gz


More information about the scm-commits mailing list