Merge pull request #702 from berkerpeksag/add-clint

Add clint as a dependency.
This commit is contained in:
Bob Tolbert 2014-12-07 10:58:30 -07:00
commit 54ce193c41
2 changed files with 5 additions and 41 deletions

View File

@ -21,10 +21,12 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE. # DEALINGS IN THE SOFTWARE.
from hy._compat import PY3
import traceback import traceback
from clint.textui import colored
from hy._compat import PY3
class HyError(Exception): class HyError(Exception):
""" """
@ -34,44 +36,6 @@ class HyError(Exception):
pass pass
try:
from clint.textui import colored
except Exception:
class colored:
@staticmethod
def black(foo):
return foo
@staticmethod
def red(foo):
return foo
@staticmethod
def green(foo):
return foo
@staticmethod
def yellow(foo):
return foo
@staticmethod
def blue(foo):
return foo
@staticmethod
def magenta(foo):
return foo
@staticmethod
def cyan(foo):
return foo
@staticmethod
def white(foo):
return foo
class HyCompileError(HyError): class HyCompileError(HyError):
def __init__(self, exception, traceback=None): def __init__(self, exception, traceback=None):
self.exception = exception self.exception = exception

View File

@ -45,7 +45,7 @@ long_description = """Hy is a Python <--> Lisp layer. It helps
make things work nicer, and lets Python and the Hy lisp variant play make things work nicer, and lets Python and the Hy lisp variant play
nice together. """ nice together. """
install_requires = ['rply>=0.7.0', 'astor>=0.3'] install_requires = ['rply>=0.7.0', 'astor>=0.3', 'clint>=0.4']
if sys.version_info[:2] < (2, 7): if sys.version_info[:2] < (2, 7):
install_requires.append('argparse>=1.2.1') install_requires.append('argparse>=1.2.1')
install_requires.append('importlib>=1.0.2') install_requires.append('importlib>=1.0.2')