Skip to content

Commit 00c5ae7

Browse files
committed
release Hatch v1.9.3
1 parent fd27c8a commit 00c5ae7

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

docs/history/hatch.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
88

99
## Unreleased
1010

11+
## [1.9.3](https://github.com/pypa/hatch/releases/tag/hatch-v1.9.3) - 2024-01-25 ## {: #hatch-v1.9.3 }
12+
13+
***Fixed:***
14+
15+
- Fix loading of local plugins to account for newly released versions of a dependency
16+
1117
## [1.9.2](https://github.com/pypa/hatch/releases/tag/hatch-v1.9.2) - 2024-01-21 ## {: #hatch-v1.9.2 }
1218

1319
***Fixed:***

src/hatch/plugin/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
def load_plugin_from_script(
1010
path: str, script_name: str, plugin_class: type[EnvironmentCollectorInterface], plugin_id: str
1111
) -> type[EnvironmentCollectorInterface]:
12-
import importlib
12+
from importlib.util import module_from_spec, spec_from_file_location
1313

14-
spec = importlib.util.spec_from_file_location(script_name, path) # type: ignore
15-
module = importlib.util.module_from_spec(spec) # type: ignore
16-
spec.loader.exec_module(module)
14+
spec = spec_from_file_location(script_name, path)
15+
module = module_from_spec(spec) # type: ignore
16+
spec.loader.exec_module(module) # type: ignore
1717

1818
plugin_finder = f'get_{plugin_id}'
1919
names = dir(module)

0 commit comments

Comments
 (0)