Skip to content

Document how to generate apidoc python - #283

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

tisonkun merged 1 commit into
apache:mainfrom
tisonkun:how-to-gen-apidoc-python

Conversation

@tisonkun

Copy link
Copy Markdown
Member

This closes apache/pulsar#18347.

cc @michaeljmarshall please take a look.

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 :)

@michaeljmarshall michaeljmarshall left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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