namespace problem & setup.py file used for pypi uploading

Change-Id: I52a21f602a4cda201f5b446a427d0c5098e3d701
This commit is contained in:
Jrabbit 2011-08-18 08:42:14 -05:00
parent d0d97a8b69
commit fdcc33356d
2 changed files with 18 additions and 2 deletions

View File

@ -111,7 +111,7 @@ class CamliOp(object):
raise NameError("basepath must be in form '/bs'") raise NameError("basepath must be in form '/bs'")
if basepath[-1] == '/': if basepath[-1] == '/':
basepath = basepath[:-1] basepath = basepath[:-1]
self._basepath = basepath self.basepath = basepath
def _setup_connection(self): def _setup_connection(self):
"""Sets up the HTTP connection.""" """Sets up the HTTP connection."""
@ -156,7 +156,7 @@ class CamliOp(object):
self._setup_connection() self._setup_connection()
if self.basepath: if self.basepath:
fullpath = basepath + '/camli/stat' fullpath = self.basepath + '/camli/stat'
else: else:
fullpath = '/camli/stat' fullpath = '/camli/stat'
self.connection.request( self.connection.request(

16
lib/python/setup.py Normal file
View File

@ -0,0 +1,16 @@
from setuptools import setup
setup(
name='camlistore-client',
version='1.0.3dev',
author='Brett Slatkin',
author_email='bslatkin@gmail.com',
maintainer='Jack Laxson',
maintainer_email='jackjrabbit+camli@gmail.com',
description="Client library for Camlistore.",
url='http://camlistore.org',
license='Apache v2',
long_description='A convience library for python developers wishing to explore camlistore.',
packages=['camli'],
install_requires=['simplejson'],
classifiers=['Environment :: Console', 'Topic :: Internet :: WWW/HTTP']
)