Skip to content

Commit

Permalink
fix: fix 2.8.3 version for python 3.7
Browse files Browse the repository at this point in the history
closes #316
  • Loading branch information
bsrdjan committed Jan 3, 2024
1 parent fd6a5be commit 21ca0fb
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 36 deletions.
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
# https://packaging.python.org/en/latest/specifications/declaring-project-metadata/
[project]
name = "pyrfc"
version = "2.8.3"
version = "2.8.31"
readme = "README.md"
license = { file = "LICENSES/Apache-2.0.txt" }
description = "Python bindings for SAP NetWeaver RFC SDK"
Expand All @@ -30,7 +30,9 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only"
]
dependencies = []
dependencies = [
"importlib-metadata"
]

[project.urls]
homepage = "https://github.com/SAP/PyRFC"
Expand Down
9 changes: 7 additions & 2 deletions src/pyrfc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@
#
# SPDX-License-Identifier: Apache-2.0

import importlib.metadata
import os
import sys

__version__ = importlib.metadata.version("pyrfc")
if sys.version_info < (3,8):
import importlib_metadata as mtd
else:
import importlib.metadata as mtd

__version__ = mtd.version("pyrfc")
__version_info__ = tuple(__version__.split("."))

if os.name == "nt":
Expand Down
73 changes: 41 additions & 32 deletions src/pyrfc/_cyrfc.cpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 21ca0fb

Please sign in to comment.