You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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.
I use a method that reads DESCRIPTION, and increments whatever value of .z it finds every time you build. So one could set the value to 0.99.3 and let it go from there. I build often, so it’s not unusual for my packages to end up at something like 0.9.339 I think the main thing is that .z be unique for every build.
Food for Thought.
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?
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
Activity
bryanhanson commentedon May 13, 2020
I concur with this. I think there are some other things we could do with the
Makefileas 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.cbeleites commentedon May 13, 2020
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.
bryanhanson commentedon May 13, 2020
cbeleites commentedon May 13, 2020
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.
ximeg commentedon May 13, 2020
@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.
bryanhanson commentedon May 20, 2020
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 createDESCRIPTIONfiles 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.zaccording to... what scheme?GegznaV commentedon May 21, 2020
👍
ximeg commentedon May 24, 2020
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:
.z.yx