Skip to content

Commit

Permalink
Update the relase (CHANGES and setup.py), and details after the pull
Browse files Browse the repository at this point in the history
request:
 * Little changes in the readme
 * Bad refactor the jste_plugins/autocomplete.py
 * pep8 and pyflakes errors
  • Loading branch information
goinnn committed Aug 18, 2012
1 parent 1f29056 commit 5dfa81f
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 16 deletions.
9 changes: 9 additions & 0 deletions 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 <https://github.com/phrearch Jeroen van Veen>`_ to the changes


0.1.5 (2012-07-09)
-------------------

Expand Down
29 changes: 25 additions & 4 deletions README.rst
Expand Up @@ -13,11 +13,17 @@ Requirements
============

* `Pâté <https://github.com/pag/pate/>`_
* Extra dependencies for extra and super nice features. Optional, but **very recomended** :)
* `pysmell <http://pypi.python.org/pypi/pysmell>`_
* `pyplete <http://pypi.python.org/pypi/pyplete>`_
* `pyflakes <http://pypi.python.org/pypi/pyflakes>`_
* `pyjslint <http://pypi.python.org/pypi/pyjslint>`_
* `simplejson <http://pypi.python.org/pypi/simplejson>`_

Installation
============

* Install Pate
* `Install Pate <https://github.com/pag/pate/blob/master/INSTALL.txt>`_:

::

Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions kate_plugins/jste_plugins/autocomplete.py
Expand Up @@ -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 = ["=", " ", "[", "]", "(", ")", "{", "}", ":", ">", "<",
Expand All @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions kate_plugins/kate_core_plugins.py
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion kate_plugins/kate_plugins.py
Expand Up @@ -13,6 +13,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with this software. If not, see <http://www.gnu.org/licenses/>.

from jste_plugins.autocomplete import *
from jste_plugins.jquery_plugins import *
from jste_plugins.json_plugins import *
Expand Down Expand Up @@ -46,4 +47,3 @@
pass

from xhtml_plugins.xml_plugins import *

1 change: 1 addition & 0 deletions kate_plugins/pyte_plugins/autocomplete/autocomplete.py
Expand Up @@ -35,6 +35,7 @@
pyplete = None
python_path = []


class PythonCodeCompletionModel(AbstractCodeCompletionModel):

TITLE_AUTOCOMPLETION = "Python Auto Complete"
Expand Down
14 changes: 7 additions & 7 deletions setup.py
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit 5dfa81f

Please sign in to comment.