Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 91585d4

Browse files
authored
Add Version class to __all__ export. Fix #410
1 parent 9227686 commit 91585d4

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

changelog.d/410.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Export functions properly using `__all__` in `__init__.py`.

src/semver/__init__.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,36 @@
3737
__maintainer_email__,
3838
SEMVER_SPEC_VERSION,
3939
)
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+
]

0 commit comments

Comments
 (0)