Skip to content

Commit 4d06b40

Browse files
author
LittleCoinCoin
committed
refactor: remove outdated __version__ from hatch/__init__.py
Remove hardcoded version string (__version__ = '0.4.0') from hatch/__init__.py. This eliminates version duplication and establishes pyproject.toml as the single source of truth for version information. Version will now be retrieved dynamically via importlib.metadata.version('hatch'). Breaking change: Code that relied on hatch.__version__ will need to use importlib.metadata.version('hatch') instead. Related to: Phase 1 analysis (version_command_analysis_v1.md)
1 parent ac9919b commit 4d06b40

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

hatch/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
and interacting with the Hatch registry.
66
"""
77

8-
__version__ = "0.4.0"
9-
108
from .cli_hatch import main
119
from .environment_manager import HatchEnvironmentManager
1210
from .package_loader import HatchPackageLoader, PackageLoaderError

0 commit comments

Comments
 (0)