Python nose.__versioninfo__() Examples
The following are 24
code examples of nose.__versioninfo__().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
nose
, or try the search function
.
Example #1
Source File: utils.py From pySINDy with MIT License | 6 votes |
def import_nose(): """ Import nose only when needed. """ nose_is_good = True minimum_nose_version = (1, 0, 0) try: import nose except ImportError: nose_is_good = False else: if nose.__versioninfo__ < minimum_nose_version: nose_is_good = False if not nose_is_good: msg = ('Need nose >= %d.%d.%d for tests - see ' 'http://nose.readthedocs.io' % minimum_nose_version) raise ImportError(msg) return nose
Example #2
Source File: nosetester.py From keras-lambda with MIT License | 6 votes |
def _show_system_info(self): nose = import_nose() import numpy print("NumPy version %s" % numpy.__version__) relaxed_strides = numpy.ones((10, 1), order="C").flags.f_contiguous print("NumPy relaxed strides checking option:", relaxed_strides) npdir = os.path.dirname(numpy.__file__) print("NumPy is installed in %s" % npdir) if 'scipy' in self.package_name: import scipy print("SciPy version %s" % scipy.__version__) spdir = os.path.dirname(scipy.__file__) print("SciPy is installed in %s" % spdir) pyversion = sys.version.replace('\n', '') print("Python version %s" % pyversion) print("nose version %d.%d.%d" % nose.__versioninfo__)
Example #3
Source File: nosetester.py From keras-lambda with MIT License | 6 votes |
def import_nose(): """ Import nose only when needed. """ fine_nose = True minimum_nose_version = (1, 0, 0) try: import nose except ImportError: fine_nose = False else: if nose.__versioninfo__ < minimum_nose_version: fine_nose = False if not fine_nose: msg = ('Need nose >= %d.%d.%d for tests - see ' 'http://somethingaboutorange.com/mrl/projects/nose' % minimum_nose_version) raise ImportError(msg) return nose
Example #4
Source File: utils.py From twitter-stock-recommendation with MIT License | 6 votes |
def import_nose(): """ Import nose only when needed. """ nose_is_good = True minimum_nose_version = (1, 0, 0) try: import nose except ImportError: nose_is_good = False else: if nose.__versioninfo__ < minimum_nose_version: nose_is_good = False if not nose_is_good: msg = ('Need nose >= %d.%d.%d for tests - see ' 'http://nose.readthedocs.io' % minimum_nose_version) raise ImportError(msg) return nose
Example #5
Source File: utils.py From Serverless-Deep-Learning-with-TensorFlow-and-AWS-Lambda with MIT License | 6 votes |
def import_nose(): """ Import nose only when needed. """ nose_is_good = True minimum_nose_version = (1, 0, 0) try: import nose except ImportError: nose_is_good = False else: if nose.__versioninfo__ < minimum_nose_version: nose_is_good = False if not nose_is_good: msg = ('Need nose >= %d.%d.%d for tests - see ' 'http://nose.readthedocs.io' % minimum_nose_version) raise ImportError(msg) return nose
Example #6
Source File: utils.py From Carnets with BSD 3-Clause "New" or "Revised" License | 6 votes |
def import_nose(): """ Import nose only when needed. """ nose_is_good = True minimum_nose_version = (1, 0, 0) try: import nose except ImportError: nose_is_good = False else: if nose.__versioninfo__ < minimum_nose_version: nose_is_good = False if not nose_is_good: msg = ('Need nose >= %d.%d.%d for tests - see ' 'https://nose.readthedocs.io' % minimum_nose_version) raise ImportError(msg) return nose
Example #7
Source File: utils.py From coffeegrindsize with MIT License | 6 votes |
def import_nose(): """ Import nose only when needed. """ nose_is_good = True minimum_nose_version = (1, 0, 0) try: import nose except ImportError: nose_is_good = False else: if nose.__versioninfo__ < minimum_nose_version: nose_is_good = False if not nose_is_good: msg = ('Need nose >= %d.%d.%d for tests - see ' 'https://nose.readthedocs.io' % minimum_nose_version) raise ImportError(msg) return nose
Example #8
Source File: utils.py From elasticintel with GNU General Public License v3.0 | 6 votes |
def import_nose(): """ Import nose only when needed. """ nose_is_good = True minimum_nose_version = (1, 0, 0) try: import nose except ImportError: nose_is_good = False else: if nose.__versioninfo__ < minimum_nose_version: nose_is_good = False if not nose_is_good: msg = ('Need nose >= %d.%d.%d for tests - see ' 'http://nose.readthedocs.io' % minimum_nose_version) raise ImportError(msg) return nose
Example #9
Source File: utils.py From Splunking-Crime with GNU Affero General Public License v3.0 | 6 votes |
def import_nose(): """ Import nose only when needed. """ nose_is_good = True minimum_nose_version = (1, 0, 0) try: import nose except ImportError: nose_is_good = False else: if nose.__versioninfo__ < minimum_nose_version: nose_is_good = False if not nose_is_good: msg = ('Need nose >= %d.%d.%d for tests - see ' 'http://nose.readthedocs.io' % minimum_nose_version) raise ImportError(msg) return nose
Example #10
Source File: nosetester.py From ImageFusion with MIT License | 6 votes |
def _show_system_info(self): nose = import_nose() import numpy print("NumPy version %s" % numpy.__version__) npdir = os.path.dirname(numpy.__file__) print("NumPy is installed in %s" % npdir) if 'scipy' in self.package_name: import scipy print("SciPy version %s" % scipy.__version__) spdir = os.path.dirname(scipy.__file__) print("SciPy is installed in %s" % spdir) pyversion = sys.version.replace('\n', '') print("Python version %s" % pyversion) print("nose version %d.%d.%d" % nose.__versioninfo__)
Example #11
Source File: nosetester.py From ImageFusion with MIT License | 6 votes |
def import_nose(): """ Import nose only when needed. """ fine_nose = True minimum_nose_version = (0, 10, 0) try: import nose except ImportError: fine_nose = False else: if nose.__versioninfo__ < minimum_nose_version: fine_nose = False if not fine_nose: msg = 'Need nose >= %d.%d.%d for tests - see ' \ 'http://somethingaboutorange.com/mrl/projects/nose' % \ minimum_nose_version raise ImportError(msg) return nose
Example #12
Source File: utils.py From mxnet-lambda with Apache License 2.0 | 6 votes |
def import_nose(): """ Import nose only when needed. """ nose_is_good = True minimum_nose_version = (1, 0, 0) try: import nose except ImportError: nose_is_good = False else: if nose.__versioninfo__ < minimum_nose_version: nose_is_good = False if not nose_is_good: msg = ('Need nose >= %d.%d.%d for tests - see ' 'http://nose.readthedocs.io' % minimum_nose_version) raise ImportError(msg) return nose
Example #13
Source File: utils.py From recruit with Apache License 2.0 | 6 votes |
def import_nose(): """ Import nose only when needed. """ nose_is_good = True minimum_nose_version = (1, 0, 0) try: import nose except ImportError: nose_is_good = False else: if nose.__versioninfo__ < minimum_nose_version: nose_is_good = False if not nose_is_good: msg = ('Need nose >= %d.%d.%d for tests - see ' 'https://nose.readthedocs.io' % minimum_nose_version) raise ImportError(msg) return nose
Example #14
Source File: nosetester.py From Fluid-Designer with GNU General Public License v3.0 | 6 votes |
def _show_system_info(self): nose = import_nose() import numpy print("NumPy version %s" % numpy.__version__) npdir = os.path.dirname(numpy.__file__) print("NumPy is installed in %s" % npdir) if 'scipy' in self.package_name: import scipy print("SciPy version %s" % scipy.__version__) spdir = os.path.dirname(scipy.__file__) print("SciPy is installed in %s" % spdir) pyversion = sys.version.replace('\n', '') print("Python version %s" % pyversion) print("nose version %d.%d.%d" % nose.__versioninfo__)
Example #15
Source File: nosetester.py From Fluid-Designer with GNU General Public License v3.0 | 6 votes |
def import_nose(): """ Import nose only when needed. """ fine_nose = True minimum_nose_version = (0, 10, 0) try: import nose except ImportError: fine_nose = False else: if nose.__versioninfo__ < minimum_nose_version: fine_nose = False if not fine_nose: msg = 'Need nose >= %d.%d.%d for tests - see ' \ 'http://somethingaboutorange.com/mrl/projects/nose' % \ minimum_nose_version raise ImportError(msg) return nose
Example #16
Source File: utils.py From predictive-maintenance-using-machine-learning with Apache License 2.0 | 6 votes |
def import_nose(): """ Import nose only when needed. """ nose_is_good = True minimum_nose_version = (1, 0, 0) try: import nose except ImportError: nose_is_good = False else: if nose.__versioninfo__ < minimum_nose_version: nose_is_good = False if not nose_is_good: msg = ('Need nose >= %d.%d.%d for tests - see ' 'https://nose.readthedocs.io' % minimum_nose_version) raise ImportError(msg) return nose
Example #17
Source File: utils.py From GraphicDesignPatternByPython with MIT License | 6 votes |
def import_nose(): """ Import nose only when needed. """ nose_is_good = True minimum_nose_version = (1, 0, 0) try: import nose except ImportError: nose_is_good = False else: if nose.__versioninfo__ < minimum_nose_version: nose_is_good = False if not nose_is_good: msg = ('Need nose >= %d.%d.%d for tests - see ' 'http://nose.readthedocs.io' % minimum_nose_version) raise ImportError(msg) return nose
Example #18
Source File: utils.py From Mastering-Elasticsearch-7.0 with MIT License | 6 votes |
def import_nose(): """ Import nose only when needed. """ nose_is_good = True minimum_nose_version = (1, 0, 0) try: import nose except ImportError: nose_is_good = False else: if nose.__versioninfo__ < minimum_nose_version: nose_is_good = False if not nose_is_good: msg = ('Need nose >= %d.%d.%d for tests - see ' 'https://nose.readthedocs.io' % minimum_nose_version) raise ImportError(msg) return nose
Example #19
Source File: nosetester.py From Computable with MIT License | 6 votes |
def _show_system_info(self): nose = import_nose() import numpy print("NumPy version %s" % numpy.__version__) npdir = os.path.dirname(numpy.__file__) print("NumPy is installed in %s" % npdir) if 'scipy' in self.package_name: import scipy print("SciPy version %s" % scipy.__version__) spdir = os.path.dirname(scipy.__file__) print("SciPy is installed in %s" % spdir) pyversion = sys.version.replace('\n', '') print("Python version %s" % pyversion) print("nose version %d.%d.%d" % nose.__versioninfo__)
Example #20
Source File: nosetester.py From Computable with MIT License | 6 votes |
def import_nose(): """ Import nose only when needed. """ fine_nose = True minimum_nose_version = (0, 10, 0) try: import nose except ImportError: fine_nose = False else: if nose.__versioninfo__ < minimum_nose_version: fine_nose = False if not fine_nose: msg = 'Need nose >= %d.%d.%d for tests - see ' \ 'http://somethingaboutorange.com/mrl/projects/nose' % \ minimum_nose_version raise ImportError(msg) return nose
Example #21
Source File: utils.py From vnpy_crypto with MIT License | 6 votes |
def import_nose(): """ Import nose only when needed. """ nose_is_good = True minimum_nose_version = (1, 0, 0) try: import nose except ImportError: nose_is_good = False else: if nose.__versioninfo__ < minimum_nose_version: nose_is_good = False if not nose_is_good: msg = ('Need nose >= %d.%d.%d for tests - see ' 'http://nose.readthedocs.io' % minimum_nose_version) raise ImportError(msg) return nose
Example #22
Source File: nosetester.py From auto-alt-text-lambda-api with MIT License | 6 votes |
def _show_system_info(self): nose = import_nose() import numpy print("NumPy version %s" % numpy.__version__) relaxed_strides = numpy.ones((10, 1), order="C").flags.f_contiguous print("NumPy relaxed strides checking option:", relaxed_strides) npdir = os.path.dirname(numpy.__file__) print("NumPy is installed in %s" % npdir) if 'scipy' in self.package_name: import scipy print("SciPy version %s" % scipy.__version__) spdir = os.path.dirname(scipy.__file__) print("SciPy is installed in %s" % spdir) pyversion = sys.version.replace('\n', '') print("Python version %s" % pyversion) print("nose version %d.%d.%d" % nose.__versioninfo__)
Example #23
Source File: nosetester.py From auto-alt-text-lambda-api with MIT License | 6 votes |
def import_nose(): """ Import nose only when needed. """ fine_nose = True minimum_nose_version = (1, 0, 0) try: import nose except ImportError: fine_nose = False else: if nose.__versioninfo__ < minimum_nose_version: fine_nose = False if not fine_nose: msg = ('Need nose >= %d.%d.%d for tests - see ' 'http://somethingaboutorange.com/mrl/projects/nose' % minimum_nose_version) raise ImportError(msg) return nose
Example #24
Source File: utils.py From lambda-packs with MIT License | 6 votes |
def import_nose(): """ Import nose only when needed. """ nose_is_good = True minimum_nose_version = (1, 0, 0) try: import nose except ImportError: nose_is_good = False else: if nose.__versioninfo__ < minimum_nose_version: nose_is_good = False if not nose_is_good: msg = ('Need nose >= %d.%d.%d for tests - see ' 'http://nose.readthedocs.io' % minimum_nose_version) raise ImportError(msg) return nose