From 53f8cda8b191fc0ff836597309b327413b482cbf Mon Sep 17 00:00:00 2001
From: Alexandru Fikl <alexfikl@gmail.com>
Date: Sat, 5 Mar 2022 20:27:22 -0600
Subject: [PATCH] black setup.py

---
 setup.py | 88 +++++++++++++++++++++++++++++++-------------------------
 1 file changed, 49 insertions(+), 39 deletions(-)

diff --git a/setup.py b/setup.py
index 835f6507..5ca54417 100644
--- a/setup.py
+++ b/setup.py
@@ -22,15 +22,23 @@ def find_git_revision(tree_root):
     # setup.py.
 
     from os.path import join, exists, abspath
+
     tree_root = abspath(tree_root)
 
     if not exists(join(tree_root, ".git")):
         return None
 
     from subprocess import Popen, PIPE, STDOUT
-    p = Popen(["git", "rev-parse", "HEAD"], shell=False,
-              stdin=PIPE, stdout=PIPE, stderr=STDOUT, close_fds=True,
-              cwd=tree_root)
+
+    p = Popen(
+        ["git", "rev-parse", "HEAD"],
+        shell=False,
+        stdin=PIPE,
+        stdout=PIPE,
+        stderr=STDOUT,
+        close_fds=True,
+        cwd=tree_root,
+    )
     (git_rev, _) = p.communicate()
 
     git_rev = git_rev.decode()
@@ -40,6 +48,7 @@ def find_git_revision(tree_root):
     assert retcode is not None
     if retcode != 0:
         from warnings import warn
+
         warn("unable to find git revision")
         return None
 
@@ -48,6 +57,7 @@ def find_git_revision(tree_root):
 
 def write_git_revision(package_name):
     from os.path import dirname, join
+
     dn = dirname(__file__)
     git_rev = find_git_revision(dn)
 
@@ -60,41 +70,41 @@ write_git_revision("sumpy")
 # }}}
 
 
-setup(name="sumpy",
-      version=ver_dic["VERSION_TEXT"],
-      description="Fast summation in Python",
-      long_description="""
+setup(
+    name="sumpy",
+    version=ver_dic["VERSION_TEXT"],
+    description="Fast summation in Python",
+    long_description="""
       Code-generating FMM etc.
       """,
-      classifiers=[
-          "Development Status :: 3 - Alpha",
-          "Intended Audience :: Developers",
-          "Intended Audience :: Other Audience",
-          "Intended Audience :: Science/Research",
-          "License :: OSI Approved :: MIT License",
-          "Natural Language :: English",
-          "Programming Language :: Python",
-          "Topic :: Scientific/Engineering",
-          "Topic :: Scientific/Engineering :: Information Analysis",
-          "Topic :: Scientific/Engineering :: Mathematics",
-          "Topic :: Scientific/Engineering :: Visualization",
-          "Topic :: Software Development :: Libraries",
-          "Topic :: Utilities",
-          ],
-
-      author="Andreas Kloeckner",
-      author_email="inform@tiker.net",
-      license="MIT",
-      packages=["sumpy", "sumpy.expansion"],
-
-      python_requires="~=3.6",
-      install_requires=[
-          "pytools>=2021.1.1",
-          "loopy>=2021.1",
-          "boxtree>=2018.1",
-          "pytest>=2.3",
-          "pyrsistent>=0.16.0",
-          "dataclasses>=0.7;python_version<='3.6'",
-          "sympy>=0.7.2",
-          "pymbolic>=2021.1",
-          ])
+    classifiers=[
+        "Development Status :: 3 - Alpha",
+        "Intended Audience :: Developers",
+        "Intended Audience :: Other Audience",
+        "Intended Audience :: Science/Research",
+        "License :: OSI Approved :: MIT License",
+        "Natural Language :: English",
+        "Programming Language :: Python",
+        "Topic :: Scientific/Engineering",
+        "Topic :: Scientific/Engineering :: Information Analysis",
+        "Topic :: Scientific/Engineering :: Mathematics",
+        "Topic :: Scientific/Engineering :: Visualization",
+        "Topic :: Software Development :: Libraries",
+        "Topic :: Utilities",
+    ],
+    author="Andreas Kloeckner",
+    author_email="inform@tiker.net",
+    license="MIT",
+    packages=["sumpy", "sumpy.expansion"],
+    python_requires="~=3.6",
+    install_requires=[
+        "pytools>=2021.1.1",
+        "loopy>=2021.1",
+        "boxtree>=2018.1",
+        "pytest>=2.3",
+        "pyrsistent>=0.16.0",
+        "dataclasses>=0.7;python_version<='3.6'",
+        "sympy>=0.7.2",
+        "pymbolic>=2021.1",
+    ],
+)
-- 
GitLab