Skip to content

Commit

Permalink
release Hatch v1.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek committed Jan 25, 2024
1 parent fd27c8a commit 00c5ae7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions docs/history/hatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## Unreleased

## [1.9.3](https://github.com/pypa/hatch/releases/tag/hatch-v1.9.3) - 2024-01-25 ## {: #hatch-v1.9.3 }

***Fixed:***

- Fix loading of local plugins to account for newly released versions of a dependency

## [1.9.2](https://github.com/pypa/hatch/releases/tag/hatch-v1.9.2) - 2024-01-21 ## {: #hatch-v1.9.2 }

***Fixed:***
Expand Down
8 changes: 4 additions & 4 deletions src/hatch/plugin/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
def load_plugin_from_script(
path: str, script_name: str, plugin_class: type[EnvironmentCollectorInterface], plugin_id: str
) -> type[EnvironmentCollectorInterface]:
import importlib
from importlib.util import module_from_spec, spec_from_file_location

spec = importlib.util.spec_from_file_location(script_name, path) # type: ignore
module = importlib.util.module_from_spec(spec) # type: ignore
spec.loader.exec_module(module)
spec = spec_from_file_location(script_name, path)
module = module_from_spec(spec) # type: ignore
spec.loader.exec_module(module) # type: ignore

plugin_finder = f'get_{plugin_id}'
names = dir(module)
Expand Down

0 comments on commit 00c5ae7

Please sign in to comment.