-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
75 lines (61 loc) · 2.28 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
#!/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 trollo 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='trollo',
version=__version__,
install_requires=requires(),
license='BSD',
long_description=dedent("""\
Python Trello API Wrapper
--------------------------
This Python API is simply a wrapper around the Trello API.
Getting Started:
----------------
To use the Trello API, install the package either by downloading the source and running
$ python setup.py install
or by using pip
$ pip install trollo
Documentation:
--------------
You can find documentation for the Python API at:
http://pypi.org/project/trollo/
And 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=['trollo'],
url='http://github.com/lhh/trollo',
data_files=[("", ["LICENSE.txt"])],
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'],
)