You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by du...@apache.org on 2019/11/06 10:45:11 UTC

[rocketmq-client-python] branch ctypes updated: docs(readme) fix the pypi link to rocketmq-client-python

This is an automated email from the ASF dual-hosted git repository.

duhengforever pushed a commit to branch ctypes
in repository https://gitbox.apache.org/repos/asf/rocketmq-client-python.git


The following commit(s) were added to refs/heads/ctypes by this push:
     new 1226f5d  docs(readme) fix the pypi link to rocketmq-client-python
     new f77966e  Merge pull request #71 from duhenglucky/ctypes_docs
1226f5d is described below

commit 1226f5d34007d003390b88afd0ce8a5fc6123f8f
Author: duhenglucky <du...@gmail.com>
AuthorDate: Wed Nov 6 15:06:24 2019 +0800

    docs(readme) fix the pypi link to rocketmq-client-python
---
 README.md | 16 +++++-----------
 setup.py  |  4 ++--
 2 files changed, 7 insertions(+), 13 deletions(-)

diff --git a/README.md b/README.md
index fb8809f..033feca 100644
--- a/README.md
+++ b/README.md
@@ -1,15 +1,15 @@
-# rocketmq-python
+# rocketmq-client-python
 
 [![Build Status](https://travis-ci.org/apache/rocketmq-client-python.svg?branch=master)](https://travis-ci.org/apache/rocketmq-client-python)
 [![codecov](https://codecov.io/gh/apache/rocketmq-client-python/branch/ctypes/graph/badge.svg)](https://codecov.io/gh/apache/rocketmq-client-python/branch/ctypes)
-[![PyPI](https://img.shields.io/pypi/v/rocketmq.svg)](https://pypi.org/project/rocketmq)
+[![PyPI](https://img.shields.io/pypi/v/rocketmq-client-python.svg)](https://pypi.org/project/rocketmq-client-python)
 
 RocketMQ Python client, based on [rocketmq-client-cpp](https://github.com/apache/rocketmq-client-cpp), supports Linux and macOS
 
 ## Installation
 
 ```bash
-pip install rocketmq
+pip install rocketmq-client-python
 ```
 
 ## Usage
@@ -20,10 +20,7 @@ pip install rocketmq
 from rocketmq.client import Producer, Message
 
 producer = Producer('PID-XXX')
-producer.set_namesrv_domain('http://onsaddr-internet.aliyun.com/rocketmq/nsaddr4client-internet')
-# For ip and port name server address, use `set_namesrv_addr` method, for example:
-# producer.set_namesrv_addr('127.0.0.1:9887')
-producer.set_session_credentials('XXX', 'XXXX', 'ALIYUN') # No need to call this function if you don't use Aliyun.
+producer.set_namesrv_addr('127.0.0.1:9876')
 producer.start()
 
 msg = Message('YOUR-TOPIC')
@@ -48,10 +45,7 @@ def callback(msg):
 
 
 consumer = PushConsumer('CID_XXX')
-consumer.set_namesrv_domain('http://onsaddr-internet.aliyun.com/rocketmq/nsaddr4client-internet')
-# For ip and port name server address, use `set_namesrv_addr` method, for example:
-# consumer.set_namesrv_addr('127.0.0.1:9887')
-consumer.set_session_credentials('XXX', 'XXXX', 'ALIYUN') # No need to call this function if you don't use Aliyun.
+consumer.set_namesrv_addr('127.0.0.1:9876')
 consumer.subscribe('YOUR-TOPIC', callback)
 consumer.start()
 
diff --git a/setup.py b/setup.py
index d6a3bf9..a1abd68 100755
--- a/setup.py
+++ b/setup.py
@@ -63,8 +63,8 @@ class InstallPlatlib(install):
 cmdclass['install'] = InstallPlatlib
 
 setup(
-    name='rocketmq',
-    version='0.5.0',
+    name='rocketmq-client-python',
+    version='0.5.0-rc1',
     author='apache.rocketmq',
     author_email='dev@rocketmq.apache.org',
     packages=find_packages(exclude=('tests', 'tests.*')),