[SWDEV-492047] Removed setup.cfg.in

Signed-off-by: Justin Williams <Justin.Williams@amd.com>
Change-Id: I97b14d05b17fefbb87368824f57bc4ab690f1bf0
This commit is contained in:
Justin Williams
2024-11-12 23:19:44 -06:00
committed by Maisam Arif
parent cbfe403b1d
commit d3d6157854
3 changed files with 5 additions and 29 deletions
-3
View File
@@ -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}
+5 -2
View File
@@ -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"]
-24
View File
@@ -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