From 5cf7e1ac54deabb07f5c909521b076c6e290a2d5 Mon Sep 17 00:00:00 2001 From: Joachim Metz Date: Sun, 3 Mar 2024 20:06:26 +0100 Subject: [PATCH] Do not generated bdist_rpm section in setup.cfg #1222 --- data/templates/setup.cfg/bdist_rpm | 7 ------- data/templates/setup.cfg/bdist_rpm_requires | 2 -- l2tdevtools/dependency_writers/setup.py | 14 -------------- setup.cfg | 10 ---------- 4 files changed, 33 deletions(-) delete mode 100644 data/templates/setup.cfg/bdist_rpm delete mode 100644 data/templates/setup.cfg/bdist_rpm_requires diff --git a/data/templates/setup.cfg/bdist_rpm b/data/templates/setup.cfg/bdist_rpm deleted file mode 100644 index bc6de5d3..00000000 --- a/data/templates/setup.cfg/bdist_rpm +++ /dev/null @@ -1,7 +0,0 @@ - -[bdist_rpm] -release = 1 -packager = ${maintainer} -doc_files = -${doc_files} -build_requires = python3-setuptools diff --git a/data/templates/setup.cfg/bdist_rpm_requires b/data/templates/setup.cfg/bdist_rpm_requires deleted file mode 100644 index 55723a31..00000000 --- a/data/templates/setup.cfg/bdist_rpm_requires +++ /dev/null @@ -1,2 +0,0 @@ -requires = -${rpm_requires} diff --git a/l2tdevtools/dependency_writers/setup.py b/l2tdevtools/dependency_writers/setup.py index 08894fbd..665f283e 100644 --- a/l2tdevtools/dependency_writers/setup.py +++ b/l2tdevtools/dependency_writers/setup.py @@ -118,11 +118,6 @@ def Write(self): if self._project_definition.name.endswith('-kb'): python_module_name = ''.join([python_module_name[:-3], 'rc']) - python3_dependencies = self._dependency_helper.GetRPMRequires() - - formatted_rpm_requires = [ - f' {dependency:s}' for dependency in python3_dependencies] - has_data_directory = False package_data = [] for data_file in glob.glob( @@ -177,7 +172,6 @@ def Write(self): 'maintainer_name': maintainer_name, 'package_data': '\n'.join(formatted_package_data), 'python_module_name': python_module_name, - 'rpm_requires': '\n'.join(formatted_rpm_requires), 'scripts': '\n'.join(formatted_scripts), 'version': version} @@ -205,14 +199,6 @@ def Write(self): 'sdist_test_data', template_mappings) file_content.append(template_data) - template_data = self._GenerateFromTemplate('bdist_rpm', template_mappings) - file_content.append(template_data) - - if python3_dependencies: - template_data = self._GenerateFromTemplate( - 'bdist_rpm_requires', template_mappings) - file_content.append(template_data) - template_data = self._GenerateFromTemplate('bdist_wheel', template_mappings) file_content.append(template_data) diff --git a/setup.cfg b/setup.cfg index f6ce3cb4..7f3d7c3d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -42,15 +42,5 @@ exclude = utils where = . -[bdist_rpm] -release = 1 -packager = Log2Timeline maintainers -doc_files = - ACKNOWLEDGEMENTS - AUTHORS - LICENSE - README -build_requires = python3-setuptools - [bdist_wheel] universal = 1