Skip to content

Publishing on PyPI #50

Closed
Closed

Description

@leakec

@henryiii Is there a reason this package isn't published on PyPI? It looks like PyPI has a repo for it, but it has not been updated since 2021. Would it be possible to add API key for the PyPI project to this repo as a secret so we could write a GitHub action to publish the package to PyPI?

Activity

  1. henryiii commented on Dec 3, 2025

    @henryiii
    Collaborator

    Trusted publishing would be better than an API key. ;)

    I have no idea if there's a reason, the readme has had instructions for git installs for a while. @wjakob is the sole owner on PyPI.

  2. leakec commented on Dec 3, 2025

    @leakec
    CollaboratorAuthor

    +1 on trusted publishing (my bad, forgot they added this)

    I think the git install is nice if one wants a bleeding-edge version, but it is convenient to have older versions easily accessible, especially if projects are stuck on an old OS or with an older Python version no longer supported by the newest versions. I'm happy to do the work to create the GitHub action to publish the package if @wjakob can help us set up trusted publising and/or add someone else to the PyPI project who can do it.

  3. leakec commented on Apr 10, 2026

    @leakec
    CollaboratorAuthor

    Just pinging @wjakob with a gentle reminder about this. We are hoping to set up trusted publishing and/or add someone else to the PyPI project who can do it.

  4. wjakob commented on Apr 10, 2026

    @wjakob
    Member

    This sounds like a good idea, but I won't get to this any time soon. AFAIK @henryiii has admin access to this repo.

  5. henryiii commented on Apr 10, 2026

    @henryiii
    Collaborator

    The problem is I don't have access to the project on PyPI. :)

    https://pypi.org/project/pybind11_mkdoc/

  6. wjakob commented on Apr 10, 2026

    @wjakob
    Member

    I invited you.

  7. henryiii commented on Apr 10, 2026

    @henryiii
    Collaborator

    Thanks! The maintainer role can't add trusted publishing, though. (Or even yank releases).

    Image

    https://docs.pypi.org/trusted-publishers/adding-a-publisher/

    If you want to add it, it's actually quite simple, we could use cd.yml for the workflow and pypi for the environment.

  8. leakec commented on Jul 1, 2026

    @leakec
    CollaboratorAuthor

    Just pinging @henryiii and @wjakob to see where this landed and find out what else needs to be done. Please let me know if there is anything I can do to help.

  9. leakec commented on Aug 3, 2026

    @leakec
    CollaboratorAuthor

    Just pinging @henryiii @wjakob to see where this is at and find out what else needs to be done.

  10. wjakob commented on Aug 4, 2026

    @wjakob
    Member

    I added @henryiii as co-owner.

  11. leakec commented on Aug 4, 2026

    @leakec
    CollaboratorAuthor

    @wjakob Excellent, thank you! @henryiii Hopefully this should be sufficient to add the trusted publishing. Please let me know if there is anything I can help with. Thanks!

  12. henryiii commented on Aug 5, 2026

    @henryiii
    Collaborator

    I've set up trusted publishing assuming cd.yml as the workflow name, pypi as the environment (gets created automatically).

  13. leakec commented on Aug 6, 2026

    @leakec
    CollaboratorAuthor

    @henryiii Awesome! I see you've got everything squared away from #58. Would you be okay with publishing a new release, as the version currently on PyPI is from 2021. If so, do you have any opinions on what the new version number should be?

    I also see you've got #59 open with some issues Fable found and have already addressed some of them in #60. Happy to wait to publish on PyPI until this is closed or more of the issues in #59 are addressed if you feel they are important.

  14. henryiii commented on Aug 6, 2026

    @henryiii
    Collaborator

    It would be nice to address them before release, so we can release something stable (though I'm fine either way). Would you have a chance to review? If so, I can address the rest.

  15. henryiii commented on Aug 6, 2026

    @henryiii
    Collaborator

    RE: version number, what about 3.0? (2.6.2 seems to be the old one).

    GitHub Actions is currently really flaky, trying to release pybind11 3.1, but a runner won't pick up the job, so probably best to wait just a tiny bit before releasing anyway.

  16. leakec commented on Aug 6, 2026

    @leakec
    CollaboratorAuthor

    Sounds good, I'm fine waiting until we can fix all the issues in #59 to release, no rush from my end. I can review #60 in a few minutes.

    Yeah, 3.0 was what I was thinking as well, since there have been a lot of changes since the last release.

  17. henryiii commented on Aug 14, 2026

    @henryiii
    Collaborator

    Here's a draft changelog, build using Qwen 3.8:27b in OpenCode locally, but then fixed with Claude (Qwen didn't go back far enough).

    @leakec Should we put this in repo, or just have it in GH releases?

    🤖 AI text below 🤖

    Breaking changes

    Added

    Changed

    Fixed

    Performance

  18. leakec commented on Aug 14, 2026

    @leakec
    CollaboratorAuthor

    @henryiii Sweet, this looks great! I'm open to either; do you have a preference? Just sticking it in GH releases is probably easiest, right?

  19. henryiii commented on Aug 14, 2026

    @henryiii
    Collaborator

    Fine to just put it in releases for now. Would you like to make the release?

  20. leakec commented on Aug 14, 2026

    @leakec
    CollaboratorAuthor

    Sure thing. I've drafted a release in the releases page. I've also bumped the version to 3.0.0. Is there anything else that is needed? If not, please let me know and I'll switch the release from draft to publish.

  21. henryiii commented on Aug 14, 2026

    @henryiii
    Collaborator

    I don't think so. Go for it!

  22. leakec commented on Aug 14, 2026

    @leakec
    CollaboratorAuthor

    Excellent, everything worked, and I was able to pip install pybind11_mkdoc! Thanks a ton for all the work you did for this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions