From 407da22c121fa4cf3c255c8d2e2a4ae033d304ca Mon Sep 17 00:00:00 2001 From: Philippe Merle Date: Sun, 16 Mar 2025 14:27:21 +0100 Subject: [PATCH] Pylint --- setup.py | 102 +++++++++++++++++++++++++++++-------------------------- 1 file changed, 54 insertions(+), 48 deletions(-) diff --git a/setup.py b/setup.py index ff34052..e86ba62 100644 --- a/setup.py +++ b/setup.py @@ -1,50 +1,56 @@ -from setuptools import setup +''' + Setup PyPI package. +''' import glob +from setuptools import setup -setup( - name="KubeDiagrams", - version="0.1.0", - author="Philippe Merle", - author_email="philippe.merle@inria.fr", - maintainer="Philippe Merle", - maintainer_email="philippe.merle@inria.fr", - url="https://github.com/philippemerle/KubeDiagrams", - description="Generate Kubernetes architecture diagrams from Kubernetes manifest files, kustomization files, Helm charts, and actual cluster state", - long_description=open("README.md").read(), - long_description_content_type="text/markdown", - classifiers=[ - "Topic :: Software Development :: Documentation", - "Topic :: Utilities", - "Development Status :: 5 - Production/Stable", - "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - "Programming Language :: Python :: 3.13", - "Operating System :: OS Independent", - "Environment :: Console", - "Intended Audience :: Developers", - "Intended Audience :: Information Technology", - "Natural Language :: English", - ], - keywords = "kubernetes architecture diagrams", - python_requires=">=3.9", - install_requires=[ - "PyYAML", - "diagrams", - ], - scripts=[ - "bin/kube-diagrams", - "bin/helm-diagrams", - ], - data_files=[ - ("bin", ["bin/kube-diagrams.yaml"]), - ("bin/icons", glob.glob("bin/icons/*")), - ], - project_urls={ - "Issues": "https://github.com/philippemerle/KubeDiagrams/issues", - "Discussions": "https://github.com/philippemerle/KubeDiagrams/discussions", - "Wiki": "https://github.com/philippemerle/KubeDiagrams/wiki", - }, -) +with open("README.md", encoding="utf-8") as readme: + setup( + name="KubeDiagrams", + version="0.1.0", + author="Philippe Merle", + author_email="philippe.merle@inria.fr", + maintainer="Philippe Merle", + maintainer_email="philippe.merle@inria.fr", + url="https://github.com/philippemerle/KubeDiagrams", + description="Generate Kubernetes architecture diagrams from " + "Kubernetes manifest files, kustomization files, Helm charts, " + "and actual cluster state", + long_description=readme.read(), + long_description_content_type="text/markdown", + classifiers=[ + "Topic :: Software Development :: Documentation", + "Topic :: Utilities", + "Development Status :: 5 - Production/Stable", + "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Operating System :: OS Independent", + "Environment :: Console", + "Intended Audience :: Developers", + "Intended Audience :: Information Technology", + "Natural Language :: English", + ], + keywords = "kubernetes architecture diagrams", + python_requires=">=3.9", + install_requires=[ + "PyYAML", + "diagrams", + ], + scripts=[ + "bin/kube-diagrams", + "bin/helm-diagrams", + ], + data_files=[ + ("bin", ["bin/kube-diagrams.yaml"]), + ("bin/icons", glob.glob("bin/icons/*")), + ], + project_urls={ + "Issues": "https://github.com/philippemerle/KubeDiagrams/issues", + "Discussions": "https://github.com/philippemerle/KubeDiagrams/discussions", + "Wiki": "https://github.com/philippemerle/KubeDiagrams/wiki", + }, + )