From 1e568615c477038541a191243e29fc9813e8fa75 Mon Sep 17 00:00:00 2001 From: Alexandre Decan Date: Wed, 19 Jul 2023 09:28:04 +0200 Subject: [PATCH] 2.4.1 - fixes #85 --- CHANGELOG.md | 7 +++++++ portion/api.py | 1 + setup.py | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f3732d..9e6f014 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ # Changelog +## 2.4.1 (2023-07-19) + +### Fixed + - Import error when using `create_api` outside a REPL (see [#85](https://github.com/AlexandreDecan/portion/issues/85)). + + + ## 2.4.0 (2023-03-13) ### Added diff --git a/portion/api.py b/portion/api.py index 1f57648..963aa7c 100644 --- a/portion/api.py +++ b/portion/api.py @@ -1,5 +1,6 @@ import functools import importlib +import importlib.util from .const import Bound, inf from .func import iterate, open, closed, openclosed, closedopen, empty, singleton diff --git a/setup.py b/setup.py index 2d1fb65..474c1f6 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( name="portion", - version="2.4.0", + version="2.4.1", license="LGPLv3", author="Alexandre Decan", url="https://github.com/AlexandreDecan/portion",