From acb3cce1d617c6f9f7a12df51c0cfbff29a384bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Sat, 29 Nov 2014 11:07:06 -0600 Subject: [PATCH 1/3] Changes on snapshot 4; audio uploader fixes --- src/application.py | 8 ++++---- src/extra/AudioUploader/gui.py | 4 ++-- src/extra/autocompletionUsers/wx_settings.py | 2 +- src/gui/dialogs/configuration.py | 2 +- src/gui/dialogs/message.py | 2 +- src/main.py | 1 + src/setup.py | 2 +- 7 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/application.py b/src/application.py index 400182d3..cccec26b 100644 --- a/src/application.py +++ b/src/application.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- name = 'TW Blue' -snapshot = False +snapshot = True if snapshot == False: version = "0.48" update_url = 'http://twblue.com.mx/updates/tw_blue.json' @@ -8,13 +8,13 @@ else: version = "4" update_url = 'http://twblue.com.mx/updates/snapshots.json' author = u"Manuel Cortéz" -authorEmail = "info@twblue.com.mx" +authorEmail = "manuel@manuelcortez.net" copyright = u"copyright (C) 2013-2014, Manuel cortéz" description = u"TW Blue is an app designed to use Twitter in a simple and fast way and avoiding, as far as possible, the consumtion of excessive resources of the machine where it’s running. With this app you’ll have access to most twitter features." translators = [u"Bryner Villalobos (English)", u"Mohammed Al Shara (Arabic)", u"Salva Doménech, Juan Carlos Rivilla(Catalan)", u"Manuel cortéz(Spanish)", u"Sukil Etxenike Arizaleta(Basque)", u"Jani Kinnunen(finnish)", u"Javier Currás, José Manuel Delicado, Alba Quinteiro(Galician)", u"Robert Osztolykan(Hungarian)", u"Paweł Masarczyk(Polish)", u"Odenilton Júnior Santos(Portuguese)", u"Alexander Jaszyn(Russian)", u"Burak (Turkish)"] url = u"http://twblue.com.mx" -#report_bugs_url = "http://twblue.com.mx/errores/api/soap/mantisconnect.php?wsdl" +report_bugs_url = "http://twblue.com.mx/bugs/api/soap/mantisconnect.php?wsdl" # Tokens app_key = '8pDLbyOW3saYnvSZ4uLFg' -app_secret = 'YsgdrzY9B4yyYvYsyee78rKI3GshjHpenVS9LnFJXY' \ No newline at end of file +app_secret = 'YsgdrzY9B4yyYvYsyee78rKI3GshjHpenVS9LnFJXY' \ No newline at end of file diff --git a/src/extra/AudioUploader/gui.py b/src/extra/AudioUploader/gui.py index ec21dc88..eaacd59f 100644 --- a/src/extra/AudioUploader/gui.py +++ b/src/extra/AudioUploader/gui.py @@ -68,8 +68,8 @@ class audioDialog(wx.Dialog): services = [] if config.main["services"]["dropbox_token"] != "": services.append("Dropbox") - service.append("TwUp") - services.append("SNDUp") + services.append("TwUp") + services.append("SNDUp") return services def onPause(self, ev): diff --git a/src/extra/autocompletionUsers/wx_settings.py b/src/extra/autocompletionUsers/wx_settings.py index 03e99c82..0add21f8 100644 --- a/src/extra/autocompletionUsers/wx_settings.py +++ b/src/extra/autocompletionUsers/wx_settings.py @@ -3,7 +3,7 @@ import wx class autocompletionSettingsDialog(wx.Dialog): def __init__(self): - super(autocompletionSettingsDialog, self).__init__(parent=None, id=-1, title=_(u"Autocompletion settings")) + super(autocompletionSettingsDialog, self).__init__(parent=None, id=-1, title=_(u"Autocomplete users’ settings")) panel = wx.Panel(self) sizer = wx.BoxSizer(wx.VERTICAL) self.followers_buffer = wx.CheckBox(panel, -1, _(u"Add users from followers buffer")) diff --git a/src/gui/dialogs/configuration.py b/src/gui/dialogs/configuration.py index ff9a5741..95bc12c1 100644 --- a/src/gui/dialogs/configuration.py +++ b/src/gui/dialogs/configuration.py @@ -51,7 +51,7 @@ class general(wx.Panel): langBox.Add(language, 0, wx.ALL, 5) langBox.Add(self.language, 0, wx.ALL, 5) sizer.Add(langBox, 0, wx.ALL, 5) - self.au = wx.Button(self, -1, u"Configure autocompltion") + self.au = wx.Button(self, -1, _(u"Set the autocomplete function")) # self.Bind(wx.EVT_BUTTON, self.autocompletion, au) self.ask_at_exit = wx.CheckBox(self, -1, _(U"ask before exiting TwBlue?")) self.ask_at_exit.SetValue(config.main["general"]["ask_at_exit"]) diff --git a/src/gui/dialogs/message.py b/src/gui/dialogs/message.py index 3a2ae1f5..c4d670b7 100644 --- a/src/gui/dialogs/message.py +++ b/src/gui/dialogs/message.py @@ -315,7 +315,7 @@ class reply(tweet): super(reply, self).__init__(message, title, text, parent) self.in_reply_to = parent.db.settings[parent.name_buffer][parent.list.get_selected()]["id"] self.text.SetInsertionPoint(len(self.text.GetValue())) - self.mentionAll = wx.Button(self, -1, _(u"Mention to all"), size=wx.DefaultSize) + self.mentionAll = wx.Button(self, -1, _(u"Mention &to all"), size=wx.DefaultSize) self.mentionAll.Disable() self.mentionAll.Bind(wx.EVT_BUTTON, self.mentionAllUsers) self.buttonsBox1.Add(self.mentionAll, 0, wx.ALL, 5) diff --git a/src/main.py b/src/main.py index 7cf5f49c..18c65793 100644 --- a/src/main.py +++ b/src/main.py @@ -42,6 +42,7 @@ if hasattr(sys, 'frozen'): sys.stdout = open(paths.logs_path("stdout.log"), 'w') app = wx.App() +#app = wx.App(redirect=True, useBestVisual=True, filename=paths.logs_path('tracebacks.log')) configured = False configs = [] for i in os.listdir(paths.config_path()): diff --git a/src/setup.py b/src/setup.py index 2b7eed40..e4c02dde 100644 --- a/src/setup.py +++ b/src/setup.py @@ -34,7 +34,7 @@ def get_architecture_files(): ("Microsoft.VC90.MFC", glob("../windows-dependencies/x86/Microsoft.VC90.MFC/*")),] elif platform.architecture()[0][:2] == "64": return [ - ("", ["../windows-dependencies/x64/oggenc2.exe", "../windows-dependencies/x86/bootstrap.exe"]), + ("", ["../windows-dependencies/x64/oggenc2.exe", "../windows-dependencies/x64/bootstrap.exe"]), ("Microsoft.VC90.CRT", glob("../windows-dependencies/x64/Microsoft.VC90.CRT/*")), ("Microsoft.VC90.MFC", glob("../windows-dependencies/x64/Microsoft.VC90.MFC/*")),] From 94dc083650df78dd7d3525a0a815eaa9af059fa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Sat, 29 Nov 2014 11:09:33 -0600 Subject: [PATCH 2/3] Windows-dependencies fix --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 57076356..964ff7f9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ *.pyc *~ -windows-dependencies/* +#windows-dependencies/* src/build/ src/dist/ src/config/ From 88e0fbb53108d67f50c67041077be259aa3180e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Sat, 29 Nov 2014 11:29:22 -0600 Subject: [PATCH 3/3] Updated readmes --- README.md | 55 +++++++++++++++++++++++++++++++++++++++++- readme.windows.txt | 60 ---------------------------------------------- 2 files changed, 54 insertions(+), 61 deletions(-) delete mode 100644 readme.windows.txt diff --git a/README.md b/README.md index 291f71b6..b4aee675 100644 --- a/README.md +++ b/README.md @@ -15,4 +15,57 @@ TW Blue is an app designed to use Twitter in a simple and fast way and avoiding, * Play various file and URL types which contain audio * and more! -See the [TWBlue's webpage](http://twblue.com.mx) for more details. \ No newline at end of file +See the [TWBlue's webpage](http://twblue.com.mx) for more details. + +## Using TWBlue from sources + +This document describes how to run tw blue from source, and, after that, how to build a binary version, which doesn't need Python and the other dependencies to run. + +### Required dependencies. + +The following dependencies need to be installed in your system. If you want to build tw blue for 32-bit versions of Windows, you will find the required software in the x86 folder, inside windows-dependencies directory. If you want to build tw blue for 64-bit windows versions, use the x64 folder. + +In this document you will also find links to each dependency website. + +If you want to build manually some of the following libraries, you need Microsoft Visual studio 2008 professional. + +Dependencies list: + +* [Python,](http://python.org) version 2.7.8 +* [wxPython](http://www.wxpython.org) for Python 2.7, version 3.0.0 (2.9.5 to avoid problems in windows xp) +* [Python windows extensions (pywin32)](http://www.sourceforge.net/projects/pywin32/) for python 2.7, build 218 +* [ConfigObj,](http://www.voidspace.org.uk/python/configobj.html) version 4.7.2 +* [oauthlib](https://pypi.python.org/pypi/oauthlib/0.6.1) 0.6.1 +* [Pycurl](http://pycurl.sourceforge.net) 7.19.3.1 for Python 2.7: [32-bit downloads,](https://pypi.python.org/pypi/pycurl/7.19.3.1) [64-bit downloads](http://www.lfd.uci.edu/~gohlke/pythonlibs/) +* [Requests](http://www.python-requests.org/en/latest/) 2.2.1: [Recommended download site](https://pypi.python.org/pypi/requests/2.2.1) +* [Requests-oauthlib](https://github.com/requests/requests-oauthlib) 0.4.0 +* [Suds](https://fedorahosted.org/suds) 0.4: [Recommended download site](https://pypi.python.org/pypi/suds/0.4) +* Bootstrap 1.2.1: included in dependencies directory. +Copy the bootstrap.exe file corresponding to the desired platform in the windows folder, inside this repository. +This dependency has been built using pure basic 4.61. Its source can be found at http://hg.q-continuum.net/updater +* [oggenc2.exe,](http://www.rarewares.org/ogg-oggenc.php) version 2.87 +Copy the oggenc2.exe file corresponding to the desired platform in the windows folder, inside this repository. +* Visual C++ 2008 dlls, included in vcredist-x86.7z and vcredist-x64.7z: +Extract the file corresponding to your platform to the src folder. + +If you want to build the binary version: + +* [Py2exe](http://www.sourceforge.net/projects/py2exe/) for Python 2.7, version 0.6.9 +* [Setuptools](https://pypi.python.org/pypi/setuptools) 2.1 +- [7-zip](http://7-zip.org) + +### How to run tw blue from source + +Run the file main.py located in the src folder. If you have a x64 system, you can install both 32-bit and 64-bit python versions, and test tw blue in these platforms. + +### How to build a binary version + +You must type the following command. In this example, we will assume that python is the path to the python executable (x86 or x64) and that you have navigated to the src directory: + + python setup.py py2exe + + You will find the binary version in the dist directory. You can compress this folder using 7-zip and you will get the zip version. + +### How to generate a translation template + +You must run the gen_pot.bat file, located in the tools directory. Your python installation should be in your path environment variable. The pot file will appear in the tools directory too. \ No newline at end of file diff --git a/readme.windows.txt b/readme.windows.txt deleted file mode 100644 index 88bd5aed..00000000 --- a/readme.windows.txt +++ /dev/null @@ -1,60 +0,0 @@ -tw blue build instructions for Windows - -Introduction. -This document describes how to run tw blue from source, and, after that, how to build a binary version, which doesn't need Python and the other dependencies to run. - -Required dependencies. -The following dependencies need to be installed in your system. If you want to build tw blue for 32-bit versions of Windows, you will find the required software in the x86 folder, inside dependencies directory. If you want to build tw blue for 64-bit windows versions, use the x64 folder. -In this document you will also find links to each dependency website. -If you want to build manually some of the following libraries, you need Microsoft Visual studio 2008 professional. - -Dependencies list: -- Python, version 2.7.8: http://www.python.org -- wxPython for Python 2.7, version 3.0.0 (2.9.5 to avoid problems in windows xp): http://www.wxpython.org --Python windows extensions (pywin32) for python 2.7, build 218: http://www.sourceforge.net/projects/pywin32/ -- ConfigObj, version 4.7.2: http://www.voidspace.org.uk/python/configobj.html -- oauthlib 0.6.1: https://pypi.python.org/pypi/oauthlib/0.6.1 -- Pycurl 7.19.3.1 for Python 2.7: -Official website: http://pycurl.sourceforge.net/ -32-bit downloads: https://pypi.python.org/pypi/pycurl/7.19.3.1 -64-bit downloads: http://www.lfd.uci.edu/~gohlke/pythonlibs/ -- Requests 2.2.1: -Official website: http://www.python-requests.org/en/latest/ -Recommended download site: https://pypi.python.org/pypi/requests/2.2.1 -- Requests-oauthlib 0.4.0: https://github.com/requests/requests-oauthlib -- Suds 0.4: -Official website: https://fedorahosted.org/suds -Recommended download site: https://pypi.python.org/pypi/suds/0.4 -- Twython 3.1.2: https://pypi.python.org/pypi/twython/3.1.2 -- Bootstrap 1.2.1: included in dependencies directory. -Copy the bootstrap.exe file corresponding to the desired platform in the windows folder, inside this repository. -This dependency has been built using pure basic 4.61. Its source can be found at http://hg.q-continuum.net/updater -- oggenc2.exe, version 2.87: http://www.rarewares.org/ogg-oggenc.php -Copy the oggenc2.exe file corresponding to the desired platform in the windows folder, inside this repository. --Visual C++ 2008 dlls, included in vcredist-x86.7z and vcredist-x64.7z: -Extract the file corresponding to your platform to the windows folder. - -To build the binary version: -- Py2exe for Python 2.7, version 0.6.9: http://www.sourceforge.net/projects/py2exe/ -- Setuptools 2.1: https://pypi.python.org/pypi/setuptools -- 7-zip: http://7-zip.org - -To generate the documentation: -- Pandoc, version 1.12.3: -Official website: http://johnmacfarlane.net/pandoc/ -Downloads site: http://code.google.com/p/pandoc/downloads/list - -How to run tw blue from source -Run the file main.py located in windows folder. If you have a x64 system, you can install both 32-bit and 64-bit python versions, and test tw blue in these platforms. - -How to generate the documentation -To generate quickly the documentation, a bash console is required. You can find bash in git for windows, cygwin, or MSYS, for example. -You must navigate to the tools directory and run the script gen_doc.sh. It will generate and place all html documentation in windows\documentation directory. - -How to build a binary version -You must type the following command. In the following example, we will assume that python is the path to the python executable (x86 or x64) and that you have navigated to the windows directory: -python setup.py py2exe -You will find the binary version in the dist directory. You can compress this folder using 7-zip and you will get the zip version. - -How to generate a translation template -You must run the gen_pot.bat file, located in the tools directory. Your python installation should be in your path environment variable. The pot file will appear in the tools directory too.