Skip to content

[Build] Release new version? Yes, we should! ๐Ÿฅณ But... will we? ๐Ÿ˜ฎโ€๐Ÿ’จ ย #37

Open

Description

@nstarman

with the expanded python version support.

Activity

  1. acecchini commented on Oct 11, 2026

    @acecchini
    Collaborator

    Hey, yes will work on it ๐Ÿ˜„

    And btw, with the approval of @leycec , I would be more than happy to accept new maintainers!

  2. nstarman commented on Oct 11, 2026

    @nstarman
    ContributorAuthor

    If that's an invitation, then thank you! But my plate is a bit overflowing. I'm happy to contribute resolving PRs for Issues I raise.

  3. acecchini commented on Oct 11, 2026

    @acecchini
    Collaborator

    Yeah fair enough, happy to get any help :)

  4. leycec commented on Oct 11, 2026

    @leycec
    Member

    Love to see all the fiery collab! Both @beartype and plum can personally confirm that @nstarman is super-amazing, highly motivated, and a frequent contributor of superb PRs. Pretty sure he's also drowning under a deluge of MIT-supported research goals. I may not know what @GalacticDynamics is, but I know that it can't be easy. ๐Ÿ˜‚

  5. nstarman commented on Nov 23, 2026

    @nstarman
    ContributorAuthor

    Following up on this with a concrete user: quax#304 replaces jaxtyping with bearshape in quax, and CI is green on Python 3.11, 3.13 and 3.14, on the oldest supported dependencies, and on the newest.

    It currently has to take bearshape 0.1.0rc1 from git ([tool.uv.sources], pinned in uv.lock), because PyPI only has 0.0.1. That release pins beartype<0.23, and under beartype 0.22.9 beartype.claw cannot instrument quax. So the quax PR stays a draft, and the quax package metadata says bearshape>=0.1.0rc1, which nobody can install from PyPI until bearshape publishes.

    Could you publish 0.1.0rc1, or 0.1.0, to PyPI? A pre-release on PyPI would already unblock quax.

    I read the union-rollback note in docs/features/composition.md that holds the release. Quax does not put named dimensions inside X | Y unions, and jaxtyping rejects the same valid call, so it is not what stands between quax and a release. I'm happy to help test an rc against quax's suite, which has about 1260 tests.

    ๐Ÿค– Posted with Claude Code

  6. leycec commented on Nov 23, 2026

    @leycec
    Member

    Excellent idea! Sorry for the quax blocker, @nstarman, as well as for not responding to your @beartype PRs in a timely manner. I acknowledge the latter was rude. Please forgive me for I have no free time and I must scream. I need five clones of myself to do this @beartype thing. Instead, I am bald. ๐Ÿ˜ <-- bald emoji is appropriate

    I'm currently tied up with pounding on @beartype regressions (e.g., this). But... what the heck, am I right? You only live once (unless reincarnation in isekai fantasy worlds is actually a thing, in which case I question who designed this Universe). What I'm trying to say is...

    I'd be happy to release bearshape 0.1.0 if @acecchini doesn't get to it first. Let's give @acecchini a few days to respond. If we don't hear back by later this week, I'll happily consider pushing this out myself.

    @acecchini: I know you're crazy busy with life, the Universe, and everything. Would you like me to tackle this next bearshape release? If so, what's your usual release workflow? Under @beartype, everything's fully automated by pushing tags: whenever I push a new tag, a GitHub Actions-based workflow automatically releases that tag as a new public @beartype release concurrently published to both PyPI and as a GitHub Release. Does bearshape have something similar like that? Or this is more of a "Let's just wing it and hope for the best!" sorta early-days project? Either way's fine, of course. I'm trying not to step on anyone's toes and probably failing. ๐Ÿ˜…

  7. changed the title [-]Release new version?[/-] [+][Build] Release new version? Yes, we should! ๐Ÿฅณ But... will we? ๐Ÿ˜ฎโ€๐Ÿ’จ [/+] on Nov 28, 2026
  8. leycec commented on Nov 28, 2026

    @leycec
    Member

    ...uh oh. @acecchini appears to be out to lunch. This means I get to "adopt" yet another @beartype project, doesn't it? I really didn't want to go there, which is why I haven't gone anywhere. Yet, tensor type-checking is a critical use case for @beartype. Guess I'm now going there.

    I hereby appoint myself co-maintainer of bearshape. ๐Ÿฅณ -> ๐Ÿฅน

    bearshape: The Scariest Release Workflow I Ever Seen

    Unfortunately, a roadblock now appears. I can do almost all of the bearshape 0.1.0 release process myself โ€“ but I can't do all of it. Actually, I probably can. Technically. But I don't quite grok the GitHub Actions-based bearshape PyPI release workflow. It's super intense. No human would ever author something like that. That's not to say that it's bad. It isn't. It's actually quite impressive. But... I need an LLM to help me understand exactly what I need to do to publish bearshape 0.1.0. Because I'm pretty sure I need to do something.

    Honestly, most of that workflow should be truncated to use standard off-the-shelf GitHub Actions like 'ncipollo/release-action@v1' and 'pypa/gh-action-pypi-publish@release/v1'. Basically, it should look like @beartype's own release workflow. Most of the other weirdo stuff that workflow is doing should probably just be removed. It's obfuscatory and doesn't seem to actually contribute anything meaningful to the release process.

    Likewise, third-party GitHub Actions should be pinned to well-known version numbers (e.g., actions/checkout@v1) rather than git hashes (e.g., actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1). Yet more LLM weirdness, I guess.

    bearshape: I Scared, Yet I Stumble in the Darkness

    Annnnyway. Specifically, I think (in order):

    1. I need to manually modify the .github/workflows/pypi.yml file to avoid running the problematic contract job entirely. The contract job appears to require that unions work, which... they obviously don't. Unions aren't going to work anytime soon. So, there's no point in requiring that. Pretty sure unions never worked. They shouldn't have. If Claude thought they used to under a prior @beartype version, Claude's almost certainly wrong. After all, unions never worked in jaxtyping either. Specifically:

      ...
      publish:
        name: Publish validated artifacts to PyPI
        if: needs.resolve.outputs.publish == 'true'
      
        # Pretty sure I need to edit this...
        needs: [resolve, validate, contract, evidence]
        # ...to instead look like this:
        needs: [resolve, validate, evidence]
    2. I need to manually push out a new bearshape release tag named v0.1.0. The "v" prefix appears to be mandatory, which is sensible. @beartype and pytest-beartype both behave similarly. So, at least that much makes sense. Good!

    Pretty sure that it's? No idea. There doesn't appear to be any internal documentation I could find on how to push out new bearshape releases. I'm flying by ignorance here.

    @nstarman: You Now Reluctantly Enter the Picture

    Actually... I do have an idea! Hah, hah! @nstarman, since you also appreciate the power of the LLM, would you mind prompting an LLM buddy for advice? Notably, does the two-step plan outlined above actually make sense? Is that all I need to do? Or do I need to hack on a few other files, too?

    Annnnnyway. It's Friday night! Yay! Have a great weekend, everybody! If I don't hear back from anyone by Monday or Tuesday, I'll probably have a go at this with the two-step plan outlined above. The worst that can happen is that the workflow fails to push to PyPI and I have to try again. That's fine. I'm fine with brute-forcing this until something eventually works and PyPI releases a new bearshape version. By any means necessary. ๐Ÿ˜ฌ -> ๐Ÿ˜

  9. acecchini commented on Nov 28, 2026

    @acecchini
    Collaborator

    Hey @leycec, sorry for vanishing on you, and thank you so much for stepping in! ๐Ÿ™ Honestly, I'd love for you to take bearshape over completely, not just as co-maintainer. Life has pulled me elsewhere, and it deserves someone who'll actually be around. I didn't want to just throw it over the fence, though, so I spent today tidying it up for you.

    Your two-step plan was really close, but it wouldn't quite have shipped. The old pypi.yml only fired on a published GitHub Release, not on a tag push. It also wouldn't accept v0.1.0 while pyproject.toml still said 0.1.0rc1, and that union contract job was wired in two places. You were right that it was way too intense, so I ripped most of it out.

    That's all in #64. It bumps to 0.1.0 and documents the union leak as a known limitation instead of a blocker. The release workflow is now basically a copy of beartype's own: push a v* tag, it checks the tag matches the version, creates the GitHub Release with ncipollo/release-action@v1, then runs uv build and pypa/gh-action-pypi-publish@release/v1. Actions are pinned to tags instead of hashes (setup-uv is on v10.3.0, since it has no moving v10 tag). CI is one ci.yml ending in a single check job, and it includes the beartype prerelease lane you asked for in #62. All the ExecPlans, evidence files and upstream-proposal machinery are gone too. CI is green, but I've left the merge to you since it's your setup now. Change anything you don't like and squash-merge when you're happy.

    After that, releasing is just:

    git tag v0.1.0 && git push origin v0.1.0

    The one thing left before tagging is PyPI. I've invited you as an Owner of https://pypi.org/project/bearshape/. Once you accept, add a trusted publisher under Publishing (owner beartype, repo bearshape, workflow pypi.yml, environment pypi), and then I'll remove myself. GitHub is already sorted: protect-main now requires just check, and github-pages allows v* tags so the docs deploy on release. docs/maintainers/releasing.md has the same steps written down.

    Since v0.1.0 will be the very first real run of the new workflow, it's worth keeping an eye on it. If the PyPI upload trips, fixing the publisher and re-running the failed job is totally safe.

    One more thing for later: there is a bearshape-side fix for the union leak. It replays the call's bindings when it spots a conflict, so plain beartype users pay nothing. I kept it out of 0.1.0, but I'll open it as a separate PR you can look at whenever, or happily ignore. #59 and #63 are covered by #64, so they can go.

    @nstarman: once 0.1.0 is on PyPI, quax#304 can finally point at bearshape>=0.1.0. If you get a chance to run quax's suite against it, that would be amazing.

    Thanks again, both of you. It's in good hands! ๐Ÿป

  10. nstarman commented on Nov 28, 2026

    @nstarman
    ContributorAuthor

    @nstarman: once 0.1.0 is on PyPI, quax#304 can finally point at bearshape>=0.1.0. If you get a chance to run quax's suite against it, that would be amazing.

    Happy to help.

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