##// END OF EJS Templates
Finished initial reworking and updating of setup.py and friends, including the MANIFEST.in. Everything seems...
Brian E Granger -
Show More
@@ -21,3 +21,4 b' __docformat__ = "restructuredtext en"'
21 21 # Distributed under the terms of the BSD License. The full license is in
22 22 # the file COPYING, distributed as part of this software.
23 23 #-------------------------------------------------------------------------------
24 No newline at end of file
@@ -23,12 +23,15 b' __docformat__ = "restructuredtext en"'
23 23 # Imports
24 24 #-------------------------------------------------------------------------------
25 25
26 try:
26 27 from twisted.application.service import IService
27 28 from IPython.kernel.controllerservice import ControllerService
28 29 from IPython.kernel.tests import multienginetest as met
29 30 from controllertest import IControllerCoreTestCase
30 31 from IPython.testing.util import DeferredTestCase
31
32 except ImportError:
33 pass
34 else:
32 35 class BasicControllerServiceTest(DeferredTestCase,
33 36 IControllerCoreTestCase):
34 37
@@ -15,7 +15,7 b' __docformat__ = "restructuredtext en"'
15 15 # Imports
16 16 #-------------------------------------------------------------------------------
17 17
18
18 try:
19 19 from twisted.python import components
20 20 from twisted.internet import reactor, defer
21 21 from twisted.spread import pb
@@ -36,7 +36,10 b' from IPython.kernel.tests.engineservicetest import \\'
36 36 IEngineCoreTestCase, \
37 37 IEngineSerializedTestCase, \
38 38 IEngineQueuedTestCase
39
39 except ImportError:
40 print "we got an error!!!"
41 pass
42 else:
40 43 class EngineFCTest(DeferredTestCase,
41 44 IEngineCoreTestCase,
42 45 IEngineSerializedTestCase,
@@ -23,6 +23,7 b' __docformat__ = "restructuredtext en"'
23 23 # Imports
24 24 #-------------------------------------------------------------------------------
25 25
26 try:
26 27 from twisted.internet import defer
27 28 from twisted.application.service import IService
28 29
@@ -33,8 +34,9 b' from IPython.kernel.tests.engineservicetest import \\'
33 34 IEngineSerializedTestCase, \
34 35 IEngineQueuedTestCase, \
35 36 IEnginePropertiesTestCase
36
37
37 except ImportError:
38 pass
39 else:
38 40 class BasicEngineServiceTest(DeferredTestCase,
39 41 IEngineCoreTestCase,
40 42 IEngineSerializedTestCase,
@@ -15,14 +15,16 b' __docformat__ = "restructuredtext en"'
15 15 # Imports
16 16 #-------------------------------------------------------------------------------
17 17
18 try:
18 19 from twisted.internet import defer
19 20 from IPython.testing.util import DeferredTestCase
20 21 from IPython.kernel.controllerservice import ControllerService
21 22 from IPython.kernel import multiengine as me
22 23 from IPython.kernel.tests.multienginetest import (IMultiEngineTestCase,
23 24 ISynchronousMultiEngineTestCase)
24
25
25 except ImportError:
26 pass
27 else:
26 28 class BasicMultiEngineTestCase(DeferredTestCase, IMultiEngineTestCase):
27 29
28 30 def setUp(self):
@@ -14,6 +14,7 b' __docformat__ = "restructuredtext en"'
14 14 # Imports
15 15 #-------------------------------------------------------------------------------
16 16
17 try:
17 18 from twisted.internet import defer, reactor
18 19
19 20 from IPython.kernel.fcutil import Tub, UnauthenticatedTub
@@ -25,8 +26,9 b' from IPython.kernel.tests.multienginetest import IFullSynchronousMultiEngineTest'
25 26 from IPython.kernel.multienginefc import IFCSynchronousMultiEngine
26 27 from IPython.kernel import multiengine as me
27 28 from IPython.kernel.clientconnector import ClientConnector
28
29
29 except ImportError:
30 pass
31 else:
30 32 class FullSynchronousMultiEngineTestCase(DeferredTestCase, IFullSynchronousMultiEngineTestCase):
31 33
32 34 def setUp(self):
@@ -15,6 +15,7 b' __docformat__ = "restructuredtext en"'
15 15 # Imports
16 16 #-------------------------------------------------------------------------------
17 17
18 try:
18 19 import zope.interface as zi
19 20 from twisted.trial import unittest
20 21 from IPython.testing.util import DeferredTestCase
@@ -26,7 +27,9 b' from IPython.kernel.newserialized import \\'
26 27 UnSerialized, \
27 28 SerializeIt, \
28 29 UnSerializeIt
29
30 except ImportError:
31 pass
32 else:
30 33 #-------------------------------------------------------------------------------
31 34 # Tests
32 35 #-------------------------------------------------------------------------------
@@ -16,6 +16,7 b' __docformat__ = "restructuredtext en"'
16 16 # Imports
17 17 #-------------------------------------------------------------------------------
18 18
19 try:
19 20 from twisted.internet import defer
20 21 from twisted.python import failure
21 22
@@ -25,7 +26,9 b' from IPython.testing.util import DeferredTestCase'
25 26 import IPython.kernel.pendingdeferred as pd
26 27 from IPython.kernel import error
27 28 from IPython.kernel.util import printer
28
29 except ImportError:
30 pass
31 else:
29 32
30 33 #-------------------------------------------------------------------------------
31 34 # Setup for inline and standalone doctests
@@ -15,6 +15,7 b' __docformat__ = "restructuredtext en"'
15 15 # Imports
16 16 #-------------------------------------------------------------------------------
17 17
18 try:
18 19 import time
19 20
20 21 from twisted.internet import defer
@@ -24,7 +25,9 b' from IPython.kernel import task, controllerservice as cs, engineservice as es'
24 25 from IPython.kernel.multiengine import IMultiEngine
25 26 from IPython.testing.util import DeferredTestCase
26 27 from IPython.kernel.tests.tasktest import ITaskControllerTestCase
27
28 except ImportError:
29 pass
30 else:
28 31 #-------------------------------------------------------------------------------
29 32 # Tests
30 33 #-------------------------------------------------------------------------------
@@ -14,6 +14,7 b' __docformat__ = "restructuredtext en"'
14 14 # Imports
15 15 #-------------------------------------------------------------------------------
16 16
17 try:
17 18 import time
18 19
19 20 from twisted.internet import defer, reactor
@@ -29,6 +30,9 b' from IPython.kernel.taskfc import IFCTaskController'
29 30 from IPython.kernel.util import printer
30 31 from IPython.kernel.tests.tasktest import ITaskControllerTestCase
31 32 from IPython.kernel.clientconnector import ClientConnector
33 except ImportError:
34 pass
35 else:
32 36
33 37 #-------------------------------------------------------------------------------
34 38 # Tests
@@ -8,6 +8,11 b' graft setupext'
8 8
9 9 graft IPython/UserConfig
10 10
11 graft IPython/kernel
12 graft IPython/config
13 graft IPython/testing
14 graft IPython/tools
15
11 16 graft doc
12 17 exclude doc/\#*
13 18 exclude doc/*.1
@@ -72,12 +72,7 b" if len(sys.argv) >= 2 and sys.argv[1] in ('sdist','bdist_rpm'):"
72 72
73 73 # List of things to be updated. Each entry is a triplet of args for
74 74 # target_update()
75 to_update = [ # The do_sphinx scripts builds html and pdf, so just one
76 # target is enough to cover all manual generation
77 ('doc/manual/ipython.pdf',
78 ['IPython/Release.py','doc/source/ipython.rst'],
79 "cd doc && python do_sphinx.py" ),
80
75 to_update = [
81 76 # FIXME - Disabled for now: we need to redo an automatic way
82 77 # of generating the magic info inside the rst.
83 78 #('doc/magic.tex',
@@ -93,6 +88,18 b" if len(sys.argv) >= 2 and sys.argv[1] in ('sdist','bdist_rpm'):"
93 88 "cd doc && gzip -9c pycolor.1 > pycolor.1.gz"),
94 89 ]
95 90
91 try:
92 import sphinx
93 except ImportError:
94 pass
95 else:
96 # The do_sphinx scripts builds html and pdf, so just one
97 # target is enough to cover all manual generation
98 to_update.append(
99 ('doc/manual/ipython.pdf',
100 ['IPython/Release.py','doc/source/ipython.rst'],
101 "cd doc && python do_sphinx.py")
102 )
96 103 [ target_update(*t) for t in to_update ]
97 104
98 105 #---------------------------------------------------------------------------
@@ -152,9 +159,6 b' else:'
152 159 # Do the actual setup now
153 160 #---------------------------------------------------------------------------
154 161
155 print packages
156
157
158 162 setup_args['packages'] = packages
159 163 setup_args['package_data'] = package_data
160 164 setup_args['scripts'] = scripts
@@ -11,7 +11,7 b" sys.path.insert(0,'%s/usr/local/lib/python%s/site-packages' %"
11 11
12 12 # now, import setuptools and call the actual setup
13 13 import setuptools
14 print sys.argv
14 # print sys.argv
15 15 #sys.argv=['','bdist_egg']
16 16 execfile('setup.py')
17 17
General Comments 0
You need to be logged in to leave comments. Login now