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