From fa6a6a8dd8f86b71ec548c8031b69a90c0f13ba2 Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Tue, 6 May 2014 17:18:08 -0700 Subject: [PATCH] upgrade external wakatime package to v1.0.2 --- plugin/packages/wakatime/README.rst | 12 +++++++++--- plugin/packages/wakatime/setup.py | 9 +++------ plugin/packages/wakatime/wakatime/__init__.py | 6 ++++-- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/plugin/packages/wakatime/README.rst b/plugin/packages/wakatime/README.rst index 5e55ea2..804a49c 100644 --- a/plugin/packages/wakatime/README.rst +++ b/plugin/packages/wakatime/README.rst @@ -1,9 +1,9 @@ WakaTime ======== -Fully automatic time tracking for your text editor. +Fully automatic time tracking for programmers. -This is the common interface for the WakaTime api. You shouldn't need to directly use this package unless you are creating a new plugin. +This is the common interface for the WakaTime api. You shouldn't need to directly use this package unless you are creating a new plugin or your text editor's plugin asks you to install the wakatime-cli interface. Go to http://wakatime.com to install the plugin for your text editor. @@ -11,4 +11,10 @@ Go to http://wakatime.com to install the plugin for your text editor. Installation ------------ -https://wakatime.com/help/plugins/installing-plugins + pip install wakatime + + +Usage +----- + +https://wakatime.com/ diff --git a/plugin/packages/wakatime/setup.py b/plugin/packages/wakatime/setup.py index 0a305db..7d17375 100644 --- a/plugin/packages/wakatime/setup.py +++ b/plugin/packages/wakatime/setup.py @@ -11,13 +11,10 @@ setup( name='wakatime', version=VERSION, license='BSD 3 Clause', - description=' '.join([ - 'Action event appender for WakaTime, a time', - 'tracking api for text editors.', - ]), + description='Interface to the WakaTime api.', long_description=open('README.rst').read(), author='Alan Hamlett', - author_email='alan.hamlett@gmail.com', + author_email='alan@wakatime.com', url='https://github.com/wakatime/wakatime', packages=packages, package_dir={'wakatime': 'wakatime'}, @@ -28,7 +25,7 @@ setup( 'console_scripts': ['wakatime = wakatime.__init__:main'], }, classifiers=( - 'Development Status :: 3 - Alpha', + 'Development Status :: 5 - Production/Stable', 'Environment :: Console', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', diff --git a/plugin/packages/wakatime/wakatime/__init__.py b/plugin/packages/wakatime/wakatime/__init__.py index 1d4ee25..bf36c85 100644 --- a/plugin/packages/wakatime/wakatime/__init__.py +++ b/plugin/packages/wakatime/wakatime/__init__.py @@ -13,7 +13,7 @@ from __future__ import print_function __title__ = 'wakatime' -__version__ = '1.0.1' +__version__ = '1.0.2' __author__ = 'Alan Hamlett' __license__ = 'BSD' __copyright__ = 'Copyright 2013 Alan Hamlett' @@ -148,6 +148,8 @@ def parseArguments(argv): parser.add_argument('--plugin', dest='plugin', help='optional text editor plugin name and version '+ 'for User-Agent header') + parser.add_argument('--project', dest='project_name', + help='optional project name; will auto-discover by default') parser.add_argument('--key', dest='key', help='your wakatime api key; uses api_key from '+ '~/.wakatime.conf by default') @@ -313,7 +315,7 @@ def main(argv=None): project_name = None if project: branch = project.branch() - project_name = project.name() + project_name = args.project_name or project.name() if send_action( project=project_name,