diff options
Diffstat (limited to 'sphinx/util/build_phase.py')
-rw-r--r-- | sphinx/util/build_phase.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sphinx/util/build_phase.py b/sphinx/util/build_phase.py new file mode 100644 index 000000000..e5a53551c --- /dev/null +++ b/sphinx/util/build_phase.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +""" + sphinx.util.build_phase + ~~~~~~~~~~~~~~~~~~~~~~~ + + Build phase of Sphinx application. + + :copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS. + :license: BSD, see LICENSE for details. +""" + +try: + from enum import IntEnum +except ImportError: # py27 + IntEnum = object # type: ignore + + +class BuildPhase(IntEnum): + """Build phase of Sphinx application.""" + INITIALIZATION = 1 + READING = 2 + CONSISTENCY_CHECK = 3 + RESOLVING = 3 + WRITING = 4 |