-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
86 lines (70 loc) · 2.72 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/usr/bin/env python
# Copyright (c) 2012, Fog Creek Software, Inc.
# Copyright (c) 2016-2018, Red Hat, Inc.
# License: 2-clause BSD; see LICENSE.txt for details
import setuptools
import re
from textwrap import dedent
from jirate import __version__
def requires(prefix=''):
"""Retrieve requirements from requirements.txt
"""
try:
reqs = map(str.strip, open(prefix + 'requirements.txt').readlines())
return [req for req in reqs if not re.match(r'\W', req)]
except Exception:
pass
return []
setuptools.setup(
name='jirate',
version=__version__,
install_requires=requires(),
license='BSD',
long_description=dedent("""\
Python JIRA & Trello CLI
--------------------------
This Python CLI is a high-level wrapper around the JIRA and Trollo modules.
Getting Started:
----------------
To use the CLI, install the package either by downloading the source and running
$ pip install -r requirements.txt
$ pip install .
or by using pip
$ pip install jirate
Documentation:
--------------
You can find documentation for the Python API at:
http://pypi.org/project/jira/
http://pypi.org/project/trollo/
Documentation for the JIRA API is at:
https://docs.atlassian.com/software/jira/docs/api/REST/latest/
Documentation for the Trello API at:
https://developers.trello.com/reference/
"""),
author='Red Hat',
author_email='[email protected]',
maintainer='Lon Hohberger',
maintainer_email='[email protected]',
packages=['jirate', 'jirate.schemas'],
package_data={'jirate.schemas': ['jirate/schemas/*']},
include_package_data=True,
url='http://github.com/lhh/jirate',
data_files=[("", ["LICENSE.txt"])],
entry_points={
'console_scripts': ['trolly = jirate.cli:main',
'jirate = jirate.jira_cli:main']},
classifiers=['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Natural Language :: English',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: POSIX :: BSD',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities'],
)