Commit 8fbf550f authored by Antony Chazapis's avatar Antony Chazapis
Browse files

Tools packaging.

Refs #1417
parent fac90d20
# Copyright 2011 GRNET S.A. 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.
#
# THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``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 GRNET S.A 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.
#
# The views and conclusions contained in the software and
# documentation are those of the authors and should not be
# interpreted as representing official policies, either expressed
# or implied, of GRNET S.A.
__version__ = '0.7'
......@@ -294,6 +294,16 @@ class BaseBackend(object):
"""
return []
def list_public(self, user, account, container):
"""Return a list of object (name, version_id) tuples existing under a container and are public.
Raises:
NotAllowedError: Operation not permitted
NameError: Container does not exist
"""
return []
def list_object_meta(self, user, account, container, until=None):
"""Return a list with all the container's object meta keys.
......
#!/usr/bin/env python
#from distutils.core import setup
from setuptools import setup
import os
from pithos import __version__ as version
from setuptools import setup, find_packages
VERSION = os.popen("git describe --abbrev=0 --tags").read().strip(' \nv')
setup(
name='Pithos',
version=version,
description='Pithos file storage service',
version=VERSION,
description='Pithos file storage service and tools',
author='GRNET',
author_email='pithos@grnet.gr',
url='http://code.grnet.gr/projects/pithos',
packages=['pithos'],
license='BSD',
classifiers=[
'Development Status :: 3 - Alpha',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities',
'License :: OSI Approved :: BSD License',
]
)
exclude lib/migrate*
Tools in this dir depend on being able to import pithos.
You need to adjust PYTHONPATH accordingly for this to work.
e.g.
export PYTHONPATH=$HOME/src/pithos
README
======
Pithos is a file storage service, built by GRNET.
Learn more about Pithos at: http://code.grnet.gr/projects/pithos
Here you will find the following tools:
pithos-sh Pithos shell
pithos-sync Pithos synchronization client
pithos-fs Pithos FUSE implementation
Also, the lib folder contains a python library that can be
used to access Pithos and manage stored objects.
All tools use the included lib.
#!/usr/bin/env python
import os
from setuptools import setup, find_packages
VERSION = os.popen("git describe --abbrev=0 --tags").read().strip(' \nv')
setup(
name='Pithos Tools',
version=VERSION,
description='Pithos file storage service tools',
author='GRNET',
author_email='pithos@grnet.gr',
url='http://code.grnet.gr/projects/pithos',
scripts=['pithos-sh', 'pithos-sync', 'pithos-fs'],
packages=['lib'],
license='BSD',
classifiers=[
'Development Status :: 3 - Alpha',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities',
'License :: OSI Approved :: BSD License',
]
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment