Skip to content

Commit

Permalink
Clarify version scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Dec 16, 2021
1 parent 02d6110 commit 430b12e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ Changelog
=========

Versions follow `CalVer <https://calver.org>`_ with a strict backwards compatibility policy.
The third digit is only for regressions.

The **first digit** of the version is the year.

This comment has been minimized.

Copy link
@mgorny

mgorny Dec 28, 2021

Contributor

I suspect you meant number, not digit. Digit is just one symbol [0-9].

This comment has been minimized.

Copy link
@hynek

hynek Dec 29, 2021

Author Member

Now this is embarrassing isn't it. 🙈

This comment has been minimized.

Copy link
@mgorny

mgorny Dec 29, 2021

Contributor

Nah, I suppose it's a pretty common thinko.

The **second digit** is incremented with each release, starting at 1 for each year.
The **third digit** is when we need to start branches for older releases (only for emergencies).

Put simply, you shouldn't ever be afraid to upgrade ``attrs`` if you're only using its public APIs.
Whenever there is a need to break compatibility, it is announced here in the changelog, and raises a ``DeprecationWarning`` for a year (if possible) before it's finally really broken.
Expand Down

0 comments on commit 430b12e

Please sign in to comment.