From 5dfa81f2f9abad4110beaf5afc5e9871232b2a2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Mart=C3=ADn?= Date: Sat, 18 Aug 2012 18:44:29 +0200 Subject: [PATCH] Update the relase (CHANGES and setup.py), and details after the pull request: * Little changes in the readme * Bad refactor the jste_plugins/autocomplete.py * pep8 and pyflakes errors --- CHANGES | 9 ++++++ README.rst | 29 ++++++++++++++++--- kate_plugins/jste_plugins/autocomplete.py | 4 +-- kate_plugins/kate_core_plugins.py | 4 +-- kate_plugins/kate_plugins.py | 2 +- .../pyte_plugins/autocomplete/autocomplete.py | 1 + setup.py | 14 ++++----- 7 files changed, 47 insertions(+), 16 deletions(-) diff --git a/CHANGES b/CHANGES index c03eb49..64c328a 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,15 @@ Releases ======== +0.1.6 (2012-08-18) +------------------- + +* Fix for autocomplete in the last KDE +* Restructuring of menus +* Refactor +* Thank you to `_ to the changes + + 0.1.5 (2012-07-09) ------------------- diff --git a/README.rst b/README.rst index 48ae568..ad363dc 100644 --- a/README.rst +++ b/README.rst @@ -13,11 +13,17 @@ Requirements ============ * `Pâté `_ + * Extra dependencies for extra and super nice features. Optional, but **very recomended** :) + * `pysmell `_ + * `pyplete `_ + * `pyflakes `_ + * `pyjslint `_ + * `simplejson `_ Installation ============ -* Install Pate +* `Install Pate `_: :: @@ -31,13 +37,28 @@ Installation export PYTHONPATH=$PYTHONPATH:/usr/share/apps/kate/plugins/pate/ #add the environment above to /etc/profile to make it stick on reboot -* Install Kate-plugins +* Install optional requirements: + +:: + + # Kate plugins has been tested with these versions but is very probably that works with later versions + pip install pysmell==0.7.3 pyplete==0.0.1 pep8==0.6.1 pyflakes==0.5.0 pyjslint==0.3.3 simplejson==2.6.1 + + +* Install Kate-plugins: + + + +:: + pip install Kate-plugins + ln -s /PATH/OF/THE/EGG/kate_plugins/ $(kde4-config --localprefix)/share/apps/kate/pate + +Or :: cd ~/build - pip install pysmell pyplete pep8 pyflakes pyjslint simplejson - git clone https://github.com/phrearch/Kate-plugins + git clone https://github.com/goinnn/Kate-plugins ln -s ~/build/Kate-plugins/kate_plugins/ $(kde4-config --localprefix)/share/apps/kate/pate * Startup Kate and enable Pate in Settings > Configure Kate > Plugins diff --git a/kate_plugins/jste_plugins/autocomplete.py b/kate_plugins/jste_plugins/autocomplete.py index a5fae01..a0707bd 100644 --- a/kate_plugins/jste_plugins/autocomplete.py +++ b/kate_plugins/jste_plugins/autocomplete.py @@ -27,7 +27,7 @@ class StaticJSCodeCompletionModel(AbstractJSONFileCodeCompletionModel): MIMETYPES = ['application/javascript', 'text/html'] - TITLE_AUTOCOMPLETATION = "JS Auto Complete" + TITLE_AUTOCOMPLETION = "JS Auto Complete" # generated with jste_plugins/autocomplete_js.gen FILE_PATH = 'jste_plugins/autocomplete_js.json' OPERATORS = ["=", " ", "[", "]", "(", ")", "{", "}", ":", ">", "<", @@ -46,7 +46,7 @@ def getLastExpression(self, line, operators=None): class StaticJQueryCompletionModel(StaticJSCodeCompletionModel): - TITLE_AUTOCOMPLETATION = "jQuery Auto Complete" + TITLE_AUTOCOMPLETION = "jQuery Auto Complete" FILE_PATH = 'jste_plugins/autocomplete_jquery.json' def __init__(self, *args, **kwargs): diff --git a/kate_plugins/kate_core_plugins.py b/kate_plugins/kate_core_plugins.py index 9d0652a..7ac61be 100644 --- a/kate_plugins/kate_core_plugins.py +++ b/kate_plugins/kate_core_plugins.py @@ -109,8 +109,8 @@ def findMenu(menu_parent_slug): if str(menu.objectName()) == menu_parent_slug: return menu return None - - + + def create_mainmenu(name_menu, slug_menu): window = kate.mainWindow() menubar = window.findChildren(QtGui.QMenuBar)[0] diff --git a/kate_plugins/kate_plugins.py b/kate_plugins/kate_plugins.py index 81cd72b..7c5bdcc 100644 --- a/kate_plugins/kate_plugins.py +++ b/kate_plugins/kate_plugins.py @@ -13,6 +13,7 @@ # # You should have received a copy of the GNU Lesser General Public License # along with this software. If not, see . + from jste_plugins.autocomplete import * from jste_plugins.jquery_plugins import * from jste_plugins.json_plugins import * @@ -46,4 +47,3 @@ pass from xhtml_plugins.xml_plugins import * - diff --git a/kate_plugins/pyte_plugins/autocomplete/autocomplete.py b/kate_plugins/pyte_plugins/autocomplete/autocomplete.py index ba7eda1..768dddf 100644 --- a/kate_plugins/pyte_plugins/autocomplete/autocomplete.py +++ b/kate_plugins/pyte_plugins/autocomplete/autocomplete.py @@ -35,6 +35,7 @@ pyplete = None python_path = [] + class PythonCodeCompletionModel(AbstractCodeCompletionModel): TITLE_AUTOCOMPLETION = "Python Auto Complete" diff --git a/setup.py b/setup.py index e10db99..9119ed7 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ def read(*rnames): setup( name='Kate-plugins', - version="0.1.5", + version="0.1.6", description="Plugins to Kate editor to develop faster python projects, django projects and something of javascript", long_description=(read('README.rst') + '\n\n' + read('CHANGES')), author="Pablo Martin", @@ -40,12 +40,12 @@ def read(*rnames): "Topic :: Software Development", ], install_requires=[ - "pysmell ==0.7.3", - "pep8 ==0.6.1", - "pyflakes ==0.5.0", - "pyjslint ==0.3.3", - "pyplete >= 0.0.1", - "simplejson" + "pysmell==0.7.3", + "pep8==0.6.1", + "pyflakes==0.5.0", + "pyjslint==0.3.3", + "pyplete==0.0.1", + "simplejson==2.6.1" ], packages=('kate_plugins', ), keywords="kate,pate,plugins,kate plugins,pate plugins,python,autocomplete,autocomplete python,django,jquery,js,checker,pep8,pyflakes,jslint",