1
# Copyright 2009 Canonical Ltd. All rights reserved.
3
# This file is part of lazr.yourpkg
5
# lazr.config is free software: you can redistribute it and/or modify it
6
# under the terms of the GNU Lesser General Public License as published by
7
# the Free Software Foundation, either version 3 of the License, or (at your
8
# option) any later version.
10
# lazr.config is distributed in the hope that it will be useful, but WITHOUT
11
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
13
# License for more details.
15
# You should have received a copy of the GNU Lesser General Public License
16
# along with lazr.config. If not, see <http://www.gnu.org/licenses/>.
18
from setuptools import setup, find_packages
20
# generic helpers primarily for the long_description
21
def generate(*docname_or_string):
23
for value in docname_or_string:
24
if value.endswith('.txt'):
29
if not value.endswith('\n'):
34
from lazr.yourpkg import __version__
39
namespace_packages=['lazr'],
40
packages=find_packages('src'),
41
package_dir={'':'src'},
42
include_package_data=True,
44
maintainer='LAZR Developers',
45
maintainer_email='lazr-developers@lists.launchpad.net',
46
description=open('README.txt').readline().strip(),
47
long_description=generate(
48
'src/lazr/yourpkg/README.txt',
49
'src/lazr/yourpkg/NEWS.txt'),
55
url='https://launchpad.net/lazr.yourpkg',
57
"Development Status :: 5 - Production/Stable",
58
"Intended Audience :: Developers",
59
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
60
"Operating System :: OS Independent",
61
"Programming Language :: Python"],