Metadata-Version: 2.4
Name: hatch-lazyimports
Version: 0.1.1
Summary: Hatch plugin to automaticilly detect and fill lazyimport entrypoint
Project-URL: Repository, https://github.com/hmiladhia/hatch-lazyimports
Project-URL: Issues, https://github.com/hmiladhia/hatch-lazyimports/issues
Author: Dhia Hmila
License: MIT License
Classifier: Framework :: Hatch
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Typing :: Typed
Requires-Python: >=3.9
Requires-Dist: auto-lazy-imports>=0.4.1
Requires-Dist: hatchling>=1.0.0
Description-Content-Type: text/markdown

# Hatch-Lazyimports

![PyPI](https://img.shields.io/pypi/v/hatch-lazyimports)
![PyPI - License](https://img.shields.io/pypi/l/hatch-lazyimports)
![PyPI - Wheel](https://img.shields.io/pypi/wheel/hatch-lazyimports)
![Tests](https://github.com/hmiladhia/hatch-lazyimports/actions/workflows/quality.yaml/badge.svg)
[![Copier](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/copier-org/copier/master/img/badge/badge-grayscale-inverted-border-orange.json)](https://github.com/copier-org/copier)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)

This plugin will automaticilly detect lazy imports that are under a `with lazy_imports()` statement.
It will then, fill the distribution's metadata related entry-point.

## Example

```toml
[project]
dependencies = ["auto-lazy-imports>=0.4.1"]
dynamic = ['entry-points', 'entry-points.lazyimports']

[build-system]
requires = ["hatchling", "hatch-lazyimports"]
build-backend = "hatchling.build"

[tool.hatch.metadata.hooks.lazyimports]
entry_point_name = "lazyimports_auto"  # optional
```
