-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathsetup.py
More file actions
56 lines (50 loc) · 1.56 KB
/
setup.py
File metadata and controls
56 lines (50 loc) · 1.56 KB
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
#! /usr/bin/env python
import sys
try:
from setuptools import setup
have_setuptools = True
except ImportError:
from distutils.core import setup
have_setuptools = False
if sys.version_info[0] >= 3:
import warnings
warnings.warn("bipython might not work in Python 3, I'll get to it soon")
VERSION = "0.1.1"
setup_kwargs = {
"version": VERSION + '.0',
"description": 'bipython: boldly indiscriminate python interpreter',
"author": 'Paul Ivanov',
"author_email": '[email protected]',
"url": 'http://bipython.org/',
"download_url": "https://github.com/ivanov/bipython/zipball/" + VERSION,
"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']),],
}
if have_setuptools:
setup_kwargs['install_requires'] = [
'Pygments >= 1.6',
'urwid >= 1.1.1',
'bpython >= 0.12',
'ipython >= 1.0',
]
if __name__ == '__main__':
with open('README.md') as f:
descr = f.read()
descr = descr[:descr.find('TODO')]
setup(
name='bipython',
packages=['bipython'],
entry_points={'console_scripts': ['bipython = bipython:main',],},
long_description=descr,
**setup_kwargs
)