4 @bug In update desrcription stuff
13 import fake_py2deb as py2deb
18 __appname__ = constants.__app_name__
19 __description__ = "Touch screen enhanced interface to the GoogleVoice/GrandCentral phone service"
20 __author__ = "Ed Page"
21 __email__ = "eopage@byu.net"
22 __version__ = constants.__version__
23 __build__ = constants.__build__
26 * Sped up various login cases
27 * Added descriptions to the callback numbers
28 * Collapsed conversations in the messages tab
29 * UI Tweak: Added more login status notifications
30 * UI Tweak: When no characters are entered, you can't send a text
31 * UI Tweak: Switched to TreeView's using no selection to match Fremantle
32 * UI Tweak: Trying to consolidate dialogs by combining phone selection and SMS entry
33 * UI Tweak: Removed "Select" button from SMS Dialog
34 * Bug Fix: Expanded the types of the Enter key that are supported for going to full screen
35 * Bug Fix: Random people were reporting login issues
36 * Bug Fix: Hardened against issues with grabbing possible callback numbers
37 * Bug Fix: Fremantle GTK doesn't allow TreeView rows to be selected, so row-activated handlers have to read their path
38 * Bug Fix: Fremantle PyMaemo doesn't provide a function Mer PyMaemo does, created a hack to be workable on both
39 * Bug Fix: Once PyMaemo supports thumb button sizes, setting that for all of the random buttons
40 * Bug Fix: When debugging hildonization, dialogs weren't closing
41 * Bug Fix: Not properly hildonizing some code
42 * Debugging: Improved logging output
43 * Debugging: Printing page when can't get a callback number
46 * Fremantle Prep: Simplified menus in prep for no menu or the Fremantle App Menu
47 * Fremantle Prep: Implemented a work around for https://bugs.maemo.org/show_bug.cgi?id=4957
48 * Fremantle Prep: Switched to touch selectors for notification time, callback number, and contact addressbook
49 * Fremantle Prep: Making various widgets pannable rather than scrollable
50 * Fremantle Prep: CTRL-V added for paste for Dialpad
51 * Fremantle Prep: CTRL-Enter added for fullscreen
52 * UI Tweak: Phone selection and SMS Message dialogs now highlight the last message and are easier to scroll
53 * UI Tweak: Tweaked sizes of stuff on recent tab
54 * UI Tweak: Added notifcations for various things like login and dialing
55 * UI Tweak: Switch to accounts tab when logging in and callback is blank as a sublte hint to configure it
56 * UI Tweak: Switch to accounts tab on failed login to remind the user they are not logged in
57 * Packaging: Disables notifications on uninstall
58 * Packaging: Including a vastly improved py2deb for better packages (icons on package, etc)
59 * Debugging: Adding seperator between dialcentral launches in log
60 * Bug Fix: Made startup more error resistant
61 * Bug Fix: some dependencies for Diablo
62 * Bug Fix: Error on refreshing tabs when not logged in
63 * Bug Fix: #4471 Notification Checkbox Won't Stay Checked (hour roll over error)
64 * Bug Fix: Phone numbers in voicemails wouldn't appear
65 * Bug Fix: category for Fremantle/Diablo
66 * Bug Fix: needing to manually create "~/.dialcentral" due to earlier logging changes
67 * Bug Fix: dependencies for fremantle
68 * Bug Fix: Issues when trying to stack error messages
69 * Bug Fix: Python2.6 deprecates some stuff I did
70 * Bug Fix: On refreshing the Accounts tab, the callback number resets to the number from startup
73 * Contacts Tab remembers the last address book viewed on restart
74 * Applied some suggested changes for being more thumb friendly
75 * Messaging Dialog auto-scrolls to bottom
76 * Removed GrandCentral support
77 * Numbers can now be entered immediately, before login
78 * Bug Fix: Not clearing the entered number on sending an SMS
79 * Bug Fix: Disabling SMS button when logged off
80 * Bug Fix: Trying to make SMS and phone selection dialogs more readable
81 * Bug Fix: Adding some more thumb scrollbars
84 * "Back" button and tabs now visually indicate when they've entered a "hold" state
85 * Fixed the duplicate title on Maemo
86 * Removing some device connection observer code due to high bug to low benefit ratio
87 * Notification support
88 * Fixed a bug from 1.0.3 where once you refreshed a tab by holding on it, every tab would then be forced to refresh
91 * Holding down a tab for a second will now force a refresh
92 * Fixed a bug dealing with overzealously refreshing the contacts tab
93 * Finding some undescriptive errors and made them more descriptive
94 * Swapped the order GrandCentral and GoogleVoice appear in login window
95 * Fixed the "Recent" and "Message" tabs, google changed things on me again
99 * Random performance improvements
102 * Fixed a voicemail transcripts due to a GoogleVoice change
105 * Added names to the recent tab for GoogleVoice
109 * Display of names for messages tab
110 * Condensed messages/recent's date column
113 * Added columns to recent view and messages view to help seperate messages
114 * Attempted refreshing session on dial/sms send
116 * Minor bug fixes as usual
119 * Switched to Force Refresh for when wanting to check for more messages
120 * Removed timeouts that forced refreshes on various tabs
121 * Added support for a settings file, fairly primitive right now
122 * Fixed Maemo Support
123 * Lots of major and minor bug fixes
126 * Experimenting with the tabs being on the side
127 * Now the phone selector is used always, even if there is just one phone number
128 * Added a Messages Tab, which displays SMS and Voicemail messages
129 * Added option to send SMS messages
132 * Fixed a login issue due to Google changing their webpage
135 * Misc Bug fixes and experiments
138 * Removed the much disliked contact source ID
139 * Added saving of callback number when using GoogleVoice
140 * Got proper formatting on things ("&" rather than "&")
143 0.9.2 - "Two heads are better than one"
144 * Adding of UI to switch between GC and GV
145 * Minimized flashing the dial button between grayed out and not on startup
148 0.9.1 - "Get your hands off that"
149 * GoogleVoice Support, what a pain
150 * More flexible CSV support. It now checks the header row for what column name/number are in
151 * Experimenting with faster startup by caching PYC files with the package
152 * Fixing of some bad error handling
153 * More debug output for when people run into issues
155 0.9.0 - "Slick as snot"
156 * Caching of contacts
157 * Refactoring to make working with the code easier
158 * Filesystem backed contacts but currently only supporting a specific csv format
159 * Gracefully handle lack of connection and connection transitions
160 * Gracefully handle failed login
161 * A tiny bit better error reporting
163 0.8.3 - "Extras Love"
164 * Version bump fighting the extras autobuilder, I hope this works
166 0.8.2 - "Feed is for horses, so what about feedback?"
168 * many more smaller fixes
171 * Thumb scrollbars ( Kudos Khertan )
173 0.8.0 - "Spit and polish"
174 * Addressbook support
175 * threaded networking for better interactivity
176 * Hold down back to clear number
177 * Standard about dialog
178 * many more smaller fixes
182 __postinstall__ = """#!/bin/sh -e
184 gtk-update-icon-cache -f /usr/share/icons/hicolor
187 __preremove__ = """#!/bin/sh -e
189 python /usr/lib/dialcentral/alarm_handler.py -d || true
193 def find_files(path):
194 for root, dirs, files in os.walk(path):
196 if file.startswith("src-"):
197 fileParts = file.split("-")
198 unused, relPathParts, newName = fileParts[0], fileParts[1:-1], fileParts[-1]
199 assert unused == "src"
200 relPath = os.sep.join(relPathParts)
201 yield relPath, file, newName
204 def unflatten_files(files):
206 for relPath, oldName, newName in files:
209 d[relPath].append((oldName, newName))
213 def build_package(distribution):
215 os.chdir(os.path.dirname(sys.argv[0]))
219 py2deb.Py2deb.SECTIONS = py2deb.SECTIONS_BY_POLICY[distribution]
220 p = py2deb.Py2deb(__appname__)
221 p.description = __description__
222 p.upgradeDescription = __changelog__.split("\n\n", 1)[0]
223 p.author = __author__
226 p.depends = ", ".join([
227 "python2.6 | python2.5",
228 "python-gtk2 | python2.5-gtk2",
229 "python-xml | python2.5-xml",
230 "python-dbus | python2.5-dbus",
232 maemoSpecificDepends = ", python-osso | python2.5-osso, python-hildon | python2.5-hildon"
234 "debian": ", python-glade2",
235 "chinook": maemoSpecificDepends,
236 "diablo": maemoSpecificDepends,
237 "fremantle": maemoSpecificDepends + ", python-glade2",
238 "mer": maemoSpecificDepends + ", python-glade2",
240 p.recommends = ", ".join([
244 "chinook": "communication",
245 "diablo": "user/network",
246 "fremantle": "user/network",
247 "mer": "user/network",
251 p.distribution = "chinook diablo fremantle mer debian"
252 p.repository = "extras"
253 p.changelog = __changelog__
254 p.postinstall = __postinstall__
255 p.preremove = __preremove__
257 "debian": "26x26-dialcentral.png",
258 "chinook": "26x26-dialcentral.png",
259 "diablo": "26x26-dialcentral.png",
260 "fremantle": "64x64-dialcentral.png", # Fremantle natively uses 48x48
261 "mer": "64x64-dialcentral.png",
263 p["/usr/bin"] = [ "dialcentral.py" ]
264 for relPath, files in unflatten_files(find_files(".")).iteritems():
265 fullPath = "/usr/lib/dialcentral"
267 fullPath += os.sep+relPath
269 "|".join((oldName, newName))
270 for (oldName, newName) in files
272 p["/usr/share/applications/hildon"] = ["dialcentral.desktop"]
273 p["/usr/share/icons/hicolor/26x26/hildon"] = ["26x26-dialcentral.png|dialcentral.png"]
274 p["/usr/share/icons/hicolor/64x64/hildon"] = ["64x64-dialcentral.png|dialcentral.png"]
275 p["/usr/share/icons/hicolor/scalable/hildon"] = ["scale-dialcentral.png|dialcentral.png"]
279 version="%s-%s" % (__version__, __build__),
280 changelog=__changelog__,
286 print "Building for %s finished" % distribution
289 if __name__ == "__main__":
290 if len(sys.argv) > 1:
296 if optparse is not None:
297 parser = optparse.OptionParser()
298 (commandOptions, commandArgs) = parser.parse_args()
301 commandArgs = ["diablo"]
302 build_package(commandArgs[0])