-
Notifications
You must be signed in to change notification settings - Fork 15
/
setup.py
59 lines (54 loc) · 1.7 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
#! /usr/bin/env python
import sys
try:
from setuptools import setup
have_setuptools = True
except ImportError:
from distutils.core import setup
have_setuptools = False
import bipython
VERSION = bipython.__version__
M_VERSION = VERSION[:VERSION.rfind('.')]
setup_kwargs = {
"version": VERSION,
"description": 'bipython: the boldly indiscriminate python interpreter',
"author": 'Paul Ivanov',
"author_email": '[email protected]',
"url": 'http://bipython.org/',
"download_url": "https://github.com/ivanov/bipython/zipball/" + M_VERSION,
"keywords": ["Interactive", "Interpreter", "Shell", "bpython", "ipython",
"urwid", ],
"classifiers": [
"License :: OSI Approved :: BSD License",
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Operating System :: OS Independent",
"Topic :: Software Development :: Interpreters",
"Topic :: Utilities",
],
"zip_safe": False,
"data_files": [("", ['LICENSE', 'README.md', 'README.rst']),],
}
if have_setuptools:
setup_kwargs['install_requires'] = [
'Pygments >= 1.6',
'urwid >= 1.1.1',
'bpython >= 0.12',
'pyzmq >= 2.1.11',
'ipython >= 1.0',
]
if __name__ == '__main__':
with open('README.rst') as f:
descr = f.read()
setup(
name='bipython',
packages=['bipython'],
entry_points={'console_scripts': [
'bipython = bipython:main',
'bipython%s = bipython:main' % sys.version_info.major
],},
long_description=descr,
**setup_kwargs
)