diff --git a/py-interface/CMakeLists.txt b/py-interface/CMakeLists.txt index 09d01a54e8..c3e4f5486e 100644 --- a/py-interface/CMakeLists.txt +++ b/py-interface/CMakeLists.txt @@ -68,7 +68,6 @@ endif() # populate version string configure_file(pyproject.toml.in ${PY_BUILD_DIR}/pyproject.toml @ONLY) -configure_file(setup.cfg.in ${PY_BUILD_DIR}/setup.cfg @ONLY) configure_file(_version.py.in ${PY_PACKAGE_DIR}/_version.py @ONLY) configure_file(setup.py.in ${PY_BUILD_DIR}/setup.py @ONLY) @@ -103,7 +102,6 @@ add_custom_command( add_custom_target( python_package ALL DEPENDS ${PY_BUILD_DIR}/pyproject.toml - ${PY_BUILD_DIR}/setup.cfg ${PY_BUILD_DIR}/setup.py ${PY_PACKAGE_DIR}/_version.py ${PY_PACKAGE_DIR}/__init__.py @@ -117,7 +115,6 @@ add_custom_target( install( FILES ${CMAKE_CURRENT_BINARY_DIR}/${PY_BUILD_DIR}/pyproject.toml - ${CMAKE_CURRENT_BINARY_DIR}/${PY_BUILD_DIR}/setup.cfg ${CMAKE_CURRENT_BINARY_DIR}/${PY_BUILD_DIR}/setup.py ${CMAKE_CURRENT_BINARY_DIR}/${PY_PACKAGE_DIR}/_version.py DESTINATION ${PY_WRAPPER_INSTALL_DIR} diff --git a/py-interface/pyproject.toml.in b/py-interface/pyproject.toml.in index b4852782e3..507faea358 100644 --- a/py-interface/pyproject.toml.in +++ b/py-interface/pyproject.toml.in @@ -18,14 +18,17 @@ requires-python = ">=3.6" dependencies = [ "PyYAML >= 3.0", ] - +classifiers = [ + "Programming Language :: Python :: 3" +] [project.urls] "Homepage" = "https://github.com/RadeonOpenCompute/amdsmi" [tool.setuptools] packages = ["amdsmi"] +zip-safe = false +include-package-data = true -# install libamd_smi.so [tool.setuptools.package-data] amdsmi = ["*.so"] diff --git a/py-interface/setup.cfg.in b/py-interface/setup.cfg.in deleted file mode 100644 index ab89a00f53..0000000000 --- a/py-interface/setup.cfg.in +++ /dev/null @@ -1,24 +0,0 @@ -# this file is only required for setuptools < 61.0 -# mostly a rhel8 limitation... - -[metadata] -name = amdsmi -author = AMD -author_email = amd-smi.support@amd.com -url = https://github.com/RadeonOpenCompute/amdsmi -description = AMDSMI Python LIB - AMD GPU Monitoring Library -version = @amd_smi_libraries_VERSION_STRING@ -license_file = amdsmi/LICENSE -classifiers = - Programming Language :: Python :: 3 - -[options] -zip_safe = False -include_package_data = True -packages = find: -python_requires = >=3.6 -install_requires= - PyYAML >= 3.0 - -[options.package_data] -* = *.so