Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fcc3a71

Browse files
ahsimbredcatbear
andauthoredFeb 13, 2025··
Changed dependencies (#60)
* Changed dependencies * Update doc/changes/changes_0.3.1.md Co-authored-by: Sebastian Bär <rcb4gh@proton.me> * removed dill * changed the ver and updated the changelog --------- Co-authored-by: Sebastian Bär <rcb4gh@proton.me>
1 parent 26f519e commit fcc3a71

File tree

7 files changed

+131
-102
lines changed

7 files changed

+131
-102
lines changed
 

‎.github/workflows/pypi_release.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
uses: actions/checkout@v4
1818

1919
- name: Setup Python & Poetry Environment
20-
uses: exasol/python-toolbox/.github/actions/python-environment@0.13.0
20+
uses: exasol/python-toolbox/.github/actions/python-environment@0.20.0
2121
with:
2222
python-version: "3.10"
2323

‎.github/workflows/pytest.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
uses: actions/checkout@v4
1717

1818
- name: Setup Python & Poetry Environment
19-
uses: exasol/python-toolbox/.github/actions/python-environment@0.13.0
19+
uses: exasol/python-toolbox/.github/actions/python-environment@0.20.0
2020
with:
2121
python-version: ${{ matrix.python-version }}
2222
poetry-version: '1.8.2'

‎doc/changes/changelog.md

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

33
* [unreleased](unreleased.md)
4+
* [0.4.0](changes_0.4.0.md)
45
* [0.3.0](changes_0.3.0.md)
56
* [0.2.0](changes_0.2.0.md)
67
* [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

+112-96
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.0"
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.7"
2423

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

0 commit comments

Comments
 (0)
Please sign in to comment.