##// END OF EJS Templates
add IPython.version_info...
MinRK -
Show More
@@ -1,86 +1,87 b''
1 1 # encoding: utf-8
2 2 """
3 3 IPython: tools for interactive and parallel computing in Python.
4 4
5 5 http://ipython.org
6 6 """
7 7 #-----------------------------------------------------------------------------
8 8 # Copyright (c) 2008-2011, IPython Development Team.
9 9 # Copyright (c) 2001-2007, Fernando Perez <fernando.perez@colorado.edu>
10 10 # Copyright (c) 2001, Janko Hauser <jhauser@zscout.de>
11 11 # Copyright (c) 2001, Nathaniel Gray <n8gray@caltech.edu>
12 12 #
13 13 # Distributed under the terms of the Modified BSD License.
14 14 #
15 15 # The full license is in the file COPYING.txt, distributed with this software.
16 16 #-----------------------------------------------------------------------------
17 17
18 18 #-----------------------------------------------------------------------------
19 19 # Imports
20 20 #-----------------------------------------------------------------------------
21 21 from __future__ import absolute_import
22 22
23 23 import os
24 24 import sys
25 25
26 26 #-----------------------------------------------------------------------------
27 27 # Setup everything
28 28 #-----------------------------------------------------------------------------
29 29
30 30 # Don't forget to also update setup.py when this changes!
31 31 if sys.version[0:3] < '2.6':
32 32 raise ImportError('Python Version 2.6 or above is required for IPython.')
33 33
34 34 # Make it easy to import extensions - they are always directly on pythonpath.
35 35 # Therefore, non-IPython modules can be added to extensions directory.
36 36 # This should probably be in ipapp.py.
37 37 sys.path.append(os.path.join(os.path.dirname(__file__), "extensions"))
38 38
39 39 #-----------------------------------------------------------------------------
40 40 # Setup the top level names
41 41 #-----------------------------------------------------------------------------
42 42
43 43 from .config.loader import Config
44 44 from .core import release
45 45 from .core.application import Application
46 46 from .frontend.terminal.embed import embed
47 47
48 48 from .core.error import TryNext
49 49 from .core.interactiveshell import InteractiveShell
50 50 from .testing import test
51 51 from .utils.sysinfo import sys_info
52 52 from .utils.frame import extract_module_locals
53 53
54 54 # Release data
55 55 __author__ = ''
56 56 for author, email in release.authors.itervalues():
57 57 __author__ += author + ' <' + email + '>\n'
58 58 __license__ = release.license
59 59 __version__ = release.version
60 version_info = release.version_info
60 61
61 62 def embed_kernel(module=None, local_ns=None, **kwargs):
62 63 """Embed and start an IPython kernel in a given scope.
63 64
64 65 Parameters
65 66 ----------
66 67 module : ModuleType, optional
67 68 The module to load into IPython globals (default: caller)
68 69 local_ns : dict, optional
69 70 The namespace to load into IPython user namespace (default: caller)
70 71
71 72 kwargs : various, optional
72 73 Further keyword args are relayed to the KernelApp constructor,
73 74 allowing configuration of the Kernel. Will only have an effect
74 75 on the first embed_kernel call for a given process.
75 76
76 77 """
77 78
78 79 (caller_module, caller_locals) = extract_module_locals(1)
79 80 if module is None:
80 81 module = caller_module
81 82 if local_ns is None:
82 83 local_ns = caller_locals
83 84
84 85 # Only import .zmq when we really need it
85 86 from .zmq.ipkernel import embed_kernel as real_embed_kernel
86 87 real_embed_kernel(module=module, local_ns=local_ns, **kwargs)
@@ -1,147 +1,148 b''
1 1 # -*- coding: utf-8 -*-
2 2 """Release data for the IPython project."""
3 3
4 4 #-----------------------------------------------------------------------------
5 5 # Copyright (c) 2008, IPython Development Team.
6 6 # Copyright (c) 2001, Fernando Perez <fernando.perez@colorado.edu>
7 7 # Copyright (c) 2001, Janko Hauser <jhauser@zscout.de>
8 8 # Copyright (c) 2001, Nathaniel Gray <n8gray@caltech.edu>
9 9 #
10 10 # Distributed under the terms of the Modified BSD License.
11 11 #
12 12 # The full license is in the file COPYING.txt, distributed with this software.
13 13 #-----------------------------------------------------------------------------
14 14
15 15 # Name of the package for release purposes. This is the name which labels
16 16 # the tarballs and RPMs made by distutils, so it's best to lowercase it.
17 17 name = 'ipython'
18 18
19 19 # IPython version information. An empty _version_extra corresponds to a full
20 20 # release. 'dev' as a _version_extra string means this is a development
21 21 # version
22 22 _version_major = 0
23 23 _version_minor = 14
24 _version_micro = '' # use '' for first of series, number for 1 and above
24 _version_micro = 0 # use 0 for first of series, number for 1 and above
25 25 _version_extra = 'dev'
26 26 #_version_extra = 'rc1'
27 27 # _version_extra = '' # Uncomment this for full releases
28 28
29 29 # Construct full version string from these.
30 30 _ver = [_version_major, _version_minor]
31 31 if _version_micro:
32 32 _ver.append(_version_micro)
33 33 if _version_extra:
34 34 _ver.append(_version_extra)
35 35
36 36 __version__ = '.'.join(map(str, _ver))
37 37
38 38 version = __version__ # backwards compatibility name
39 version_info = (_version_major, _version_minor, _version_micro, _version_extra)
39 40
40 41 description = "IPython: Productive Interactive Computing"
41 42
42 43 long_description = \
43 44 """
44 45 IPython provides a rich toolkit to help you make the most out of using Python
45 46 interactively. Its main components are:
46 47
47 48 * Powerful interactive Python shells (terminal- and Qt-based).
48 49 * A web-based interactive notebook environment with all shell features plus
49 50 support for embedded figures, animations and rich media.
50 51 * Support for interactive data visualization and use of GUI toolkits.
51 52 * Flexible, embeddable interpreters to load into your own projects.
52 53 * A high-performance library for high level and interactive parallel computing
53 54 that works in multicore systems, clusters, supercomputing and cloud scenarios.
54 55
55 56 The enhanced interactive Python shells have the following main features:
56 57
57 58 * Comprehensive object introspection.
58 59
59 60 * Input history, persistent across sessions.
60 61
61 62 * Caching of output results during a session with automatically generated
62 63 references.
63 64
64 65 * Extensible tab completion, with support by default for completion of python
65 66 variables and keywords, filenames and function keywords.
66 67
67 68 * Extensible system of 'magic' commands for controlling the environment and
68 69 performing many tasks related either to IPython or the operating system.
69 70
70 71 * A rich configuration system with easy switching between different setups
71 72 (simpler than changing $PYTHONSTARTUP environment variables every time).
72 73
73 74 * Session logging and reloading.
74 75
75 76 * Extensible syntax processing for special purpose situations.
76 77
77 78 * Access to the system shell with user-extensible alias system.
78 79
79 80 * Easily embeddable in other Python programs and GUIs.
80 81
81 82 * Integrated access to the pdb debugger and the Python profiler.
82 83
83 84 The parallel computing architecture has the following main features:
84 85
85 86 * Quickly parallelize Python code from an interactive Python/IPython session.
86 87
87 88 * A flexible and dynamic process model that be deployed on anything from
88 89 multicore workstations to supercomputers.
89 90
90 91 * An architecture that supports many different styles of parallelism, from
91 92 message passing to task farming.
92 93
93 94 * Both blocking and fully asynchronous interfaces.
94 95
95 96 * High level APIs that enable many things to be parallelized in a few lines
96 97 of code.
97 98
98 99 * Share live parallel jobs with other users securely.
99 100
100 101 * Dynamically load balanced task farming system.
101 102
102 103 * Robust error handling in parallel code.
103 104
104 105 The latest development version is always available from IPython's `GitHub
105 106 site <http://github.com/ipython>`_.
106 107 """
107 108
108 109 license = 'BSD'
109 110
110 111 authors = {'Fernando' : ('Fernando Perez','fperez.net@gmail.com'),
111 112 'Janko' : ('Janko Hauser','jhauser@zscout.de'),
112 113 'Nathan' : ('Nathaniel Gray','n8gray@caltech.edu'),
113 114 'Ville' : ('Ville Vainio','vivainio@gmail.com'),
114 115 'Brian' : ('Brian E Granger', 'ellisonbg@gmail.com'),
115 116 'Min' : ('Min Ragan-Kelley', 'benjaminrk@gmail.com'),
116 117 'Thomas' : ('Thomas A. Kluyver', 'takowl@gmail.com'),
117 118 'Jorgen' : ('Jorgen Stenarson', 'jorgen.stenarson@bostream.nu'),
118 119 'Matthias' : ('Matthias Bussonnier', 'bussonniermatthias@gmail.com'),
119 120 }
120 121
121 122 author = 'The IPython Development Team'
122 123
123 124 author_email = 'ipython-dev@scipy.org'
124 125
125 126 url = 'http://ipython.org'
126 127
127 128 download_url = 'https://github.com/ipython/ipython/downloads'
128 129
129 130 platforms = ['Linux','Mac OSX','Windows XP/2000/NT/Vista/7']
130 131
131 132 keywords = ['Interactive','Interpreter','Shell','Parallel','Distributed',
132 133 'Web-based computing', 'Qt console', 'Embedding']
133 134
134 135 classifiers = [
135 136 'Intended Audience :: Developers',
136 137 'Intended Audience :: Science/Research',
137 138 'License :: OSI Approved :: BSD License',
138 139 'Programming Language :: Python',
139 140 'Programming Language :: Python :: 2',
140 141 'Programming Language :: Python :: 2.6',
141 142 'Programming Language :: Python :: 2.7',
142 143 'Programming Language :: Python :: 3',
143 144 'Programming Language :: Python :: 3.1',
144 145 'Programming Language :: Python :: 3.2',
145 146 'Topic :: System :: Distributed Computing',
146 147 'Topic :: System :: Shells'
147 148 ]
General Comments 0
You need to be logged in to leave comments. Login now