File tree Expand file tree Collapse file tree 4 files changed +38
-4
lines changed Expand file tree Collapse file tree 4 files changed +38
-4
lines changed Original file line number Diff line number Diff line change
1
+ Export functions properly using `__all__ ` in `__init__.py `.
Original file line number Diff line number Diff line change 1
1
"""
2
- semver package major release 3.
2
+ Semver package major release 3.
3
3
4
4
A Python module for semantic versioning. Simplifies comparing versions.
5
5
"""
37
37
__maintainer_email__ ,
38
38
SEMVER_SPEC_VERSION ,
39
39
)
40
+
41
+ __all__ = [
42
+ "bump_build" ,
43
+ "bump_major" ,
44
+ "bump_minor" ,
45
+ "bump_patch" ,
46
+ "compare" ,
47
+ "bump_prerelease" ,
48
+ "finalize_version" ,
49
+ "format_version" ,
50
+ "match" ,
51
+ "max_ver" ,
52
+ "min_ver" ,
53
+ "parse" ,
54
+ "parse_version_info" ,
55
+ "replace" ,
56
+ "cmd_bump" ,
57
+ "cmd_compare" ,
58
+ "cmd_nextver" ,
59
+ "cmd_check" ,
60
+ "createparser" ,
61
+ "process" ,
62
+ "main" ,
63
+ "Version" ,
64
+ "VersionInfo" ,
65
+ "__version__" ,
66
+ "__author__" ,
67
+ "__maintainer__" ,
68
+ "__author_email__" ,
69
+ "__description__" ,
70
+ "__maintainer_email__" ,
71
+ "SEMVER_SPEC_VERSION" ,
72
+ ]
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ def cmd_check(args: argparse.Namespace) -> None:
61
61
62
62
def cmd_compare (args : argparse .Namespace ) -> str :
63
63
"""
64
- Subcommand: Compare two versions
64
+ Subcommand: Compare two versions.
65
65
66
66
Synopsis: compare <VERSION1> <VERSION2>
67
67
Original file line number Diff line number Diff line change @@ -64,8 +64,8 @@ class Version:
64
64
See specification at https://semver.org.
65
65
66
66
:param major: version when you make incompatible API changes.
67
- :param minor: version when you add functionality in
68
- a backwards- compatible manner.
67
+ :param minor: version when you add functionality in a backwards-
68
+ compatible manner.
69
69
:param patch: version when you make backwards-compatible bug fixes.
70
70
:param prerelease: an optional prerelease string
71
71
:param build: an optional build string
You can’t perform that action at this time.
0 commit comments