Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Commit

Permalink
Added plugin metadata and bumped versions
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Apr 4, 2012
1 parent 846da6d commit 279030f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
5 changes: 5 additions & 0 deletions sentry_phabricator/__init__.py
Expand Up @@ -6,3 +6,8 @@
:license: BSD, see LICENSE for more details.
"""

try:
VERSION = __import__('pkg_resources') \
.get_distribution('sentry-phabricator').version
except Exception, e:
VERSION = 'unknown'
11 changes: 9 additions & 2 deletions sentry_phabricator/models.py
Expand Up @@ -10,12 +10,14 @@
from django.core.context_processors import csrf
from django.core.urlresolvers import reverse
from django.utils.safestring import mark_safe
from django.utils.translation import ugettext_lazy as _

from sentry.models import GroupMeta
from sentry.plugins import Plugin, register

import httplib
import phabricator
import sentry_phabricator
import urlparse


Expand All @@ -27,7 +29,7 @@ class ManiphestTaskForm(forms.Form):


class PhabricatorOptionsForm(forms.Form):
host = forms.URLField(help_text="e.g. http://secure.phabricator.org")
host = forms.URLField(help_text=_("e.g. http://secure.phabricator.org"))
username = forms.CharField(widget=forms.TextInput(attrs={'class': 'span9'}))
certificate = forms.CharField(widget=forms.Textarea(attrs={'class': 'span9'}))

Expand All @@ -51,7 +53,12 @@ def clean(self):

@register
class CreateManiphestTask(Plugin):
title = 'Phabricator'
author = 'DISQUS'
author_url = 'https://github.com/disqus/sentry-phabricator'
version = sentry_phabricator.VERSION

slug = 'phabricator'
title = _('Phabricator')
conf_title = 'Phabricator'
conf_key = 'phabricator'
project_conf_form = PhabricatorOptionsForm
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -17,14 +17,14 @@
]

install_requires = [
'sentry>=2.9.0',
'sentry>=3.8.0',
'phabricator>=0.1.1',
# https://github.com/disqus/python-phabricator/zipball/master
]

setup(
name='sentry-phabricator',
version='0.5.2',
version='0.5.3',
author='David Cramer',
author_email='dcramer@gmail.com',
url='http://github.com/dcramer/sentry-phabricator',
Expand Down

0 comments on commit 279030f

Please sign in to comment.