Skip to content

Commit

Permalink
fix: fix python 3.7 version for pyrfc 2.8.31
Browse files Browse the repository at this point in the history
  • Loading branch information
bsrdjan committed Jan 4, 2024
1 parent 21ca0fb commit 9c269d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
8 changes: 2 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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/
Expand All @@ -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 = "[email protected]" } ]
requires-python = ">=3.7"
requires-python = ">=3.7,<3.8"
keywords = ["pyrfc", "sap", "nwrfc", "sapnwrfc", "abap"]
classifiers = [
"Topic :: Software Development :: Build Tools",
Expand All @@ -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 = [
Expand Down
5 changes: 1 addition & 4 deletions src/pyrfc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("."))
Expand Down

0 comments on commit 9c269d8

Please sign in to comment.