添加setup.py的支持,并发布第一版本
diff --git a/.gitignore b/.gitignore
index 7e99e36..2f13ce3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,3 @@
-*.pyc
\ No newline at end of file
+*.pyc
+build
+*.egg-info
\ No newline at end of file
diff --git a/README.md b/README.md
index 1e565e3..8cba883 100644
--- a/README.md
+++ b/README.md
@@ -8,6 +8,11 @@
 请使用dubbo-rpc-jsonrpc 并在dubbo中配置protocol为jsonrpc协议
 参考 https://github.com/ofpay/dubbo-rpc-jsonrpc
 
+### 安装
+下载代码   
+python setup.py install
+
+
 ### 在客户端实现负载均衡,服务发现  
 通过注册中心的zookeeper,获取服务的注册信息
 然后通过代理实现负载均衡算法,调用服务端
@@ -33,6 +38,6 @@
 ```
 
 ### TODO
-优化性能
-支持Retry参数
-支持RoundRobin的调用
\ No newline at end of file
+优化性能  
+支持Retry参数  
+支持RoundRobin的调用  
\ No newline at end of file
diff --git a/dist/dubbo_client-0.1.0-py2.7.egg b/dist/dubbo_client-0.1.0-py2.7.egg
new file mode 100644
index 0000000..3410de4
--- /dev/null
+++ b/dist/dubbo_client-0.1.0-py2.7.egg
Binary files differ
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..8dcfe2d
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,56 @@
+#!/usr/bin/env python
+# coding: utf-8
+"""
+Python Dubbo Library Client Server - Setup
+ 
+Created
+    2015-4-10 by Joe - https://github.com/JoeCao
+"""
+
+import os
+from setuptools import setup, find_packages
+
+THISDIR = os.path.dirname(os.path.abspath(__file__))
+os.chdir(THISDIR)
+
+VERSION = open("version.txt").readline().strip()
+HOMEPAGE = "https://github.com/ofpay/dubbo-client-py"
+DOWNLOAD_BASEURL = "https://github.com/ofpay/dubbo-client-py/raw/master/dist/"
+DOWNLOAD_URL = DOWNLOAD_BASEURL + "dubbo-client-%s.tar.gz" % VERSION
+
+
+setup(
+    name = "dubbo-client",
+    version = VERSION,
+    description = (
+        "Python Dubbo Client"
+    ),
+    long_description = open("README.MD").read(),
+    keywords = (
+        "Dubbo, JSON-RPC, JSON, RPC, Client,"
+        "HTTP-Client, Remote Procedure Call, JavaScript Object Notation, "
+    ),
+    author = "Joe Cao",
+    author_email = "chinalibra@gmail.com",
+    url = HOMEPAGE,
+    download_url = DOWNLOAD_URL,
+    packages = find_packages(),
+    classifiers = [
+        #"Development Status :: 1 - Planning",
+        # "Development Status :: 2 - Pre-Alpha",
+        "Development Status :: 3 - Alpha",
+        # "Development Status :: 4 - Beta",
+        # "Development Status :: 5 - Production/Stable",
+        "Environment :: Web Environment",
+        "Intended Audience :: Developers",
+        "License :: OSI Approved :: MIT License",
+        "Operating System :: OS Independent",
+        "Programming Language :: Python :: 2",
+        "Topic :: Software Development :: Libraries :: Python Modules",
+        "Topic :: System :: Networking",
+        "Topic :: Internet :: WWW/HTTP",
+        "Topic :: Internet :: WWW/HTTP :: HTTP Servers",
+        "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
+    ],
+    install_requires = ["kazoo>=2.0", "python-jsonrpc>=0.7.3"],
+)
\ No newline at end of file