Merge lp:~mandel/restful-u1/setup into lp:restful-u1

Proposed by Manuel de la Peña
Status: Merged
Merge reported by: John O'Brien
Merged at revision: not available
Proposed branch: lp:~mandel/restful-u1/setup
Merge into: lp:restful-u1
Diff against target: 69 lines (+59/-0)
2 files modified
.bzrignore (+1/-0)
setup.py (+58/-0)
To merge this branch: bzr merge lp:~mandel/restful-u1/setup
Reviewer Review Type Date Requested Status
John O'Brien Approve
Review via email: mp+84264@code.launchpad.net

Commit message

Adds a small and quick setup.py for the lib.

Description of the change

Adds a small and quick setup.py for the lib.

To post a comment you must log in.
Revision history for this message
John O'Brien (jdobrien) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file '.bzrignore'
2--- .bzrignore 2011-11-02 11:22:10 +0000
3+++ .bzrignore 2011-12-02 13:52:27 +0000
4@@ -1,1 +1,2 @@
5 credentialfile.txt
6+build
7
8=== added file 'setup.py'
9--- setup.py 1970-01-01 00:00:00 +0000
10+++ setup.py 2011-12-02 13:52:27 +0000
11@@ -0,0 +1,58 @@
12+#Copyright (C) 2011 by Manuel de la Pena
13+#
14+#Permission is hereby granted, free of charge, to any person obtaining a copy
15+#of this software and associated documentation files (the "Software"), to deal
16+#in the Software without restriction, including without limitation the rights
17+#to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18+#copies of the Software, and to permit persons to whom the Software is
19+#furnished to do so, subject to the following conditions:
20+#
21+#The above copyright notice and this permission notice shall be included in
22+#all copies or substantial portions of the Software.
23+#
24+#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25+#IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26+#FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27+#AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28+#LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29+#OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
30+#THE SOFTWARE.
31+"""Set up the lib in your system."""
32+
33+import distutils
34+import os
35+import sys
36+
37+try:
38+ import DistUtilsExtra.auto
39+ from DistUtilsExtra.command import build_extra
40+except ImportError:
41+ print >> sys.stderr, 'To build this program you need '\
42+ 'https://launchpad.net/python-distutils-extra'
43+ sys.exit(1)
44+assert DistUtilsExtra.auto.__version__ >= '2.18', \
45+ 'needs DistUtilsExtra.auto >= 2.18'
46+
47+def get_docs():
48+ """Returns the data files for the docs."""
49+ docs = []
50+ for doc_file in os.listdir('docs'):
51+ docs.append(os.path.join('docs', doc_file))
52+ return docs
53+
54+
55+DistUtilsExtra.auto.setup(
56+ name='restful-u1',
57+ version='0.1',
58+ license='GPL v3',
59+ author="John O'Brien",
60+ author_email='john.obrien@canonical.com',
61+ description='Client Ubuntu One Rest API',
62+ long_description='A simple library for using the Ubuntu One Rest API',
63+ url='https://launchpad.net/restful-u1',
64+ extra_path='restful-u1',
65+ packages=[
66+ 'u1rest',
67+ 'u1rest.auth',
68+ 'u1rest.files',
69+ ])

Subscribers

People subscribed via source and target branches