1
1
.. _semver2-to-3 :
2
2
3
+
3
4
Migrating from semver2 to semver3
4
5
=================================
5
6
@@ -14,8 +15,8 @@ For a more detailed overview of all the changes, refer
14
15
to our :ref: `changelog `.
15
16
16
17
17
- Use Version instead of VersionInfo
18
- ----------------------------------
18
+ Use :class: ` Version ` instead of :class: ` VersionInfo `
19
+ ----------------------------------------------------
19
20
20
21
The :class: `VersionInfo ` has been renamed to :class: `Version `
21
22
to have a more succinct name.
@@ -29,9 +30,20 @@ If you still need the old version, use this line:
29
30
from semver.version import Version as VersionInfo
30
31
31
32
33
+ Use :class: `Version ` instead of :meth: `Version.parse `
34
+ -----------------------------------------------------
35
+
36
+ The :class: `~semver.version.Version ` class supports now different variants
37
+ how a version can be called (see section :ref: `sec_creating_version `
38
+ for more details).
39
+
40
+ It's important to know that you do not need to use
41
+ :meth: `Version.parse <semver.version.Version.parse> ` anymore. You
42
+ can pass a string directly to :class: `~semver.Version `.
43
+
32
44
33
- Use semver.cli instead of semver
34
- --------------------------------
45
+ Use :mod: ` semver.cli ` instead of :mod: ` semver `
46
+ ----------------------------------------------
35
47
36
48
All functions related to CLI parsing are moved to :mod: `semver.cli `.
37
49
If you are such functions, like :func: `semver.cmd_bump <semver.cli.cmd_bump> `,
0 commit comments