def test_version(self): self.assertTrue(celery.VERSION) self.assertGreaterEqual(len(celery.VERSION), 3) celery.VERSION = (0, 3, 0) self.assertFalse(celery.is_stable_release()) self.assertGreaterEqual(celery.__version__.count("."), 2) self.assertIn("(unstable)", celery.version_with_meta()) celery.VERSION = (0, 4, 0) self.assertTrue(celery.is_stable_release()) self.assertIn("(stable)", celery.version_with_meta())
# The master toctree document. master_doc = 'index' # General information about the project. project = u'Celery' copyright = u'2009, Ask Solem' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. version = ".".join(map(str, celery.VERSION[0:2])) # The full version, including alpha/beta/rc tags. release = celery.version_with_meta() # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. #language = None # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: #today = '' # Else, today_fmt is used as the format for a strftime call. #today_fmt = '%B %d, %Y' # List of documents that shouldn't be included in the build. #unused_docs = [] # List of directories, relative to source directory, that shouldn't be searched
# The master toctree document. master_doc = 'index' # General information about the project. project = u'Celery' copyright = u'2009-2010, Ask Solem & contributors' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. version = ".".join(map(str, celery.VERSION[0:2])) # The full version, including alpha/beta/rc tags. release = celery.version_with_meta() exclude_trees = ['.build'] # If true, '()' will be appended to :func: etc. cross-reference text. add_function_parentheses = True # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'trac' # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['.static'] html_use_smartypants = True