From a7de40b4b8aff392dff9defd83f3201de5c7372d Mon Sep 17 00:00:00 2001 From: Frank Hoffmann <15r10nk-git@polarbit.de> Date: Sun, 11 Feb 2024 18:24:12 +0100 Subject: [PATCH] =?UTF-8?q?bump:=20version=200.0.1=20=E2=86=92=200.1.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 26 ++++++++++++++++++++++++++ pyproject.toml | 2 +- src/lazy_imports_lite/__init__.py | 6 +++--- 3 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..269829b --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,26 @@ +## v0.1.0 (2024-02-11) + +### Feat + +- support for namespace packages +- added `lazy-imports-lite preview` command +- allow setattr for lazy module attributes +- raise LazyImportError if an error is raised during the lazy importing of a module +- disable lazy-imports with LAZY_IMPORTS_LITE_DISABLE +- loader works for simple examples +- implemented import & import as +- globals returns the imported modules +- globals returns the imported modules + +### Fix + +- support packages with different names than the project +- fixed windows support +- use __package__ to find modules +- fixed some issues +- hide LazyObjects from modules + +### Refactor + +- scan distributions at startup +- renamed v to _lazy_value diff --git a/pyproject.toml b/pyproject.toml index 971d41a..20759d2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,7 @@ license = "MIT" name = "lazy-imports-lite" readme = "README.md" requires-python = ">=3.8" -version="0.0.1" +version="0.1.0" [project.scripts] diff --git a/src/lazy_imports_lite/__init__.py b/src/lazy_imports_lite/__init__.py index c7cc683..e6333aa 100644 --- a/src/lazy_imports_lite/__init__.py +++ b/src/lazy_imports_lite/__init__.py @@ -1,3 +1,3 @@ -from contextlib import nullcontext as eager_imports - -from ._hooks import LazyImportError +from contextlib import nullcontext as eager_imports + +from ._hooks import LazyImportError