Skip to content

Commit 9c269d8

Browse files
committed
fix: fix python 3.7 version for pyrfc 2.8.31
1 parent 21ca0fb commit 9c269d8

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

pyproject.toml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["Cython ~= 0.29.0", "setuptools ~= 67.7.0", "wheel ~= 0.40.0"]
2+
requires = ["Cython ~= 0.29.0", "setuptools ~= 67.7.0", "wheel ~= 0.40.0", "importlib-metadata"]
33
build-backend = "setuptools.build_meta"
44

55
# https://packaging.python.org/en/latest/specifications/declaring-project-metadata/
@@ -11,7 +11,7 @@ license = { file = "LICENSES/Apache-2.0.txt" }
1111
description = "Python bindings for SAP NetWeaver RFC SDK"
1212
authors = [ { name = "SAP SE"} ]
1313
maintainers = [ { name = "Srdjan Boskovic", email = "srdjan.boskovic@sap.com" } ]
14-
requires-python = ">=3.7"
14+
requires-python = ">=3.7,<3.8"
1515
keywords = ["pyrfc", "sap", "nwrfc", "sapnwrfc", "abap"]
1616
classifiers = [
1717
"Topic :: Software Development :: Build Tools",
@@ -24,10 +24,6 @@ classifiers = [
2424
"Programming Language :: Cython",
2525
"Programming Language :: Python",
2626
"Programming Language :: Python :: 3.7",
27-
"Programming Language :: Python :: 3.8",
28-
"Programming Language :: Python :: 3.9",
29-
"Programming Language :: Python :: 3.10",
30-
"Programming Language :: Python :: 3.11",
3127
"Programming Language :: Python :: 3 :: Only"
3228
]
3329
dependencies = [

src/pyrfc/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
import os
66
import sys
77

8-
if sys.version_info < (3,8):
9-
import importlib_metadata as mtd
10-
else:
11-
import importlib.metadata as mtd
8+
import importlib_metadata as mtd
129

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

0 commit comments

Comments
 (0)