This is an automated email from the ASF dual-hosted git repository.
zike pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new fffba6135ac Revert "[improve][ci] Add workflow for python local
install (#17232)" (#17431)
fffba6135ac is described below
commit fffba6135acb85d5af458971f176bf2ba55f633e
Author: tison <[email protected]>
AuthorDate: Sat Sep 3 12:14:29 2022 +0800
Revert "[improve][ci] Add workflow for python local install (#17232)"
(#17431)
This closes #17430.
---
.github/workflows/ci-python-build-3.9-client.yaml | 10 ----------
site2/docs/client-libraries-python.md | 14 +++++++-------
2 files changed, 7 insertions(+), 17 deletions(-)
diff --git a/.github/workflows/ci-python-build-3.9-client.yaml
b/.github/workflows/ci-python-build-3.9-client.yaml
index 39f68611233..a1ef4a73d7b 100644
--- a/.github/workflows/ci-python-build-3.9-client.yaml
+++ b/.github/workflows/ci-python-build-3.9-client.yaml
@@ -66,13 +66,3 @@ jobs:
run: |
echo "Build Python3.9 client library"
pulsar-client-cpp/docker-build-python3.9.sh
-
- - name: Local build python client
- if: ${{ steps.check_changes.outputs.docs_only != 'true' }}
- uses: actions/setup-python@v4
- with:
- python-version: '3.9'
- working-directory: pulsar-client-cpp/python
- run: |
- echo "Local build python client library"
- pip install .
diff --git a/site2/docs/client-libraries-python.md
b/site2/docs/client-libraries-python.md
index 6884f689b31..2e65a42a91a 100644
--- a/site2/docs/client-libraries-python.md
+++ b/site2/docs/client-libraries-python.md
@@ -59,7 +59,7 @@ To install the built Python bindings:
```shell
git clone https://github.com/apache/pulsar
cd pulsar/pulsar-client-cpp/python
-sudo pip install .
+sudo python setup.py install
```
## Connection URLs
@@ -180,7 +180,7 @@ while True:
In addition to subscribing a consumer to a single Pulsar topic, you can also
subscribe to multiple topics simultaneously. To use multi-topic subscriptions,
you can supply a regular expression (regex) or a `List` of topics. If you
select topics via regex, all topics must be within the same Pulsar namespace.
-The following is an example:
+The following is an example:
```python
import re
@@ -306,7 +306,7 @@ The schema definition is like this.
```json
{
"name": "NamespaceDemo", "namespace": "xxx.xxx.xxx", "type": "record",
"fields": [
- {"name": "x", "type": ["null", "string"]},
+ {"name": "x", "type": ["null", "string"]},
{"name": "y", "type": ["null", "int"]}
]
}
@@ -343,7 +343,7 @@ while True:
```
````mdx-code-block
-<Tabs
+<Tabs
defaultValue="BytesSchema"
values={[{"label":"BytesSchema","value":"BytesSchema"},{"label":"StringSchema","value":"StringSchema"},{"label":"AvroSchema","value":"AvroSchema"},{"label":"JsonSchema","value":"JsonSchema"}]}>
@@ -397,7 +397,7 @@ You can declare an `AvroSchema` using one of the following
methods.
You can declare an `AvroSchema` by passing a class that inherits
from `pulsar.schema.Record` and defines the fields as
-class variables.
+class variables.
**Example**
@@ -426,7 +426,7 @@ You can declare an `AvroSchema` using JSON. In this case,
Avro schemas are defin
**Example**
-Below is an `AvroSchema` defined using a JSON file (_company.avsc_).
+Below is an `AvroSchema` defined using a JSON file (_company.avsc_).
```json
{
@@ -532,7 +532,7 @@ This section provides step-by-step instructions on how to
use the end-to-end enc
**Prerequisite**
-- Pulsar Python client 2.7.1 or later
+- Pulsar Python client 2.7.1 or later
**Step**