rpms/python-shove/F-10 python-shove-0.1.3-setup.patch, NONE, 1.1 python-shove.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Luke Macken lmacken at fedoraproject.org
Thu Feb 12 17:01:40 UTC 2009


Author: lmacken

Update of /cvs/pkgs/rpms/python-shove/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv13706

Modified Files:
	.cvsignore sources 
Added Files:
	python-shove-0.1.3-setup.patch python-shove.spec 
Log Message:
Initial import of Shove into the F-10 branch

python-shove-0.1.3-setup.patch:

--- NEW FILE python-shove-0.1.3-setup.patch ---
--- setup.py.orig	2008-12-16 20:20:19.000000000 -0500
+++ setup.py	2008-12-16 20:20:29.000000000 -0500
@@ -1,140 +1,137 @@
-# Copyright (c) 2006-2008 L. C. Rees.  All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-#
-# 1.  Redistributions of source code must retain the above copyright notice,
-# this list of conditions and the following disclaimer.
-# 2.  Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3.  Neither the name of the Portable Site Information Project nor the names
-# of its contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
-# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-'''setup - setuptools based setup for shove.'''
-
-import ez_setup
-ez_setup.use_setuptools()
-
-try:
-    from setuptools import setup
-except ImportError:
-    from distutils.core import setup
-
-setup(
-    name='shove',
-    version='0.1.3',
-    description='''Common object storage frontend.''',
-    long_description='''Common object storage frontend that supports dictionary-style access, object serialization and compression, and multiple storage and caching backends.
-
-Currently supported storage backends are:
-
-    * Amazon S3 Web Service
-    * Berkeley Source Database
-    * Filesystem
-    * Firebird
-    * FTP
-    * DBM
-    * Durus
-    * Memory
-    * Microsoft SQL Server
-    * MySQL
-    * Oracle
-    * PostgreSQL
-    * SQLite
-    * Subversion
-    * Zope Object Database (ZODB)
-
-Currently supported caching backends are:
-
-    * Filesystem
-    * Firebird
-    * memcached
-    * Memory
-    * Microsoft SQL Server
-    * MySQL
-    * Oracle
-    * PostgreSQL
-    * SQLite
-
-The simplest shove use case is:
-
-from shove import Shove
-
-store = Shove()
-
-which creates an in-memory store and cache.
-
-To use another backend for storage or caching, a configuration URI or an existing store or cache instance is passed to shove using the form:
-
-from shove import Shove
-
-<storename> = Shove(<store_uri>, <cache_uri>)
-
-The URI format for a backend is documented in its module. The URI form is the same as SQLAlchemy's:
-
-http://www.sqlalchemy.org/docs/04/dbengine.html#dbengine_establishing
-
-shove implements the Python dictionary/mapping API:
-
-http://docs.python.org/lib/typesmapping.html''',
-    author='L. C. Rees',
-    author_email='lcrees at gmail.com',
-    url='http://pypi.python.org/pypi/shove/',
-    license='BSD',
-    packages = ['shove', 'shove.cache', 'shove.store', 'shove.tests'],
-    test_suite='shove.tests',
-    zip_safe = False,
-    keywords='object storage persistence database shelve',
-    classifiers=['Development Status :: 4 - Beta',
-          'Environment :: Web Environment',
-          'License :: OSI Approved :: BSD License',
-          'Operating System :: OS Independent',
-          'Programming Language :: Python',
-          'Topic :: Database :: Front-Ends'],
-    install_requires = ['SQLAlchemy >=0.4', 'boto'],
+# Copyright (c) 2006-2008 L. C. Rees.  All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+#
+# 1.  Redistributions of source code must retain the above copyright notice,
+# this list of conditions and the following disclaimer.
+# 2.  Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the distribution.
+# 3.  Neither the name of the Portable Site Information Project nor the names
+# of its contributors may be used to endorse or promote products derived from
+# this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+# POSSIBILITY OF SUCH DAMAGE.
+
+'''setup - setuptools based setup for shove.'''
+
+try:
+    from setuptools import setup
+except ImportError:
+    from distutils.core import setup
+
+setup(
+    name='shove',
+    version='0.1.3',
+    description='''Common object storage frontend.''',
+    long_description='''Common object storage frontend that supports dictionary-style access, object serialization and compression, and multiple storage and caching backends.
+
+Currently supported storage backends are:
+
+    * Amazon S3 Web Service
+    * Berkeley Source Database
+    * Filesystem
+    * Firebird
+    * FTP
+    * DBM
+    * Durus
+    * Memory
+    * Microsoft SQL Server
+    * MySQL
+    * Oracle
+    * PostgreSQL
+    * SQLite
+    * Subversion
+    * Zope Object Database (ZODB)
+
+Currently supported caching backends are:
+
+    * Filesystem
+    * Firebird
+    * memcached
+    * Memory
+    * Microsoft SQL Server
+    * MySQL
+    * Oracle
+    * PostgreSQL
+    * SQLite
+
+The simplest shove use case is:
+
+from shove import Shove
+
+store = Shove()
+
+which creates an in-memory store and cache.
+
+To use another backend for storage or caching, a configuration URI or an existing store or cache instance is passed to shove using the form:
+
+from shove import Shove
+
+<storename> = Shove(<store_uri>, <cache_uri>)
+
+The URI format for a backend is documented in its module. The URI form is the same as SQLAlchemy's:
+
+http://www.sqlalchemy.org/docs/04/dbengine.html#dbengine_establishing
+
+shove implements the Python dictionary/mapping API:
+
+http://docs.python.org/lib/typesmapping.html''',
+    author='L. C. Rees',
+    author_email='lcrees at gmail.com',
+    url='http://pypi.python.org/pypi/shove/',
+    license='BSD',
+    packages = ['shove', 'shove.cache', 'shove.store', 'shove.tests'],
+    test_suite='shove.tests',
+    zip_safe = False,
+    keywords='object storage persistence database shelve',
+    classifiers=['Development Status :: 4 - Beta',
+          'Environment :: Web Environment',
+          'License :: OSI Approved :: BSD License',
+          'Operating System :: OS Independent',
+          'Programming Language :: Python',
+          'Topic :: Database :: Front-Ends'],
+    install_requires = ['SQLAlchemy >=0.4', 'boto'],
     entry_points = '''
-    [shove.stores]
-    bsddb=shove.store.bsdb:BsdStore
-    dbm=shove.store.dbm:DbmStore
-    durus=shove.store.durusdb:DurusStore
-    file=shove.store.file:FileStore
-    firebird=shove.store.db:DbStore
-    ftp=shove.store.ftp:FtpStore
-    memory=shove.store.memory:MemoryStore
-    mssql=shove.store.db:DbStore
-    mysql=shove.store.db:DbStore
-    oracle=shove.store.db:DbStore
-    postgres=shove.store.db:DbStore
-    simple=shove.store.simple:SimpleStore
-    sqlite=shove.store.db:DbStore
-    s3=shove.store.s3:S3Store
-    svn=shove.store.svn:SvnStore
-    zodb=shove.store.zodb:ZodbStore
-    [shove.caches]
-    bsddb=shove.cache.bsdb:BsdCache
-    file=shove.cache.file:FileCache
-    firebird=shove.cache.db:DbCache
-    memcache=shove.cache.memcached:MemCached
-    memory=shove.cache.memory:MemoryCache
-    mssql=shove.cache.db:DbCache
-    mysql=shove.cache.db:DbCache
-    oracle=shove.cache.db:DbCache
-    postgres=shove.cache.db:DbCache
-    simple=shove.cache.simple:SimpleCache
-    sqlite=shove.cache.db:DbCache
-    '''
-)
\ No newline at end of file
+    [shove.stores]
+    bsddb=shove.store.bsdb:BsdStore
+    dbm=shove.store.dbm:DbmStore
+    durus=shove.store.durusdb:DurusStore
+    file=shove.store.file:FileStore
+    firebird=shove.store.db:DbStore
+    ftp=shove.store.ftp:FtpStore
+    memory=shove.store.memory:MemoryStore
+    mssql=shove.store.db:DbStore
+    mysql=shove.store.db:DbStore
+    oracle=shove.store.db:DbStore
+    postgres=shove.store.db:DbStore
+    simple=shove.store.simple:SimpleStore
+    sqlite=shove.store.db:DbStore
+    s3=shove.store.s3:S3Store
+    svn=shove.store.svn:SvnStore
+    zodb=shove.store.zodb:ZodbStore
+    [shove.caches]
+    bsddb=shove.cache.bsdb:BsdCache
+    file=shove.cache.file:FileCache
+    firebird=shove.cache.db:DbCache
+    memcache=shove.cache.memcached:MemCached
+    memory=shove.cache.memory:MemoryCache
+    mssql=shove.cache.db:DbCache
+    mysql=shove.cache.db:DbCache
+    oracle=shove.cache.db:DbCache
+    postgres=shove.cache.db:DbCache
+    simple=shove.cache.simple:SimpleCache
+    sqlite=shove.cache.db:DbCache
+    '''
+)


--- NEW FILE python-shove.spec ---
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

%define module  shove

Name:           python-shove
Version:        0.1.3
Release:        2%{?dist}
Summary:        Common object storage frontend

Group:          Development/Languages
License:        BSD
URL:            http://pypi.python.org/pypi/shove/
Source0:        http://pypi.python.org/packages/source/s/%{module}/%{module}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch

# Patch to remove ez_install insanity
Patch0:         %{name}-%{version}-setup.patch

BuildRequires:  python-devel
Requires:       python-boto
Requires:       python-sqlalchemy

%description
Common object storage frontend that supports dictionary-style access, object
serialization and compression, and multiple storage and caching backends.

Currently supported storage backends are:

        * Amazon S3 Web Service
        * Berkeley Source Database
        * Filesystem
        * Firebird
        * FTP
        * DBM
        * Durus
        * Memory
        * Microsoft SQL Server
        * MySQL
        * Oracle
        * PostgreSQL
        * SQLite
        * Subversion
        * Zope Object Database (ZODB)

Currently supported caching backends are:

        * Filesystem
        * Firebird
        * memcached
        * Memory
        * Microsoft SQL Server
        * MySQL
        * Oracle
        * PostgreSQL
        * SQLite


%prep
%setup -q -n %{module}-%{version}
%patch0 -b .setup


%build
%{__python} setup.py build


%install
rm -rf %{buildroot}
%{__python} setup.py install --skip-build --root %{buildroot}


%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%doc README
%{python_sitelib}/*


%changelog
* Tue Jan 06 2009 Luke Macken <lmacken at redhat.com> 0.1.3-2
- Use consistent macros
- Add comment about patch
- Make rpmlint happy

* Tue Dec 16 2008 Luke Macken <lmacken at redhat.com> 0.1.3-1
- Initial package


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/python-shove/F-10/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	10 Feb 2009 22:13:52 -0000	1.1
+++ .cvsignore	12 Feb 2009 17:01:10 -0000	1.2
@@ -0,0 +1 @@
+shove-0.1.3.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/python-shove/F-10/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	10 Feb 2009 22:13:52 -0000	1.1
+++ sources	12 Feb 2009 17:01:10 -0000	1.2
@@ -0,0 +1 @@
+69176d93e5159afcf65145c025881132  shove-0.1.3.tar.bz2




More information about the fedora-extras-commits mailing list