Skip to content
Permalink
Browse files
添加setup.py的支持,并发布第一版本
  • Loading branch information
JoeCao committed Apr 10, 2015
1 parent 561aeeb commit 72b428ebd459e7a5bd0a1a1637f571de7e0bf4a9
Showing 4 changed files with 67 additions and 4 deletions.
@@ -1 +1,3 @@
*.pyc
*.pyc
build
*.egg-info
@@ -8,6 +8,11 @@ Python Dubbo Client
请使用dubbo-rpc-jsonrpc 并在dubbo中配置protocol为jsonrpc协议
参考 https://github.com/ofpay/dubbo-rpc-jsonrpc

### 安装
下载代码
python setup.py install


### 在客户端实现负载均衡,服务发现
通过注册中心的zookeeper,获取服务的注册信息
然后通过代理实现负载均衡算法,调用服务端
@@ -33,6 +38,6 @@ Python Dubbo Client
```

### TODO
优化性能
支持Retry参数
支持RoundRobin的调用
优化性能
支持Retry参数
支持RoundRobin的调用
Binary file not shown.
@@ -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"],
)

0 comments on commit 72b428e

Please sign in to comment.