~ubuntu-branches/ubuntu/vivid/lazr.restfulclient/vivid-proposed

« back to all changes in this revision

Viewing changes to .pc/remove_test_requires/setup.py

  • Committer: Package Import Robot
  • Author(s): Dimitri John Ledkov
  • Date: 2014-12-06 01:04:46 UTC
  • mfrom: (1.3.4)
  • Revision ID: package-import@ubuntu.com-20141206010446-axq9v8zp6kkfts8v
Tags: 0.13.4-0ubuntu1
Upload to vivid, because my subkey is not getting accepted by
ftp-master.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/env python
2
 
 
3
 
# Copyright 2009 Canonical Ltd.  All rights reserved.
4
 
#
5
 
# This file is part of lazr.restfulclient
6
 
#
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.
10
 
#
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.
15
 
#
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/>.
18
 
 
19
 
import sys
20
 
from setuptools import setup, find_packages
21
 
 
22
 
# generic helpers primarily for the long_description
23
 
def generate(*docname_or_string):
24
 
    res = []
25
 
    for value in docname_or_string:
26
 
        if value.endswith('.txt'):
27
 
            f = open(value)
28
 
            value = f.read()
29
 
            f.close()
30
 
        res.append(value)
31
 
        if not value.endswith('\n'):
32
 
            res.append('')
33
 
    return '\n'.join(res)
34
 
# end generic helpers
35
 
 
36
 
 
37
 
__version__ = open("src/lazr/restfulclient/version.txt").read().strip()
38
 
 
39
 
setup(
40
 
    name='lazr.restfulclient',
41
 
    version=__version__,
42
 
    namespace_packages=['lazr'],
43
 
    packages=find_packages('src'),
44
 
    package_dir={'':'src'},
45
 
    include_package_data=True,
46
 
    zip_safe=False,
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'),
53
 
    license='LGPL v3',
54
 
    install_requires=[
55
 
        'httplib2',
56
 
        'lazr.authentication',
57
 
        'oauth',
58
 
        'setuptools',
59
 
        'wadllib>=1.1.4',
60
 
        'wsgi_intercept',
61
 
        ],
62
 
    url='https://launchpad.net/lazr.restfulclient',
63
 
    download_url= 'https://launchpad.net/lazr.restfulclient/+download',
64
 
    classifiers=[
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"],
70
 
    extras_require=dict(
71
 
        docs=['Sphinx',
72
 
              'z3c.recipe.sphinxdoc'],
73
 
        test=['lazr.restful>=0.11.0',
74
 
              'van.testing'],
75
 
    ),
76
 
    test_suite='lazr.restfulclient.tests',
77
 
    )