Skip to content

Commit 7dd624e

Browse files
committed
Doc: Add version rule to avoid surpises
Add a new section "Release Policy" to give a recommendation. As with the upcoming major 3 release of semver, a lot of things have been changed. To avoid any surprises for our users or even break their code base, a short version restriction can solve that. This should help users who wants to stay with release 2. Basically, it boils down to a line like `semver>=2,<3`. This can be added in any file which lists dependencies.
1 parent 25f5423 commit 7dd624e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/install.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
11
Installing semver
22
=================
33

4+
Release Policy
5+
--------------
6+
7+
As semver uses `Semantic Versioning`_, breaking changes are only introduced in major
8+
releases (incremented X in "X.Y.Z").
9+
10+
For users who want to stay with major 2 releases only, add the following version
11+
restriction::
12+
13+
semver>=2,<3
14+
15+
This line avoids surprises. You will get any updates within the major 2 release like
16+
2.9.1, 2.10.0, or above. However, you will never get an update for semver 3.0.0.
17+
18+
You can add this line in your file :file:`setup.py`, :file:`requirements.txt`, or any other
19+
file that lists your dependencies.
420

521
Pip
622
---
@@ -103,3 +119,6 @@ Ubuntu
103119
2. Install the package::
104120

105121
$ sudo apt-get install python3-semver
122+
123+
124+
.. _semantic versioning: http://semver.org/

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy