forked from jsmits/github-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
51 lines (47 loc) · 1.64 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
import os
import sys
from setuptools import setup, find_packages
description = "A command-line interface to the GitHub Issues API v2."
cur_dir = os.path.dirname(__file__)
try:
long_description = open(os.path.join(cur_dir, 'README.rst')).read()
except:
long_description = description
# needed for importing github.version
sys.path.insert(0, os.path.join(cur_dir, 'src'))
from github.version import get_version
pkg_requires = ['setuptools', ]
# simplejson is included in the standard library since Python 2.6 as json, but
# unfortunately it is too old. We can use stdlib json with Python 2.7.
if sys.version_info[0] < 3 and sys.version_info[1] < 7:
pkg_requires.append('simplejson >= 2.0')
setup(
name = "github-cli",
version = get_version('short'),
url = 'http://packages.python.org/github-cli',
license = 'BSD',
description = description,
long_description = long_description,
author = 'Sander Smits',
author_email = '[email protected]',
packages = find_packages('src'),
package_dir = {'': 'src'},
install_requires = pkg_requires,
entry_points="""
[console_scripts]
ghi = github.issues:main
""",
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: BSD License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Unix',
'Operating System :: POSIX',
'Programming Language :: Python',
'Topic :: Software Development :: Bug Tracking',
],
test_suite = 'nose.collector',
)