Merge lp:~python-snippets-drivers/python-snippets/packaging into lp:~jonobacon/python-snippets/trunk

Proposed by Arulalan.T
Status: Needs review
Proposed branch: lp:~python-snippets-drivers/python-snippets/packaging
Merge into: lp:~jonobacon/python-snippets/trunk
Diff against target: 180 lines (+140/-0)
8 files modified
MANIFEST.in (+6/-0)
debian/changelog (+5/-0)
debian/compat (+1/-0)
debian/control (+17/-0)
debian/copyright (+31/-0)
debian/pycompat (+1/-0)
debian/rules (+7/-0)
setup.py (+72/-0)
To merge this branch: bzr merge lp:~python-snippets-drivers/python-snippets/packaging
Reviewer Review Type Date Requested Status
Jono Bacon Disapprove
Review via email: mp+22687@code.launchpad.net

Description of the change

This ods_reader snippet will read all kind of spreadsheet content in the form of list in python.

Using the file browse snippet code, we can browse *.ods file from our system.

after choosed ods file , this snippet will print the content of the ods column data.

Actually i am not the Author of this program. I am just merge two program and make it as useful snippet one.
AUTHOR: João S. O. Bueno
http://www.python.org.br/wiki/ODSheetReader

Now sharing with you !

To post a comment you must log in.
Revision history for this message
Jono Bacon (jonobacon) wrote :

This is not packaging related merge.

review: Disapprove

Unmerged revisions

10. By Jorge Castro

More snippets

9. By Jorge Castro

More modules

8. By Jorge Castro

2 more!

7. By Jorge Castro

Here comes #149.

6. By Jorge Castro

Merging

5. By Jorge Castro

Add more snippets.

4. By Jorge Castro

Merge in more snippets

3. By Nathan Handler

Add Packaging Files

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'MANIFEST.in'
2--- MANIFEST.in 1970-01-01 00:00:00 +0000
3+++ MANIFEST.in 2010-04-02 12:06:19 +0000
4@@ -0,0 +1,6 @@
5+include README
6+include COPYING
7+include MANIFEST.in
8+include CATEGORIES
9+include pygtk/*
10+include pygtksourceview/*
11
12=== added directory 'debian'
13=== added file 'debian/changelog'
14--- debian/changelog 1970-01-01 00:00:00 +0000
15+++ debian/changelog 2010-04-02 12:06:19 +0000
16@@ -0,0 +1,5 @@
17+python-snippets (1.0) karmic; urgency=low
18+
19+ * Initial release.
20+
21+ -- Martin Owens (DoctorMO) <doctormo@gmail.com> Mon, 04 Jan 2010 23:04:35 +0000
22
23=== added file 'debian/compat'
24--- debian/compat 1970-01-01 00:00:00 +0000
25+++ debian/compat 2010-04-02 12:06:19 +0000
26@@ -0,0 +1,1 @@
27+7
28
29=== added file 'debian/control'
30--- debian/control 1970-01-01 00:00:00 +0000
31+++ debian/control 2010-04-02 12:06:19 +0000
32@@ -0,0 +1,17 @@
33+Source: python-snippets
34+Section: python
35+Priority: optional
36+Maintainer: Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com>
37+XSBC-Original-Maintainer: Martin Owens <doctormo@gmail.com>
38+Build-Depends: cdbs (>=0.4.49), debhelper (>= 7.0.0), python-central (>=0.5.6), python
39+Standards-Version: 3.8.0
40+XS-Python-Version: current
41+
42+Package: python-snippets
43+Architecture: all
44+XB-Python-Version: ${python:Versions}
45+Depends: ${python:Depends}, ${misc:Depends}, python-gtk2
46+Provides: ${python:Provides}
47+Description: Python snippet files, contributed code that should help
48+ people learn how to program python and the various tips and tricks
49+ that make the process smooth.
50
51=== added file 'debian/copyright'
52--- debian/copyright 1970-01-01 00:00:00 +0000
53+++ debian/copyright 2010-04-02 12:06:19 +0000
54@@ -0,0 +1,31 @@
55+This package was debianized by Martin Owens <doctormo@gmail.com> on
56+Fri, 15 Dec 2009 14:40:12 -0000.
57+
58+Upstream Authors: Martin Owens (doctormo@gmail.com)
59+
60+Copyright:
61+
62+ Copyright 2008, Martin Owens <doctormo@gmail.com>
63+
64+License:
65+
66+ This package is free software; you can redistribute it and/or modify
67+ it under the terms of the GNU General Public License as published by
68+ the Free Software Foundation; either version 3 of the License, or
69+ (at your option) any later version.
70+
71+ This package is distributed in the hope that it will be useful,
72+ but WITHOUT ANY WARRANTY; without even the implied warranty of
73+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
74+ GNU General Public License for more details.
75+
76+ You should have received a copy of the GNU General Public License
77+ along with this package; if not, write to the Free Software
78+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
79+
80+On Debian systems, the complete text of the GNU General Public License can be
81+found in `/usr/share/common-licenses/GPL'.
82+
83+The Debian packaging is (C), Martin Owens <doctormo@gmail.com> and is licensed
84+under the version 3 or (at your option), any later version of GPL, please see
85+above.
86
87=== added file 'debian/pycompat'
88--- debian/pycompat 1970-01-01 00:00:00 +0000
89+++ debian/pycompat 2010-04-02 12:06:19 +0000
90@@ -0,0 +1,1 @@
91+2
92
93=== added file 'debian/rules'
94--- debian/rules 1970-01-01 00:00:00 +0000
95+++ debian/rules 2010-04-02 12:06:19 +0000
96@@ -0,0 +1,7 @@
97+#!/usr/bin/make -f
98+
99+DEB_PYTHON_SYSTEM=pycentral
100+
101+include /usr/share/cdbs/1/rules/debhelper.mk
102+include /usr/share/cdbs/1/class/python-distutils.mk
103+
104
105=== added file 'setup.py'
106--- setup.py 1970-01-01 00:00:00 +0000
107+++ setup.py 2010-04-02 12:06:19 +0000
108@@ -0,0 +1,72 @@
109+#!/usr/bin/env python
110+#
111+# Copyright (C) 2009 Martin Owens
112+#
113+# This program is free software; you can redistribute it and/or modify
114+# it under the terms of the GNU General Public License as published by
115+# the Free Software Foundation; either version 3 of the License, or
116+# (at your option) any later version.
117+#
118+# This program is distributed in the hope that it will be useful,
119+# but WITHOUT ANY WARRANTY; without even the implied warranty of
120+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
121+# GNU General Public License for more details.
122+#
123+# You should have received a copy of the GNU General Public License
124+# along with this program; if not, write to the Free Software
125+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
126+#
127+
128+from distutils.core import setup
129+import os
130+
131+# remove MANIFEST. distutils doesn't properly update it when the contents of directories change.
132+if os.path.exists('MANIFEST'): os.remove('MANIFEST')
133+
134+from fnmatch import fnmatch
135+
136+def listfiles(*dirs):
137+ dir, pattern = os.path.split(os.path.join(*dirs))
138+ return [os.path.join(dir, filename)
139+ for filename in os.listdir(os.path.abspath(dir))
140+ if filename[0] != '.' and fnmatch(filename, pattern)]
141+
142+setup(
143+ name = 'python-snippets',
144+ version = '1.0',
145+ description = 'Python example files for learning python.',
146+ long_description = "Lots of contributed code for educational use.",
147+ author = 'Jono Bacon',
148+ author_email = 'jono@ubuntu.com',
149+ url = 'https://code.launchpad.net/python-snippets',
150+ platforms = 'any',
151+ license = 'GPLv2',
152+ data_files = [
153+ ( 'share/python-snippets/appindicator', listfiles( 'appindicator', '*' ) ),
154+ ( 'share/python-snippets/bzrlib', listfiles( 'bzrlib', '*' ) ),
155+ ( 'share/python-snippets/cairo', listfiles( 'cairo', '*' ) ),
156+ ( 'share/python-snippets/clutter', listfiles( 'clutter', '*' ) ),
157+ ( 'share/python-snippets/dbus', listfiles( 'dbus', '*' ) ),
158+ ( 'share/python-snippets/desktopcouch', listfiles( 'desktopcouch', '*' ) ),
159+ ( 'share/python-snippets/feedparser', listfiles( 'feedparser', '*' ) ),
160+ ( 'share/python-snippets/gio', listfiles( 'gio', '*' ) ),
161+ ( 'share/python-snippets/gstreamer', listfiles( 'gstreamer', '*' ) ),
162+ ( 'share/python-snippets/gtkspell', listfiles( 'gtkspell', '*' ) ),
163+ ( 'share/python-snippets/gwibber', listfiles( 'gwibber', '*' ) ),
164+ ( 'share/python-snippets/launchpadlib', listfiles( 'launchpadlib', '*' ) ),
165+ ( 'share/python-snippets/notify-osd', listfiles( 'notify-osd', '*' ) ),
166+ ( 'share/python-snippets/os', listfiles( 'os', '*' ) ),
167+ ( 'share/python-snippets/patterns', listfiles( 'patterns', '*' ) ),
168+ ( 'share/python-snippets/pygtk', listfiles( 'pygtk', '*' ) ),
169+ ( 'share/python-snippets/pygtksourceview', listfiles( 'pygtksourceview', '*' ) ),
170+ ( 'share/python-snippets/pykde4', listfiles( 'pykde4', '*' ) ),
171+ ( 'share/python-snippets/pyqt4', listfiles( 'pyqt4', '*' ) ),
172+ ( 'share/python-snippets/pythoncore', listfiles( 'pythoncore', '*' ) ),
173+ ( 'share/python-snippets/pythonvte', listfiles( 'pythonvte', '*' ) ),
174+ ( 'share/python-snippets/tarfile', listfiles( 'tarfile', '*' ) ),
175+ ( 'share/python-snippets/webkit', listfiles( 'webkit', '*' ) ),
176+ ( 'share/python-snippets/unittest', listfiles( 'unittest', '*' ) ),
177+ ( 'share/python-snippets/zeitgeist', listfiles( 'zeitgeist', '*' ) ),
178+ ],
179+ )
180+

Subscribers

People subscribed via source and target branches