[yt-svn] commit/yt: 2 new changesets

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Oct 22 11:55:41 PDT 2014


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/304971461653/
Changeset:   304971461653
Branch:      yt
User:        ngoldbaum
Date:        2014-10-21 04:29:40+00:00
Summary:     Fixing frontend imports.

This makes it possible for nose to detect the tests in the frontends directories.

$ nosetests yt.frontends.flash.tests
Affected #:  13 files

diff -r 2972a66a5c6e830050263882e3eca08e3f9691ac -r 304971461653e8d258b48b43deadd49843b1124a yt/frontends/api.py
--- a/yt/frontends/api.py
+++ b/yt/frontends/api.py
@@ -39,3 +39,5 @@
         for frontend in _frontends:
             _mod = "yt.frontends.%s.api" % frontend
             setattr(self, frontend, importlib.import_module(_mod))
+        setattr(self, 'api', importlib.import_module('yt.frontends.api'))
+        setattr(self, '__name__', 'yt.frontends.api')

diff -r 2972a66a5c6e830050263882e3eca08e3f9691ac -r 304971461653e8d258b48b43deadd49843b1124a yt/frontends/art/api.py
--- a/yt/frontends/art/api.py
+++ b/yt/frontends/art/api.py
@@ -24,3 +24,5 @@
 
 from .io import \
       IOHandlerART
+
+from . import tests

diff -r 2972a66a5c6e830050263882e3eca08e3f9691ac -r 304971461653e8d258b48b43deadd49843b1124a yt/frontends/artio/api.py
--- a/yt/frontends/artio/api.py
+++ b/yt/frontends/artio/api.py
@@ -22,3 +22,5 @@
 
 from .io import \
     IOHandlerARTIO
+
+from . import tests

diff -r 2972a66a5c6e830050263882e3eca08e3f9691ac -r 304971461653e8d258b48b43deadd49843b1124a yt/frontends/athena/api.py
--- a/yt/frontends/athena/api.py
+++ b/yt/frontends/athena/api.py
@@ -22,3 +22,5 @@
 
 from .io import \
       IOHandlerAthena
+
+from . import tests

diff -r 2972a66a5c6e830050263882e3eca08e3f9691ac -r 304971461653e8d258b48b43deadd49843b1124a yt/frontends/boxlib/api.py
--- a/yt/frontends/boxlib/api.py
+++ b/yt/frontends/boxlib/api.py
@@ -29,3 +29,5 @@
 
 from .io import \
       IOHandlerBoxlib
+
+from . import tests

diff -r 2972a66a5c6e830050263882e3eca08e3f9691ac -r 304971461653e8d258b48b43deadd49843b1124a yt/frontends/chombo/api.py
--- a/yt/frontends/chombo/api.py
+++ b/yt/frontends/chombo/api.py
@@ -35,3 +35,5 @@
 from .io import \
     IOHandlerChomboHDF5,\
     IOHandlerPlutoHDF5
+
+from . import tests

diff -r 2972a66a5c6e830050263882e3eca08e3f9691ac -r 304971461653e8d258b48b43deadd49843b1124a yt/frontends/enzo/api.py
--- a/yt/frontends/enzo/api.py
+++ b/yt/frontends/enzo/api.py
@@ -35,3 +35,5 @@
       IOHandlerInMemory, \
       IOHandlerPacked2D, \
       IOHandlerPacked1D
+
+from . import tests

diff -r 2972a66a5c6e830050263882e3eca08e3f9691ac -r 304971461653e8d258b48b43deadd49843b1124a yt/frontends/fits/api.py
--- a/yt/frontends/fits/api.py
+++ b/yt/frontends/fits/api.py
@@ -22,4 +22,6 @@
       IOHandlerFITS
 
 from .misc import \
-      setup_counts_fields
\ No newline at end of file
+      setup_counts_fields
+
+from . import tests

diff -r 2972a66a5c6e830050263882e3eca08e3f9691ac -r 304971461653e8d258b48b43deadd49843b1124a yt/frontends/flash/api.py
--- a/yt/frontends/flash/api.py
+++ b/yt/frontends/flash/api.py
@@ -23,3 +23,5 @@
 
 from .io import \
       IOHandlerFLASH
+
+from . import tests

diff -r 2972a66a5c6e830050263882e3eca08e3f9691ac -r 304971461653e8d258b48b43deadd49843b1124a yt/frontends/moab/api.py
--- a/yt/frontends/moab/api.py
+++ b/yt/frontends/moab/api.py
@@ -25,3 +25,5 @@
 
 from .io import \
       IOHandlerMoabH5MHex8
+
+from . import tests

diff -r 2972a66a5c6e830050263882e3eca08e3f9691ac -r 304971461653e8d258b48b43deadd49843b1124a yt/frontends/ramses/api.py
--- a/yt/frontends/ramses/api.py
+++ b/yt/frontends/ramses/api.py
@@ -24,3 +24,5 @@
 
 from .definitions import \
       field_aliases
+
+from . import tests

diff -r 2972a66a5c6e830050263882e3eca08e3f9691ac -r 304971461653e8d258b48b43deadd49843b1124a yt/frontends/sph/api.py
--- a/yt/frontends/sph/api.py
+++ b/yt/frontends/sph/api.py
@@ -31,3 +31,5 @@
       SPHFieldInfo, \
       TipsyFieldInfo,\
       EagleNetworkFieldInfo
+
+from . import tests

diff -r 2972a66a5c6e830050263882e3eca08e3f9691ac -r 304971461653e8d258b48b43deadd49843b1124a yt/frontends/stream/api.py
--- a/yt/frontends/stream/api.py
+++ b/yt/frontends/stream/api.py
@@ -31,3 +31,5 @@
 
 from .io import \
       IOHandlerStream
+
+from . import tests


https://bitbucket.org/yt_analysis/yt/commits/bf8f9f98b34a/
Changeset:   bf8f9f98b34a
Branch:      yt
User:        brittonsmith
Date:        2014-10-22 18:55:33+00:00
Summary:     Merged in ngoldbaum/yt (pull request #1277)

Fixing frontend imports.
Affected #:  13 files

diff -r d3691b7a43464dbf63a11dc7f064c7d68e479416 -r bf8f9f98b34aa74b5e22c88528cb73fa4d872ff6 yt/frontends/api.py
--- a/yt/frontends/api.py
+++ b/yt/frontends/api.py
@@ -39,3 +39,5 @@
         for frontend in _frontends:
             _mod = "yt.frontends.%s.api" % frontend
             setattr(self, frontend, importlib.import_module(_mod))
+        setattr(self, 'api', importlib.import_module('yt.frontends.api'))
+        setattr(self, '__name__', 'yt.frontends.api')

diff -r d3691b7a43464dbf63a11dc7f064c7d68e479416 -r bf8f9f98b34aa74b5e22c88528cb73fa4d872ff6 yt/frontends/art/api.py
--- a/yt/frontends/art/api.py
+++ b/yt/frontends/art/api.py
@@ -24,3 +24,5 @@
 
 from .io import \
       IOHandlerART
+
+from . import tests

diff -r d3691b7a43464dbf63a11dc7f064c7d68e479416 -r bf8f9f98b34aa74b5e22c88528cb73fa4d872ff6 yt/frontends/artio/api.py
--- a/yt/frontends/artio/api.py
+++ b/yt/frontends/artio/api.py
@@ -22,3 +22,5 @@
 
 from .io import \
     IOHandlerARTIO
+
+from . import tests

diff -r d3691b7a43464dbf63a11dc7f064c7d68e479416 -r bf8f9f98b34aa74b5e22c88528cb73fa4d872ff6 yt/frontends/athena/api.py
--- a/yt/frontends/athena/api.py
+++ b/yt/frontends/athena/api.py
@@ -22,3 +22,5 @@
 
 from .io import \
       IOHandlerAthena
+
+from . import tests

diff -r d3691b7a43464dbf63a11dc7f064c7d68e479416 -r bf8f9f98b34aa74b5e22c88528cb73fa4d872ff6 yt/frontends/boxlib/api.py
--- a/yt/frontends/boxlib/api.py
+++ b/yt/frontends/boxlib/api.py
@@ -29,3 +29,5 @@
 
 from .io import \
       IOHandlerBoxlib
+
+from . import tests

diff -r d3691b7a43464dbf63a11dc7f064c7d68e479416 -r bf8f9f98b34aa74b5e22c88528cb73fa4d872ff6 yt/frontends/chombo/api.py
--- a/yt/frontends/chombo/api.py
+++ b/yt/frontends/chombo/api.py
@@ -35,3 +35,5 @@
 from .io import \
     IOHandlerChomboHDF5,\
     IOHandlerPlutoHDF5
+
+from . import tests

diff -r d3691b7a43464dbf63a11dc7f064c7d68e479416 -r bf8f9f98b34aa74b5e22c88528cb73fa4d872ff6 yt/frontends/enzo/api.py
--- a/yt/frontends/enzo/api.py
+++ b/yt/frontends/enzo/api.py
@@ -35,3 +35,5 @@
       IOHandlerInMemory, \
       IOHandlerPacked2D, \
       IOHandlerPacked1D
+
+from . import tests

diff -r d3691b7a43464dbf63a11dc7f064c7d68e479416 -r bf8f9f98b34aa74b5e22c88528cb73fa4d872ff6 yt/frontends/fits/api.py
--- a/yt/frontends/fits/api.py
+++ b/yt/frontends/fits/api.py
@@ -22,4 +22,6 @@
       IOHandlerFITS
 
 from .misc import \
-      setup_counts_fields
\ No newline at end of file
+      setup_counts_fields
+
+from . import tests

diff -r d3691b7a43464dbf63a11dc7f064c7d68e479416 -r bf8f9f98b34aa74b5e22c88528cb73fa4d872ff6 yt/frontends/flash/api.py
--- a/yt/frontends/flash/api.py
+++ b/yt/frontends/flash/api.py
@@ -23,3 +23,5 @@
 
 from .io import \
       IOHandlerFLASH
+
+from . import tests

diff -r d3691b7a43464dbf63a11dc7f064c7d68e479416 -r bf8f9f98b34aa74b5e22c88528cb73fa4d872ff6 yt/frontends/moab/api.py
--- a/yt/frontends/moab/api.py
+++ b/yt/frontends/moab/api.py
@@ -25,3 +25,5 @@
 
 from .io import \
       IOHandlerMoabH5MHex8
+
+from . import tests

diff -r d3691b7a43464dbf63a11dc7f064c7d68e479416 -r bf8f9f98b34aa74b5e22c88528cb73fa4d872ff6 yt/frontends/ramses/api.py
--- a/yt/frontends/ramses/api.py
+++ b/yt/frontends/ramses/api.py
@@ -24,3 +24,5 @@
 
 from .definitions import \
       field_aliases
+
+from . import tests

diff -r d3691b7a43464dbf63a11dc7f064c7d68e479416 -r bf8f9f98b34aa74b5e22c88528cb73fa4d872ff6 yt/frontends/sph/api.py
--- a/yt/frontends/sph/api.py
+++ b/yt/frontends/sph/api.py
@@ -31,3 +31,5 @@
       SPHFieldInfo, \
       TipsyFieldInfo,\
       EagleNetworkFieldInfo
+
+from . import tests

diff -r d3691b7a43464dbf63a11dc7f064c7d68e479416 -r bf8f9f98b34aa74b5e22c88528cb73fa4d872ff6 yt/frontends/stream/api.py
--- a/yt/frontends/stream/api.py
+++ b/yt/frontends/stream/api.py
@@ -31,3 +31,5 @@
 
 from .io import \
       IOHandlerStream
+
+from . import tests

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list