Skip to content

Commit 2e78d8b

Browse files
committed
Merge remote-tracking branch 'origin/main'
# Conflicts: # doc/changes/changelog.md # poetry.lock # pyproject.toml
2 parents 71d4ec1 + fcc3a71 commit 2e78d8b

File tree

5 files changed

+18
-21
lines changed

5 files changed

+18
-21
lines changed

doc/changes/changelog.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Changelog
22

33
* [unreleased](unreleased.md)
4-
* [0.3.1](changes_0.3.1.md)
4+
* [0.4.0](changes_0.4.0.md)
55
* [0.3.0](changes_0.3.0.md)
66
* [0.2.0](changes_0.2.0.md)
77
* [0.1.0](changes_0.1.0.md)

doc/changes/changes_0.4.0.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# UDF Mock Python 0.4.0, released 2025-02-13
2+
3+
Code name: Dependency update on top of 0.3.0
4+
5+
## Summary
6+
7+
The release replaces dill with inspect for extracting the code from function,
8+
which solves the compatibility issue with the localstack.
9+
10+
11+
### Refactorings
12+
13+
* #61: Remove the dependency on dill.

exasol_udf_mock_python/mock_meta_data.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import re
2-
import dill
32
import textwrap
43
from typing import List
54
from exasol_udf_mock_python.column import Column
5+
from inspect import getsource
66

77

88
class MockMetaData:
@@ -64,7 +64,7 @@ def __init__(
6464
self._is_variadic_input = is_variadic_input
6565

6666
def _extract_script_code(self, script_code_wrapper_function):
67-
function_code = textwrap.dedent(dill.source.getsource(script_code_wrapper_function))
67+
function_code = textwrap.dedent(getsource(script_code_wrapper_function))
6868
function_name = script_code_wrapper_function.__name__
6969
starts_with_pattern = r"^def[ \t]+" + function_name + r"[ \t]*\([ \t]*\)[ \t]*:[ \t]*\n"
7070
match = re.match(starts_with_pattern, function_code)

poetry.lock

+1-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "exasol-udf-mock-python"
3-
version = "0.3.1"
3+
version = "0.4.0"
44
description = "Mocking framework for Exasol Python UDFs"
55

66
license = "MIT"
@@ -20,7 +20,6 @@ keywords = ['exasol', 'udf', 'mock', 'testing']
2020
python = "^3.10"
2121
pandas = "^2.2.3"
2222
numpy = ">=1.26.4,<2"
23-
dill = ">=0.3.6"
2423

2524
[tool.poetry.dev-dependencies]
2625
pytest = "^8.2.2"

0 commit comments

Comments
 (0)