Skip to content

Comments

Document how to generate apidoc python#283

Merged
tisonkun merged 1 commit intoapache:mainfrom
tisonkun:how-to-gen-apidoc-python
Nov 14, 2022
Merged

Document how to generate apidoc python#283
tisonkun merged 1 commit intoapache:mainfrom
tisonkun:how-to-gen-apidoc-python

Conversation

@tisonkun
Copy link
Member

This closes apache/pulsar#18347.

cc @michaeljmarshall please take a look.

Signed-off-by: tison <wander4096@gmail.com>
python -m pip install --upgrade pip

pip install -U pydoctor
git clone https://github.com/apache/pulsar-client-python --single-branch --branch v$PULSAR_VERSION
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @merlimat @BewareMyPower @RobertIndie this line depends on that for each Python client release, we create a vX.Y.Z tag. I notice that C++ client does it so make this assumption.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified the overall script by hardcoding the tag as main locally.

@@ -0,0 +1,45 @@
#!/usr/bin/env bash
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know that these two script files duplicate each other. But since scripts are less combinable, and this is a specific small scope, I'd like to keep it simple stupid :)

Copy link
Member

@michaeljmarshall michaeljmarshall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for updating this @tisonkun!

@tisonkun
Copy link
Member Author

Merging...

If later we have different release process for Python client, we can update it correspondingly.

@tisonkun tisonkun merged commit 7880044 into apache:main Nov 14, 2022
@tisonkun tisonkun deleted the how-to-gen-apidoc-python branch November 14, 2022 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Doc] Improve Python client apidoc with pydoctor tool

3 participants