3
# Copyright 2009 Canonical Ltd. All rights reserved.
5
# This file is part of lazr.restfulclient
7
# lazr.restfulclient is free software: you can redistribute it and/or modify it
8
# under the terms of the GNU Lesser General Public License as published by
9
# the Free Software Foundation, version 3 of the License.
11
# lazr.restfulclient is distributed in the hope that it will be useful, but WITHOUT
12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14
# License for more details.
16
# You should have received a copy of the GNU Lesser General Public License
17
# along with lazr.restfulclient. If not, see <http://www.gnu.org/licenses/>.
20
from setuptools import setup, find_packages
22
# generic helpers primarily for the long_description
23
def generate(*docname_or_string):
25
for value in docname_or_string:
26
if value.endswith('.txt'):
31
if not value.endswith('\n'):
37
__version__ = open("src/lazr/restfulclient/version.txt").read().strip()
40
name='lazr.restfulclient',
42
namespace_packages=['lazr'],
43
packages=find_packages('src'),
44
package_dir={'':'src'},
45
include_package_data=True,
47
maintainer='LAZR Developers',
48
maintainer_email='lazr-developers@lists.launchpad.net',
49
description=open('README.txt').readline().strip(),
50
long_description=generate(
51
'src/lazr/restfulclient/README.txt',
52
'src/lazr/restfulclient/NEWS.txt'),
56
'lazr.authentication',
62
url='https://launchpad.net/lazr.restfulclient',
63
download_url= 'https://launchpad.net/lazr.restfulclient/+download',
65
"Development Status :: 5 - Production/Stable",
66
"Intended Audience :: Developers",
67
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
68
"Operating System :: OS Independent",
69
"Programming Language :: Python"],
72
'z3c.recipe.sphinxdoc'],
73
test=['lazr.restful>=0.11.0',
76
test_suite='lazr.restfulclient.tests',