diff --git a/pyproject.toml b/pyproject.toml index fb64a0b..33901ba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["Cython ~= 0.29.0", "setuptools ~= 67.7.0", "wheel ~= 0.40.0"] +requires = ["Cython ~= 0.29.0", "setuptools ~= 67.7.0", "wheel ~= 0.40.0", "importlib-metadata"] build-backend = "setuptools.build_meta" # https://packaging.python.org/en/latest/specifications/declaring-project-metadata/ @@ -11,7 +11,7 @@ license = { file = "LICENSES/Apache-2.0.txt" } description = "Python bindings for SAP NetWeaver RFC SDK" authors = [ { name = "SAP SE"} ] maintainers = [ { name = "Srdjan Boskovic", email = "srdjan.boskovic@sap.com" } ] -requires-python = ">=3.7" +requires-python = ">=3.7,<3.8" keywords = ["pyrfc", "sap", "nwrfc", "sapnwrfc", "abap"] classifiers = [ "Topic :: Software Development :: Build Tools", @@ -24,10 +24,6 @@ classifiers = [ "Programming Language :: Cython", "Programming Language :: Python", "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3 :: Only" ] dependencies = [ diff --git a/src/pyrfc/__init__.py b/src/pyrfc/__init__.py index de53a86..8a5e4c0 100755 --- a/src/pyrfc/__init__.py +++ b/src/pyrfc/__init__.py @@ -5,10 +5,7 @@ import os import sys -if sys.version_info < (3,8): - import importlib_metadata as mtd -else: - import importlib.metadata as mtd +import importlib_metadata as mtd __version__ = mtd.version("pyrfc") __version_info__ = tuple(__version__.split("."))