Commits

sodas tsai committed f03e20a

0.2.0

Comments (0)

Files changed (9)

ground_soil/__init__.py

-__version__ = '0.1.13'
+#
+# Ground Soil
+# __init__.py
+#
+# Copyright (c) 2013. Dian-Je Tsai. All rights reserved.
+# Author: sodas tsai
+#
+
+from __future__ import unicode_literals
+
+__version__ = '0.2.0'
 VERSION = tuple(map(lambda x: int(x), __version__.split('.')))

ground_soil/console/__init__.py

+#
+# Ground Soil
+# console/__init__.py
+#
+# Copyright (c) 2013. Dian-Je Tsai. All rights reserved.
+# Author: sodas tsai
+#
 
+from __future__ import unicode_literals

ground_soil/console/color.py

+#
+# Ground Soil
+# console/color.py
+#
+# Copyright (c) 2013. Dian-Je Tsai. All rights reserved.
+# Author: sodas tsai
+#
+
+from __future__ import unicode_literals
+
+
 class Colors(object):
     BOLD = 1
     DARK = 2

ground_soil/datastucture/__init__.py

+#
+# Ground Soil
+# datastructure/__init__.py
+#
+# Copyright (c) 2013. Dian-Je Tsai. All rights reserved.
+# Author: sodas tsai
+#
+
+from __future__ import unicode_literals
 from ground_soil.datastucture.settings_dict import SettingsDict
 from ground_soil.datastucture.modules import load_module_as_dict, dict_from_module_attr
 

ground_soil/datastucture/modules.py

+#
+# Ground Soil
+# datastructure/modules.py
+#
+# Copyright (c) 2013. Dian-Je Tsai. All rights reserved.
+# Author: sodas tsai
+#
+
+from __future__ import unicode_literals
+
 import imp
 import os
 

ground_soil/datastucture/settings_dict.py

+#
+# Ground Soil
+# datastructure/settings_dict.py
+#
+# Copyright (c) 2013. Dian-Je Tsai. All rights reserved.
+# Author: sodas tsai
+#
+
+from __future__ import unicode_literals
+
 import types
 from six import callable
 from ground_soil.datastucture.modules import dict_from_module_attr, load_module_as_dict

ground_soil/fabric/__init__.py

+#
+# Ground Soil
+# fabric/__init__.py
+#
+# Copyright (c) 2013. Dian-Je Tsai. All rights reserved.
+# Author: sodas tsai
+#
+
+from __future__ import unicode_literals
+
 import ast
 import json
 from fabric.api import local, prefix

ground_soil/filesystem.py

+#
+# Ground Soil
+# filesystem.py
+#
+# Copyright (c) 2013. Dian-Je Tsai. All rights reserved.
+# Author: sodas tsai
+#
+
+from __future__ import unicode_literals
+
 import json
 import os
 import re

ground_soil/package.py

+#
+# Ground Soil
+# package.py
+#
+# Copyright (c) 2013. Dian-Je Tsai. All rights reserved.
+# Author: sodas tsai
+#
+
+from __future__ import unicode_literals
+
 import os
 import threading
-import xmlrpclib
+
+from six import PY3
+if PY3:
+    import xmlrpc.client as xmlrpclib
+else:
+    import xmlrpclib
+
 from ground_soil.console.color import Colors, color
 
 
                 local_version = tuple(map(lambda x: int(x), local_version_string.split('.')))
                 if pypi_version > local_version:
                     msg = '{name} {ver} has been released, please update it.'.format(name=app_name, ver=version_string)
-                    print color(msg, Colors.YELLOW)
-                    print ''
+                    print(color(msg, Colors.YELLOW))
+                    print('')
                     return 1
                 else:
                     raise ValueError
                 pass
 
     if not quiet:
-        print color(
-            '{name} is update to date. (version={ver})'.format(name=app_name, ver=local_version_string), Colors.GREEN)
+        print(color(
+            '{name} is update to date. (version={ver})'.format(name=app_name, ver=local_version_string), Colors.GREEN))
     return 0