Skip to content

chore: prepare for 3.0.0rc4 #5736

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

henryiii
Copy link
Collaborator

@henryiii henryiii commented Jun 19, 2025

Description

Preparing for the final (?) RC.

I used this ChatGPT generated script:

import re
from collections import Counter

# Replace this with reading from your changelog file if needed
with open("docs/changelog.md", "r", encoding="utf-8") as f:
    text = f.read()

# Find all PR references like [#5705](https://github.com/pybind/pybind11/pull/5705)
pattern = r'\[#(\d+)\]\(https://github\.com/pybind/pybind11/pull/\1\)'
matches = re.findall(pattern, text)

# Count occurrences
counter = Counter(matches)

# Find duplicates
duplicates = [pr for pr, count in counter.items() if count > 1]

if duplicates:
    print("Duplicate PRs found:")
    for pr in duplicates:
        print(f"- #{pr} (appears {counter[pr]} times)")
else:
    print("No duplicate PRs found.")

To find and remove a few duplicates.


📚 Documentation preview 📚: https://pybind11--5736.org.readthedocs.build/

Signed-off-by: Henry Schreiner <[email protected]>
Copy link
Collaborator

@rwgk rwgk left a comment

Choose a reason for hiding this comment

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

Thanks!

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.

2 participants