Skip to content

Bumping to a prerelease version #753

@tmke8

Description

@tmke8

It would be great if it was possible to bump versions to 1.2.3.dev1, 1.2.3a3, 1.2.3b2, 1.2.3rc4 and so on. (As specified in the version scheme.)

There is some prior art in poetry and hatch (links are to the docs of the version bump commands).

Something like this might make sense:

  • devmajor, devminor, devpatch: same as major, minor, patch but add .dev1 at the end
  • next-phase: map .devX -> a1, aX -> b1, bX -> rc1, rcX -> , -> .post1
  • prerelease: increment the number within the prerelease level, so a1 -> a2, rc2 -> rc3, and so on
    • this bump command would fail if the current version is not a prerelease version

EDIT: in case .dev and .post releases are too unusual, just a, b, and rc would also work

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