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
This has been discussed in several issues (like #93 ) and was met with fairly unanimous consent in the last community meeting. If there are major objections we're still happy to hear them, but at this point I think that the default choice is to move to CalVer rather than wait-and-see.
This issue is here to serve as a general announcement, and for logistics about the move. I would expect this change to happen within the next month.
Reacted by Matthew Rocklin, Benjamin Zaitlen, Andrea Zonca, jakirkham, Jim Crist-Harif, James Bourbeau, Anderson Banihirwe, Gil Forsyth, Pradyun Gedam, Dror Speiser and 5 more
Reacted by Matthew Rocklin, Weiyuan Wu, Ignacio Paricio and Marie Hoeger
Yeah, following up on @djhoese point, it doesn't happen often, but we might publish a release, discover a critical bug and want to publish a fixed release the same day. What about YY.MM.XX where XX is a zero-padded increment for the releases that month? This seems similar to what Ubuntu and Twisted do
What about YY.MM.XX where XX is a zero-padded increment for the releases that month?
That sounds good to me, but makes it a bit harder to automate the versioning (we'd have to check some central registry to see what the last release was or something). Using a date is much simpler, since the version is based on the date alone. Speaking of this, we'd need to transition from versioneer to some other solution, preferably one that prevents duplicating version info between setup.py and __init__.py.
What about doing YYYY.MM.DD? This is typically what I see projects using CalVer do. For example certifi
Some examples of YY.MM.DD include Ubuntu and pip. I think it comes down to whether we want users to identify our version as a date, or hide the calendar nature of the versioning.
If it doesn't cause a problem, I would prefer zero-padding, so that string sort and number sort do the same thing.
That's what using StrictVersion/LooseVersion is for. Even our existing versioning scheme doesn't allow for string sorting of versions. I'd prefer to not zero-pad if possible, as the zeros don't add anything meaningful, and don't follow pep440.
puts on "I know waaaay too much about the Python packaging standards" hat
20.01.01 / 2020.01.01 are valid PEP 440 versions.
>>> from packaging.version import Version
>>> v = Version("2020.01.01")
The fact that it does not error out here means that it's a valid PEP 440 version. The only thing that you may want to worry about here is that the "canonical" form of that version isn't the same as the version itself:
Overall, the choice between 0Y/0M/0D vs YY/MM/DD is purely a aesthetic one -- either will work with basically every Python Packaging tool that follows the standards.
I'd also suggest we do M instead of MM (no zero pad). Slight preference for always using the canonical versions.
My preference is to use MM, mostly to support people who foolishly do library.__version__ > "2020.9" (like myself). However I also don't understand the importance of canonical version vs version. My (naive) guess is that this is something that only packaging people think about, and that they are more capable of handling the dissonance than naive users. I could be entirely wrong though.
Reacted by Julia Signell, James Bourbeau, Matthew Rocklin, Mahmoud Hashemi, Keith Kraus, Gil Forsyth, Joshua Patterson, Benjamin Zaitlen and Jacob Tomlinson
I now voted for MM because I understand it to not have zero padding and M to have zero padding. Zero padding breaks SemVer2 specification, and breaking that means Helm charts need another version when publishing as Helm3 requires SemVer2 compatible versions.
@jacobtomlinson does it remain the most popular given this information? I for example would also vote for zero padded unless it were for this. Does it merit a recount?
IMO the Helm charts service a small part of the community, so probably shouldn't dictate large decisions like this. But happy to hear from others if they feel differently.
Reacted by Erik Sundell, Matthew Rocklin and Gil Forsyth
Anyone who wishes to change their vote could comment here, but I wouldn't suggest calling for a new vote. I Still think passing is better, because it ensures numeric ordering and text ordering agree and is a closer match to scientific/iso formats.
Hi, I've noticed that dask-ml is still following its original versioning scheme. Are there any plans or discussions, regarding updating it to CalVer as well?
I don't think there's a hard rule about sub-projects switching to CalVer (though some projects like dask-cloudprovider and dask-kubernetes have done so). I recommend opening up an issue in dask-ml about CalVer
Activity
mrocklin commentedon Oct 6, 2020
I suggest that we use the versioning scheme
YY.MM.DD, so if we were to release today it would be versionjakirkham commentedon Oct 6, 2020
What about doing
YYYY.MM.DD? This is typically what I see projects using CalVer do. For examplecertifidjhoese commentedon Oct 6, 2020
What about a patch release in the same day?
jcrist commentedon Oct 6, 2020
Whatever we choose we'll want to make sure it's pep440 compatible. Rules here: https://www.python.org/dev/peps/pep-0440/#public-version-identifiers
jrbourbeau commentedon Oct 6, 2020
Yeah, following up on @djhoese point, it doesn't happen often, but we might publish a release, discover a critical bug and want to publish a fixed release the same day. What about
YY.MM.XXwhereXXis a zero-padded increment for the releases that month? This seems similar to what Ubuntu and Twisted dojcrist commentedon Oct 6, 2020
That sounds good to me, but makes it a bit harder to automate the versioning (we'd have to check some central registry to see what the last release was or something). Using a date is much simpler, since the version is based on the date alone. Speaking of this, we'd need to transition from versioneer to some other solution, preferably one that prevents duplicating version info between
setup.pyand__init__.py.gforsyth commentedon Oct 6, 2020
potential small issue (that we can figure a way around), I don't think you can have a zero-pad between
.since pep440 usesint()to parse some stuff.Could do
YYYYMMXX/YYMMXX(which is admittedly a bit harder to read)jcrist commentedon Oct 6, 2020
Seems to work fine for me:
We also don't need to zero pad at all, since the
.delimiter already handles splitting between year/month/point release.gforsyth commentedon Oct 6, 2020
Sorry, I wasn't clear. I meant the zero-pad won't survive pep440, which is probably not a huge deal.
martindurant commentedon Oct 6, 2020
If it doesn't cause a problem, I would prefer zero-padding, so that string sort and number sort do the same thing.
mrocklin commentedon Oct 6, 2020
Some examples of
YY.MM.DDinclude Ubuntu and pip. I think it comes down to whether we want users to identify our version as a date, or hide the calendar nature of the versioning.mrocklin commentedon Oct 6, 2020
We can always bend time and travel to the future by a day if we need to.
jcrist commentedon Oct 6, 2020
That's what using
StrictVersion/LooseVersionis for. Even our existing versioning scheme doesn't allow for string sorting of versions. I'd prefer to not zero-pad if possible, as the zeros don't add anything meaningful, and don't follow pep440.martindurant commentedon Oct 6, 2020
I don't insist, and that's good enough reason not to... but you do occasionally end up dealing with git tag strings or pip installable blob files
pradyunsg commentedon Oct 6, 2020
puts on "I know waaaay too much about the Python packaging standards" hat
20.01.01/2020.01.01are valid PEP 440 versions.The fact that it does not error out here means that it's a valid PEP 440 version. The only thing that you may want to worry about here is that the "canonical" form of that version isn't the same as the version itself:
However, note that things will still work even if there's zero-padding:
Overall, the choice between
0Y/0M/0DvsYY/MM/DDis purely a aesthetic one -- either will work with basically every Python Packaging tool that follows the standards.Oh, and... https://pypi.org/project/calver/ is a thing you might want to use, in case you're using setuptools. :)
PS: Please don't use distutils for... well... anything. pip, PyPI and most of the other Python packaging uses
packaging.versionfor handling versions -- it's the reference/main implementation of PEP 440 and friends. At the cost of using a slightly grim analogy, distutils is brain-dead and we're gonna turn off the life support soon.17 remaining items
mrocklin commentedon Oct 26, 2020
My preference is to use
MM, mostly to support people who foolishly dolibrary.__version__ > "2020.9"(like myself). However I also don't understand the importance of canonical version vs version. My (naive) guess is that this is something that only packaging people think about, and that they are more capable of handling the dissonance than naive users. I could be entirely wrong though.jsignell commentedon Oct 27, 2020
I prefer
MMas well. Should we do a 👍 👎 vote?jsignell commentedon Oct 27, 2020
MMjsignell commentedon Oct 27, 2020
Mmrocklin commentedon Oct 27, 2020
I voted for
MM, but I'd also love to learn more about the downsides of usingMMbefore making that decision.consideRatio commentedon Dec 14, 2020
I now voted for
MMbecause I understand it to not have zero padding andMto have zero padding. Zero padding breaks SemVer2 specification, and breaking that means Helm charts need another version when publishing as Helm3 requires SemVer2 compatible versions.jacobtomlinson commentedon Dec 14, 2020
@consideRatio isn't
MMthe zero padded option?consideRatio commentedon Dec 14, 2020
Ah, then I prefer the non-zero-padded option, and I assume you are right that it is represented by
M. But, only because Helm charts require it =/About Helm chart's constraints
I know of three Helm charts part of the dask organizations, all of these are required to have a non-zero-padded version in their Chart.yaml files.
jacobtomlinson commentedon Dec 14, 2020
Thanks for sharing, I wasn't aware of this limiation in Helm.
I guess given that zero-padded is the most popular option we will just have to make the charts outliers which use the non-zero-padded version.
consideRatio commentedon Dec 14, 2020
@jacobtomlinson does it remain the most popular given this information? I for example would also vote for zero padded unless it were for this. Does it merit a recount?
jacobtomlinson commentedon Dec 14, 2020
IMO the Helm charts service a small part of the community, so probably shouldn't dictate large decisions like this. But happy to hear from others if they feel differently.
martindurant commentedon Dec 14, 2020
Anyone who wishes to change their vote could comment here, but I wouldn't suggest calling for a new vote. I Still think passing is better, because it ensures numeric ordering and text ordering agree and is a closer match to scientific/iso formats.
hristog commentedon Apr 3, 2021
Hi, I've noticed that
dask-mlis still following its original versioning scheme. Are there any plans or discussions, regarding updating it to CalVer as well?jrbourbeau commentedon Apr 3, 2021
I don't think there's a hard rule about sub-projects switching to CalVer (though some projects like
dask-cloudprovideranddask-kuberneteshave done so). I recommend opening up an issue indask-mlabout CalVer