diff --git a/CHANGELOG.md b/CHANGELOG.md index 3badbab..84530a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,3 +17,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Feature - Add support for self hosted serverless gateway + +## [1.0.2] - 2023-05-05 + +### Fixed + +- Fixed decorator nesting that breaks compatibility with local testing framework diff --git a/pyproject.toml b/pyproject.toml index f6b5cec..4df41d8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "scw-serverless" -version = "1.0.1" +version = "1.0.2" description = "Framework for writing serverless APIs in Python, using Scaleway functions and containers." authors = ["Scaleway Serverless Team "] readme = "README.md" diff --git a/scw_serverless/app.py b/scw_serverless/app.py index 1db72e7..a1eebf1 100644 --- a/scw_serverless/app.py +++ b/scw_serverless/app.py @@ -59,10 +59,7 @@ def _decorator(handler: Callable): ) ) - def _inner(*args, **kwargs): - return handler(*args, **kwargs) - - return _inner + return handler return _decorator diff --git a/scw_serverless/dependencies_manager.py b/scw_serverless/dependencies_manager.py index 4f7a130..ace5b9f 100644 --- a/scw_serverless/dependencies_manager.py +++ b/scw_serverless/dependencies_manager.py @@ -73,7 +73,7 @@ def _check_for_scw_serverless(self): or not self.pkg_path.joinpath(__package__).exists() ): # Installs the current version with pip - self._run_pip_install(f"{__package__}=={version(__package__)}") + self._run_pip_install(f"{__package__}~={version(__package__)}") def _run_pip_install(self, *args: str): python_path = sys.executable