]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
python/setup.py: make it PEP8 compliant
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Thu, 17 Feb 2022 19:39:43 +0000 (12:39 -0700)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 17 Feb 2022 19:39:48 +0000 (12:39 -0700)
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 <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
src/python/setup.py

index c9805f272816434fdf4a0a50f4557dae85cc5e94..935b5cd821ce66d2ecfdf31b28997036949e1d10 100755 (executable)
 # along with this library; if not, see <http://www.gnu.org/licenses>.
 #
 
-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: