Skip to content

bpo-29086: Add stableabi option to Documentation #23185

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

WillAyd
Copy link
Contributor

@WillAyd WillAyd commented Nov 6, 2020

Starting as a draft for now, as there are quite a few ways to go about this. I figured this first approach, while verbose, has the upside of leveraging functionality that has already been built into the documentation. Happy to expand to other functions if we think this is in the right direction

https://bugs.python.org/issue29086

@bedevere-bot bedevere-bot added docs Documentation in the Doc dir awaiting review labels Nov 6, 2020
@WillAyd
Copy link
Contributor Author

WillAyd commented Nov 6, 2020

This is how it renders:

image

Copy link
Member

@Fidget-Spinner Fidget-Spinner left a comment

Choose a reason for hiding this comment

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

This LGTM, the only problem is that nearly all the :stableabi: markup has trailing whitespace and tabs, this is causing both the Travis CI checks and Azure pipelines to fail.

Usually I'd advise running make patcheck. However, you might want to do this using your own IDE/manually since it occasionally re-indents/de-indents unrelated parts of the documentation (from personal experience).

@WillAyd WillAyd marked this pull request as ready for review November 10, 2020 18:51
@github-actions
Copy link

This PR is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the stale Stale PR or inactive for long period of time. label Dec 16, 2020
@WillAyd
Copy link
Contributor Author

WillAyd commented Dec 16, 2020

Not stale just awaiting core review

Copy link
Member

@Mariatta Mariatta left a comment

Choose a reason for hiding this comment

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

Looks great to me. Thanks!

@Mariatta
Copy link
Member

Does this need backport?

@github-actions github-actions bot removed the stale Stale PR or inactive for long period of time. label Dec 17, 2020
@WillAyd
Copy link
Contributor Author

WillAyd commented Dec 17, 2020

Not sure what your backport policy is. It could be since it has been this way for a while, though at the same time the change is relatively minor

@encukou
Copy link
Member

encukou commented Dec 31, 2020

Hi,
Can we please hold off on this PR for a few weeks? I am writing a PEP about the stable ABI.

@Mariatta
Copy link
Member

No prob, @encukou .I've added the do-not-merge label for now.

@encukou
Copy link
Member

encukou commented Dec 31, 2020

@github-actions
Copy link

github-actions bot commented Feb 2, 2021

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale Stale PR or inactive for long period of time. label Feb 2, 2021
@encukou
Copy link
Member

encukou commented Feb 2, 2021

The PEP is almost ready: https://discuss.python.org/t/pre-pep-maintaining-the-stable-abi/6986

@WillAyd, do you mind if I close this PR and take over the effort?

@encukou encukou removed the stale Stale PR or inactive for long period of time. label Feb 2, 2021
@WillAyd
Copy link
Contributor Author

WillAyd commented Feb 2, 2021 via email

@encukou encukou closed this Feb 2, 2021
encukou added a commit to encukou/cpython that referenced this pull request Apr 29, 2021
This replaces the existing :stableabi:, which wasn't really used.

Doc/data/stable_abi.dat is expanded to include all relevant
info (kind of the symbol and version it was added in), and the
c_annotations Sphinx extension reads this file and adds
notes similar to ones added by :stableabi: (which wasn't really
used).

Relevant prior work: python#23185
Co-authored-by: Will Ayd <[email protected]>
@encukou
Copy link
Member

encukou commented Apr 29, 2021

GH-25668 proposes to add the notes, along with when a particular API was added.

@WillAyd WillAyd deleted the limited-doc-updates branch November 6, 2022 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants