Skip to content

More usual version numbers #123

Closed
Closed

Description

@cbeleites

I propose to move to the more "usual" version number system of having patch numbers in the 3rd place rather than the date.

This has advantages:

  • We get one step further to not (or almost never) needing make, i.e. being able to use devtools and RStudio build functionality.
  • The current version numbers also trigger a warning on R CMD check --as-cran. This means that on submission to CRAN I always have to add an explanation.

I suggest that hyperSpec version 1.0 is a good point to do that.

Activity

  1. added this to the Version 1.0 milestone on May 13, 2020
  2. added
    Type: proposal 💡
    on May 13, 2020
  3. bryanhanson commented on May 13, 2020

    @bryanhanson
    Collaborator

    I concur with this. I think there are some other things we could do with the Makefile as well, but I'll put those in another issue in the near future. Claudia, should we go ahead and implement x.y.z per semantic versioning now? We could work at 0.99.1 and increment .z for the time being. I can do this if you like, once the all the demons are out of the build system.

  4. cbeleites commented on May 13, 2020

    @cbeleites
    OwnerAuthor

    The difficulty with that is that 0.99.1 < 0.99.20200513
    However, with the usual versioning, the version bumps would be manual. And that transition could be done immediately by removing the Makefile target to update the date in the version number while keeping the date system until we step to 1.0.

  5. bryanhanson commented on May 13, 2020

    @bryanhanson
    Collaborator
  6. cbeleites commented on May 13, 2020

    @cbeleites
    OwnerAuthor

    CRAN checks include that z needs to be larger than the previous one if x or y did not increase. We can do that though.

  7. ximeg commented on May 13, 2020

    @ximeg
    Collaborator

    The difficulty with that is that 0.99.1 < 0.99.20200513

    @cbeleites Why don't we make 0.100.1, which is bigger than 0.99.whatever?

    Here is a link to semver.org for reference.

  8. self-assigned this
    on May 18, 2020
  9. bryanhanson commented on May 20, 2020

    @bryanhanson
    Collaborator

    So what is the desired behavior here? When do you (any of you) want to increment .z? In my own work I increment every time I build, that way there is always a unique version. I think that's consistent with the principles of semantic versioning. But it does create DESCRIPTION files that constantly change date & version. In a group setting we can just live with that, or try to remember not to commit it, or change .z according to... what scheme?

  10. GegznaV commented on May 21, 2020

    @GegznaV
    Collaborator

    Why don't we make 0.100.1, which is bigger than 0.99.whatever?

    👍

  11. ximeg commented on May 24, 2020

    @ximeg
    Collaborator

    So what is the desired behavior here? When do you (any of you) want to increment .z? In my own work I increment every time I build, that way there is always a unique version. I think that's consistent with the principles of semantic versioning. But it does create DESCRIPTION files that constantly change date & version. In a group setting we can just live with that, or try to remember not to commit it, or change .z according to... what scheme?

    In my opinion, it makes sense to assign version numbers only to the releases (i.e. commits in the master) branch. As soon as we have a stable state (working builds, no errors, no warnings, no notes) that can go to CRAN, we should start to release (merge to master) on a regular basis.

    Once we start the release, we should update the version number:

    • No significant changes or only small bugfixes? -> increment .z
    • New functionality? New vignettes? -> increment .y
    • Changed behavior? New package structure? Breaking things? -> increment x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type: proposal 💡

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions