-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
61 lines (52 loc) · 2 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import functools
import pkg_resources
from setuptools import setup, find_packages
from pip.req import parse_requirements as parse_reqs
# Compatibility with older versions of pip
pip_dist = pkg_resources.get_distribution('pip')
pip_version = tuple(map(int, pip_dist.version.split('.')))
# Use a base partial that will be updated depending on the version of pip
parse_requirements = functools.partial(parse_reqs, options=None)
if pip_version < (1, 2):
# pip versions before 1.2 require an options keyword for using it outside
# of invoking a pip shell command
from pip.baseparser import parser
parse_requirements.keywords['options'] = parser.parse_args()[0]
if pip_version >= (1, 5):
# pip 1.5 introduced a session kwarg that is required in later versions
from pip.download import PipSession
parse_requirements.keywords['session'] = PipSession()
setup(
name='helga-jira',
version='0.1.4',
description=("A helga plugin that can be used to store responses "
"that can be returned from a question"),
classifiers=[
'Development Status :: 4 - Beta',
'Topic :: Communications :: Chat :: Internet Relay Chat',
'Framework :: Twisted',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Libraries :: Python Modules',
],
keywords='helga jira',
author="Shaun Duncan",
author_email="[email protected]",
url="https://github.com/shaunduncan/helga-jira",
packages=find_packages(),
py_modules=['helga_jira'],
include_package_data=True,
install_requires=[
str(req.req) for req in parse_requirements('requirements.txt')
],
zip_safe=True,
entry_points=dict(
helga_plugins=[
'jira = helga_jira:jira',
],
),
)