Skip to content

Commit 070b834

Browse files
committed
fix: remove bumpversion
1 parent 42c9522 commit 070b834

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

craft_parts/__init__.py

+13-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
"""Craft a project from several parts."""
1818

19-
__version__ = "2.1.4"
20-
2119
from . import plugins
2220
from .actions import Action, ActionProperties, ActionType
2321
from .dirs import ProjectDirs
@@ -35,7 +33,20 @@
3533
)
3634
from .steps import Step
3735

36+
37+
try:
38+
from ._version import __version__
39+
except ImportError: # pragma: no cover
40+
from importlib.metadata import version, PackageNotFoundError
41+
42+
try:
43+
__version__ = version("craft_parts")
44+
except PackageNotFoundError:
45+
__version__ = "dev"
46+
47+
3848
__all__ = [
49+
"__version__",
3950
"Features",
4051
"Action",
4152
"ActionProperties",

0 commit comments

Comments
 (0)