From e2d4892fe2bfd83a19835e6a115c98eeb6987d28 Mon Sep 17 00:00:00 2001 From: bsrdjan Date: Mon, 8 Jan 2024 15:32:01 +0100 Subject: [PATCH] refactor: examples not any more automatically formatted, because used in sphinx documentation --- pyproject.toml | 2 +- src/pyrfc/__init__.py | 2 +- tox.ini | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f0d02d1..13c8cbf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "pyrfc" -version = "3.3" +version = "3.3.1" readme = "README.md" license = { file = "LICENSES/Apache-2.0.txt" } description = "Python bindings for SAP NetWeaver RFC SDK" diff --git a/src/pyrfc/__init__.py b/src/pyrfc/__init__.py index d64728b..16d8ba6 100755 --- a/src/pyrfc/__init__.py +++ b/src/pyrfc/__init__.py @@ -8,7 +8,7 @@ import os from contextlib import suppress -__version__ = importlib.metadata.version("pyrfc") +__version__ = importlib.metadata.version(__name__) __version_info__ = tuple(__version__.split(".")) if os.name == "nt": diff --git a/tox.ini b/tox.ini index 7c7bada..633d548 100644 --- a/tox.ini +++ b/tox.ini @@ -37,7 +37,8 @@ deps = pydocstyle commands = cython-lint src/pyrfc --max-line-length=180 - ruff check --fix src setup.py tests examples --line-length=120 + ruff format src setup.py tests --line-length=120 + # ruff format examples --line-length=120 pydocstyle src [testenv:docs]