From aaedc3b9926d7a970c32c7a94974b84c05def5ad Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal Date: Thu, 17 Feb 2022 12:39:43 -0700 Subject: [PATCH] python/setup.py: make it PEP8 compliant Make setup.py PEP-8 compliant, it fixes the following two issues reported by flake8: - E128 continuation line under-indented for visual indent - E251 unexpected spaces around keyword/parameter equals also, adopt single quotes for strings. Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka --- src/python/setup.py | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/src/python/setup.py b/src/python/setup.py index c9805f27..935b5cd8 100755 --- a/src/python/setup.py +++ b/src/python/setup.py @@ -23,25 +23,26 @@ # along with this library; if not, see . # -import os - from setuptools import Extension, setup from Cython.Build import cythonize +import os setup( - name = "libcgroup", - version = os.environ["VERSION_RELEASE"], - description = "Python bindings for libcgroup", - url = "https://github.com/libcgroup/libcgroup", - maintainer = "Tom Hromatka", - maintainer_email = "tom.hromatka@oracle.com", - license = "LGPLv2.1", - platforms = "Linux", - ext_modules = cythonize([ - Extension("libcgroup", ["libcgroup.pyx"], - # unable to handle libtool libraries directly - extra_objects=["../.libs/libcgroup.a"]), - ]) + name='libcgroup', + version=os.environ['VERSION_RELEASE'], + description='Python bindings for libcgroup', + url='https://github.com/libcgroup/libcgroup', + maintainer='Tom Hromatka', + maintainer_email='tom.hromatka@oracle.com', + license='LGPLv2.1', + platforms='Linux', + ext_modules=cythonize([ + Extension( + 'libcgroup', ['libcgroup.pyx'], + # unable to handle libtool libraries directly + extra_objects=['../.libs/libcgroup.a'] + ), + ]) ) # vim: set et ts=4 sw=4: -- 2.47.2