From 0f9df987e3a3acd950c76247741dbb11ee023f0b Mon Sep 17 00:00:00 2001 From: soustruh Date: Fri, 22 Aug 2025 13:55:30 +0200 Subject: [PATCH 1/2] use error instead of non-existing danger + add table as MessageType --- src/keboola/component/sync_actions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/keboola/component/sync_actions.py b/src/keboola/component/sync_actions.py index cc108be..4223c4b 100644 --- a/src/keboola/component/sync_actions.py +++ b/src/keboola/component/sync_actions.py @@ -40,7 +40,9 @@ class MessageType(str, Enum): SUCCESS = "success" INFO = "info" WARNING = "warning" - DANGER = "danger" + ERROR = "error" + DANGER = "error" # keeping for backwards compatibility + TABLE = "table" # Markdown table @dataclass From b678c4be6d0dd2d3cbe72937740c1ada6bc326df Mon Sep 17 00:00:00 2001 From: soustruh Date: Fri, 22 Aug 2025 13:56:44 +0200 Subject: [PATCH 2/2] use all applicable python versions + updated github actions --- .github/workflows/push_dev.yml | 6 +++--- .github/workflows/push_main.yml | 6 +++--- setup.py | 29 ++++++++++++++++------------- 3 files changed, 22 insertions(+), 19 deletions(-) diff --git a/.github/workflows/push_dev.yml b/.github/workflows/push_dev.yml index 211ab5c..f37eee5 100644 --- a/.github/workflows/push_dev.yml +++ b/.github/workflows/push_dev.yml @@ -11,12 +11,12 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/.github/workflows/push_main.yml b/.github/workflows/push_main.yml index 13a4644..bb1fb6d 100644 --- a/.github/workflows/push_main.yml +++ b/.github/workflows/push_main.yml @@ -9,11 +9,11 @@ jobs: docs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: - python-version: "3.11" + python-version: "3.13" - name: Create html documentation run: | pip install --user pdoc3 diff --git a/setup.py b/setup.py index f548197..dfceeca 100644 --- a/setup.py +++ b/setup.py @@ -7,32 +7,35 @@ long_description = long_description.split("\n", header_lines)[header_lines] project_urls = { - 'Documentation': 'https://keboola.github.io/python-component/interface.html', - 'Component Template project': 'https://bitbucket.org/kds_consulting_team/cookiecutter-python-component' + "Documentation": "https://keboola.github.io/python-component/interface.html", + "Component Template project": "https://github.com/keboola/cookiecutter-python-component", } setuptools.setup( name="keboola.component", - version="1.6.11", + version="1.6.12", author="Keboola KDS Team", project_urls=project_urls, - setup_requires=['pytest-runner', 'flake8'], - tests_require=['pytest'], + setup_requires=[ + "pytest-runner", + "flake8", + ], + tests_require=["pytest"], install_requires=[ - 'pygelf', - 'pytz', - 'deprecated' + "pygelf", + "pytz", + "deprecated", ], author_email="support@keboola.com", description="General library for Python applications running in Keboola Connection environment", long_description=long_description, long_description_content_type="text/markdown", url="https://github.com/keboola/python-component", - package_dir={'': 'src'}, - packages=['keboola.component'], + package_dir={"": "src"}, + packages=["keboola.component"], include_package_data=True, zip_safe=False, - test_suite='tests', + test_suite="tests", classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", @@ -42,7 +45,7 @@ "Intended Audience :: Education", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules", - "Development Status :: 5 - Production/Stable" + "Development Status :: 5 - Production/Stable", ], - python_requires='>=3.7' + python_requires=">=3.8", )