Skip to content

Commit 5164ca0

Browse files
committed
Remove platform related info
For downstream RPM release: - RHEL 8 and CentOS Stream 8 release depends on suds-jurko - RHEL 9 and CentOS Stream 9 forward releases depend on suds - Fedora releases depends on suds So set requirement with suds and only need update on EPEL8 release spec which should be covered in downstream release. Signed-off-by: Wayne Sun <gsun@redhat.com>
1 parent 898b299 commit 5164ca0

1 file changed

Lines changed: 1 addition & 31 deletions

File tree

setup.py

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -9,37 +9,7 @@
99
CLI_NAME = "pylero-cmd"
1010
RELEASE_FILE = "/etc/system-release-cpe"
1111

12-
install_requires_ = [
13-
"click",
14-
]
15-
16-
# Update install_requires_ for Fedora, CentOS Stream and RHEL
17-
if os.path.exists(RELEASE_FILE):
18-
with open(RELEASE_FILE) as version_file:
19-
version_file_content = version_file.read().split(":")
20-
if (
21-
(
22-
(version_file_content[3] == "fedora")
23-
and (int(version_file_content[4]) > 35)
24-
)
25-
or (
26-
(version_file_content[2] == "redhat")
27-
and (version_file_content[3] == "enterprise_linux")
28-
and (int(version_file_content[4].split(".")[0]) > 8)
29-
)
30-
or (
31-
(version_file_content[3] == "centos")
32-
and (int(version_file_content[4]) > 8)
33-
)
34-
):
35-
install_requires_.append("suds")
36-
elif (version_file_content[3] == "centos") and (
37-
int(version_file_content[4]) < 9
38-
):
39-
install_requires_.append("suds-jurko")
40-
else:
41-
install_requires_.append("suds-community")
42-
12+
install_requires_ = ["click", "suds"]
4313

4414
if __name__ == "__main__":
4515
setup(

0 commit comments

Comments
 (0)