We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Improve nx_pylab testing
Currently our visualization test suite are smoke tests.  We should investigate using ``pytest-mpl``
- https://github.com/matplotlib/pytest-mpl

See #4375.

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `setup.py`
Content:
```
1 from glob import glob
2 import os
3 import sys
4 from setuptools import setup
5 
6 if sys.version_info[:2] < (3, 8):
7     error = (
8         "NetworkX 2.7+ requires Python 3.8 or later (%d.%d detected). \n"
9         "For Python 2.7, please install version 2.2 using: \n"
10         "$ pip install 'networkx==2.2'" % sys.version_info[:2]
11     )
12     sys.stderr.write(error + "\n")
13     sys.exit(1)
14 
15 
16 name = "networkx"
17 description = "Python package for creating and manipulating graphs and networks"
18 authors = {
19     "Hagberg": ("Aric Hagberg", "hagberg@lanl.gov"),
20     "Schult": ("Dan Schult", "dschult@colgate.edu"),
21     "Swart": ("Pieter Swart", "swart@lanl.gov"),
22 }
23 maintainer = "NetworkX Developers"
24 maintainer_email = "networkx-discuss@googlegroups.com"
25 url = "https://networkx.org/"
26 project_urls = {
27     "Bug Tracker": "https://github.com/networkx/networkx/issues",
28     "Documentation": "https://networkx.org/documentation/stable/",
29     "Source Code": "https://github.com/networkx/networkx",
30 }
31 platforms = ["Linux", "Mac OSX", "Windows", "Unix"]
32 keywords = [
33     "Networks",
34     "Graph Theory",
35     "Mathematics",
36     "network",
37     "graph",
38     "discrete mathematics",
39     "math",
40 ]
41 classifiers = [
42     "Development Status :: 5 - Production/Stable",
43     "Intended Audience :: Developers",
44     "Intended Audience :: Science/Research",
45     "License :: OSI Approved :: BSD License",
46     "Operating System :: OS Independent",
47     "Programming Language :: Python :: 3",
48     "Programming Language :: Python :: 3.8",
49     "Programming Language :: Python :: 3.9",
50     "Programming Language :: Python :: 3.10",
51     "Programming Language :: Python :: 3 :: Only",
52     "Topic :: Software Development :: Libraries :: Python Modules",
53     "Topic :: Scientific/Engineering :: Bio-Informatics",
54     "Topic :: Scientific/Engineering :: Information Analysis",
55     "Topic :: Scientific/Engineering :: Mathematics",
56     "Topic :: Scientific/Engineering :: Physics",
57 ]
58 
59 with open("networkx/__init__.py") as fid:
60     for line in fid:
61         if line.startswith("__version__"):
62             version = line.strip().split()[-1][1:-1]
63             break
64 
65 packages = [
66     "networkx",
67     "networkx.algorithms",
68     "networkx.algorithms.assortativity",
69     "networkx.algorithms.bipartite",
70     "networkx.algorithms.node_classification",
71     "networkx.algorithms.centrality",
72     "networkx.algorithms.community",
73     "networkx.algorithms.components",
74     "networkx.algorithms.connectivity",
75     "networkx.algorithms.coloring",
76     "networkx.algorithms.flow",
77     "networkx.algorithms.minors",
78     "networkx.algorithms.traversal",
79     "networkx.algorithms.isomorphism",
80     "networkx.algorithms.shortest_paths",
81     "networkx.algorithms.link_analysis",
82     "networkx.algorithms.operators",
83     "networkx.algorithms.approximation",
84     "networkx.algorithms.tree",
85     "networkx.classes",
86     "networkx.generators",
87     "networkx.drawing",
88     "networkx.linalg",
89     "networkx.readwrite",
90     "networkx.readwrite.json_graph",
91     "networkx.tests",
92     "networkx.testing",
93     "networkx.utils",
94 ]
95 
96 docdirbase = "share/doc/networkx-%s" % version
97 # add basic documentation
98 data = [(docdirbase, glob("*.txt"))]
99 # add examples
100 for d in [
101     ".",
102     "advanced",
103     "algorithms",
104     "basic",
105     "3d_drawing",
106     "drawing",
107     "graph",
108     "javascript",
109     "jit",
110     "pygraphviz",
111     "subclass",
112 ]:
113     dd = os.path.join(docdirbase, "examples", d)
114     pp = os.path.join("examples", d)
115     data.append((dd, glob(os.path.join(pp, "*.txt"))))
116     data.append((dd, glob(os.path.join(pp, "*.py"))))
117     data.append((dd, glob(os.path.join(pp, "*.bz2"))))
118     data.append((dd, glob(os.path.join(pp, "*.gz"))))
119     data.append((dd, glob(os.path.join(pp, "*.mbox"))))
120     data.append((dd, glob(os.path.join(pp, "*.edgelist"))))
121 # add js force examples
122 dd = os.path.join(docdirbase, "examples", "javascript/force")
123 pp = os.path.join("examples", "javascript/force")
124 data.append((dd, glob(os.path.join(pp, "*"))))
125 
126 # add the tests
127 package_data = {
128     "networkx": ["tests/*.py"],
129     "networkx.algorithms": ["tests/*.py"],
130     "networkx.algorithms.assortativity": ["tests/*.py"],
131     "networkx.algorithms.bipartite": ["tests/*.py"],
132     "networkx.algorithms.node_classification": ["tests/*.py"],
133     "networkx.algorithms.centrality": ["tests/*.py"],
134     "networkx.algorithms.community": ["tests/*.py"],
135     "networkx.algorithms.components": ["tests/*.py"],
136     "networkx.algorithms.connectivity": ["tests/*.py"],
137     "networkx.algorithms.coloring": ["tests/*.py"],
138     "networkx.algorithms.minors": ["tests/*.py"],
139     "networkx.algorithms.flow": ["tests/*.py", "tests/*.bz2"],
140     "networkx.algorithms.isomorphism": ["tests/*.py", "tests/*.*99"],
141     "networkx.algorithms.link_analysis": ["tests/*.py"],
142     "networkx.algorithms.approximation": ["tests/*.py"],
143     "networkx.algorithms.operators": ["tests/*.py"],
144     "networkx.algorithms.shortest_paths": ["tests/*.py"],
145     "networkx.algorithms.traversal": ["tests/*.py"],
146     "networkx.algorithms.tree": ["tests/*.py"],
147     "networkx.classes": ["tests/*.py"],
148     "networkx.generators": ["tests/*.py", "atlas.dat.gz"],
149     "networkx.drawing": ["tests/*.py"],
150     "networkx.linalg": ["tests/*.py"],
151     "networkx.readwrite": ["tests/*.py"],
152     "networkx.readwrite.json_graph": ["tests/*.py"],
153     "networkx.testing": ["tests/*.py"],
154     "networkx.utils": ["tests/*.py"],
155 }
156 
157 
158 def parse_requirements_file(filename):
159     with open(filename) as fid:
160         requires = [l.strip() for l in fid.readlines() if not l.startswith("#")]
161 
162     return requires
163 
164 
165 install_requires = []
166 extras_require = {
167     dep: parse_requirements_file("requirements/" + dep + ".txt")
168     for dep in ["default", "developer", "doc", "extra", "test"]
169 }
170 
171 with open("README.rst") as fh:
172     long_description = fh.read()
173 
174 if __name__ == "__main__":
175 
176     setup(
177         name=name,
178         version=version,
179         maintainer=maintainer,
180         maintainer_email=maintainer_email,
181         author=authors["Hagberg"][0],
182         author_email=authors["Hagberg"][1],
183         description=description,
184         keywords=keywords,
185         long_description=long_description,
186         platforms=platforms,
187         url=url,
188         project_urls=project_urls,
189         classifiers=classifiers,
190         packages=packages,
191         data_files=data,
192         package_data=package_data,
193         install_requires=install_requires,
194         extras_require=extras_require,
195         python_requires=">=3.8",
196         zip_safe=False,
197     )
198
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -146,7 +146,7 @@
     "networkx.algorithms.tree": ["tests/*.py"],
     "networkx.classes": ["tests/*.py"],
     "networkx.generators": ["tests/*.py", "atlas.dat.gz"],
-    "networkx.drawing": ["tests/*.py"],
+    "networkx.drawing": ["tests/*.py", "tests/baseline/*png"],
     "networkx.linalg": ["tests/*.py"],
     "networkx.readwrite": ["tests/*.py"],
     "networkx.readwrite.json_graph": ["tests/*.py"],

{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -146,7 +146,7 @@\n     \"networkx.algorithms.tree\": [\"tests/*.py\"],\n     \"networkx.classes\": [\"tests/*.py\"],\n     \"networkx.generators\": [\"tests/*.py\", \"atlas.dat.gz\"],\n-    \"networkx.drawing\": [\"tests/*.py\"],\n+    \"networkx.drawing\": [\"tests/*.py\", \"tests/baseline/*png\"],\n     \"networkx.linalg\": [\"tests/*.py\"],\n     \"networkx.readwrite\": [\"tests/*.py\"],\n     \"networkx.readwrite.json_graph\": [\"tests/*.py\"],\n", "issue": "Improve nx_pylab testing\nCurrently our visualization test suite are smoke tests.  We should investigate using ``pytest-mpl``\r\n- https://github.com/matplotlib/pytest-mpl\r\n\r\nSee #4375.\n", "before_files": [{"content": "from glob import glob\nimport os\nimport sys\nfrom setuptools import setup\n\nif sys.version_info[:2] < (3, 8):\n    error = (\n        \"NetworkX 2.7+ requires Python 3.8 or later (%d.%d detected). \\n\"\n        \"For Python 2.7, please install version 2.2 using: \\n\"\n        \"$ pip install 'networkx==2.2'\" % sys.version_info[:2]\n    )\n    sys.stderr.write(error + \"\\n\")\n    sys.exit(1)\n\n\nname = \"networkx\"\ndescription = \"Python package for creating and manipulating graphs and networks\"\nauthors = {\n    \"Hagberg\": (\"Aric Hagberg\", \"hagberg@lanl.gov\"),\n    \"Schult\": (\"Dan Schult\", \"dschult@colgate.edu\"),\n    \"Swart\": (\"Pieter Swart\", \"swart@lanl.gov\"),\n}\nmaintainer = \"NetworkX Developers\"\nmaintainer_email = \"networkx-discuss@googlegroups.com\"\nurl = \"https://networkx.org/\"\nproject_urls = {\n    \"Bug Tracker\": \"https://github.com/networkx/networkx/issues\",\n    \"Documentation\": \"https://networkx.org/documentation/stable/\",\n    \"Source Code\": \"https://github.com/networkx/networkx\",\n}\nplatforms = [\"Linux\", \"Mac OSX\", \"Windows\", \"Unix\"]\nkeywords = [\n    \"Networks\",\n    \"Graph Theory\",\n    \"Mathematics\",\n    \"network\",\n    \"graph\",\n    \"discrete mathematics\",\n    \"math\",\n]\nclassifiers = [\n    \"Development Status :: 5 - Production/Stable\",\n    \"Intended Audience :: Developers\",\n    \"Intended Audience :: Science/Research\",\n    \"License :: OSI Approved :: BSD License\",\n    \"Operating System :: OS Independent\",\n    \"Programming Language :: Python :: 3\",\n    \"Programming Language :: Python :: 3.8\",\n    \"Programming Language :: Python :: 3.9\",\n    \"Programming Language :: Python :: 3.10\",\n    \"Programming Language :: Python :: 3 :: Only\",\n    \"Topic :: Software Development :: Libraries :: Python Modules\",\n    \"Topic :: Scientific/Engineering :: Bio-Informatics\",\n    \"Topic :: Scientific/Engineering :: Information Analysis\",\n    \"Topic :: Scientific/Engineering :: Mathematics\",\n    \"Topic :: Scientific/Engineering :: Physics\",\n]\n\nwith open(\"networkx/__init__.py\") as fid:\n    for line in fid:\n        if line.startswith(\"__version__\"):\n            version = line.strip().split()[-1][1:-1]\n            break\n\npackages = [\n    \"networkx\",\n    \"networkx.algorithms\",\n    \"networkx.algorithms.assortativity\",\n    \"networkx.algorithms.bipartite\",\n    \"networkx.algorithms.node_classification\",\n    \"networkx.algorithms.centrality\",\n    \"networkx.algorithms.community\",\n    \"networkx.algorithms.components\",\n    \"networkx.algorithms.connectivity\",\n    \"networkx.algorithms.coloring\",\n    \"networkx.algorithms.flow\",\n    \"networkx.algorithms.minors\",\n    \"networkx.algorithms.traversal\",\n    \"networkx.algorithms.isomorphism\",\n    \"networkx.algorithms.shortest_paths\",\n    \"networkx.algorithms.link_analysis\",\n    \"networkx.algorithms.operators\",\n    \"networkx.algorithms.approximation\",\n    \"networkx.algorithms.tree\",\n    \"networkx.classes\",\n    \"networkx.generators\",\n    \"networkx.drawing\",\n    \"networkx.linalg\",\n    \"networkx.readwrite\",\n    \"networkx.readwrite.json_graph\",\n    \"networkx.tests\",\n    \"networkx.testing\",\n    \"networkx.utils\",\n]\n\ndocdirbase = \"share/doc/networkx-%s\" % version\n# add basic documentation\ndata = [(docdirbase, glob(\"*.txt\"))]\n# add examples\nfor d in [\n    \".\",\n    \"advanced\",\n    \"algorithms\",\n    \"basic\",\n    \"3d_drawing\",\n    \"drawing\",\n    \"graph\",\n    \"javascript\",\n    \"jit\",\n    \"pygraphviz\",\n    \"subclass\",\n]:\n    dd = os.path.join(docdirbase, \"examples\", d)\n    pp = os.path.join(\"examples\", d)\n    data.append((dd, glob(os.path.join(pp, \"*.txt\"))))\n    data.append((dd, glob(os.path.join(pp, \"*.py\"))))\n    data.append((dd, glob(os.path.join(pp, \"*.bz2\"))))\n    data.append((dd, glob(os.path.join(pp, \"*.gz\"))))\n    data.append((dd, glob(os.path.join(pp, \"*.mbox\"))))\n    data.append((dd, glob(os.path.join(pp, \"*.edgelist\"))))\n# add js force examples\ndd = os.path.join(docdirbase, \"examples\", \"javascript/force\")\npp = os.path.join(\"examples\", \"javascript/force\")\ndata.append((dd, glob(os.path.join(pp, \"*\"))))\n\n# add the tests\npackage_data = {\n    \"networkx\": [\"tests/*.py\"],\n    \"networkx.algorithms\": [\"tests/*.py\"],\n    \"networkx.algorithms.assortativity\": [\"tests/*.py\"],\n    \"networkx.algorithms.bipartite\": [\"tests/*.py\"],\n    \"networkx.algorithms.node_classification\": [\"tests/*.py\"],\n    \"networkx.algorithms.centrality\": [\"tests/*.py\"],\n    \"networkx.algorithms.community\": [\"tests/*.py\"],\n    \"networkx.algorithms.components\": [\"tests/*.py\"],\n    \"networkx.algorithms.connectivity\": [\"tests/*.py\"],\n    \"networkx.algorithms.coloring\": [\"tests/*.py\"],\n    \"networkx.algorithms.minors\": [\"tests/*.py\"],\n    \"networkx.algorithms.flow\": [\"tests/*.py\", \"tests/*.bz2\"],\n    \"networkx.algorithms.isomorphism\": [\"tests/*.py\", \"tests/*.*99\"],\n    \"networkx.algorithms.link_analysis\": [\"tests/*.py\"],\n    \"networkx.algorithms.approximation\": [\"tests/*.py\"],\n    \"networkx.algorithms.operators\": [\"tests/*.py\"],\n    \"networkx.algorithms.shortest_paths\": [\"tests/*.py\"],\n    \"networkx.algorithms.traversal\": [\"tests/*.py\"],\n    \"networkx.algorithms.tree\": [\"tests/*.py\"],\n    \"networkx.classes\": [\"tests/*.py\"],\n    \"networkx.generators\": [\"tests/*.py\", \"atlas.dat.gz\"],\n    \"networkx.drawing\": [\"tests/*.py\"],\n    \"networkx.linalg\": [\"tests/*.py\"],\n    \"networkx.readwrite\": [\"tests/*.py\"],\n    \"networkx.readwrite.json_graph\": [\"tests/*.py\"],\n    \"networkx.testing\": [\"tests/*.py\"],\n    \"networkx.utils\": [\"tests/*.py\"],\n}\n\n\ndef parse_requirements_file(filename):\n    with open(filename) as fid:\n        requires = [l.strip() for l in fid.readlines() if not l.startswith(\"#\")]\n\n    return requires\n\n\ninstall_requires = []\nextras_require = {\n    dep: parse_requirements_file(\"requirements/\" + dep + \".txt\")\n    for dep in [\"default\", \"developer\", \"doc\", \"extra\", \"test\"]\n}\n\nwith open(\"README.rst\") as fh:\n    long_description = fh.read()\n\nif __name__ == \"__main__\":\n\n    setup(\n        name=name,\n        version=version,\n        maintainer=maintainer,\n        maintainer_email=maintainer_email,\n        author=authors[\"Hagberg\"][0],\n        author_email=authors[\"Hagberg\"][1],\n        description=description,\n        keywords=keywords,\n        long_description=long_description,\n        platforms=platforms,\n        url=url,\n        project_urls=project_urls,\n        classifiers=classifiers,\n        packages=packages,\n        data_files=data,\n        package_data=package_data,\n        install_requires=install_requires,\n        extras_require=extras_require,\n        python_requires=\">=3.8\",\n        zip_safe=False,\n    )\n", "path": "setup.py"}], "after_files": [{"content": "from glob import glob\nimport os\nimport sys\nfrom setuptools import setup\n\nif sys.version_info[:2] < (3, 8):\n    error = (\n        \"NetworkX 2.7+ requires Python 3.8 or later (%d.%d detected). \\n\"\n        \"For Python 2.7, please install version 2.2 using: \\n\"\n        \"$ pip install 'networkx==2.2'\" % sys.version_info[:2]\n    )\n    sys.stderr.write(error + \"\\n\")\n    sys.exit(1)\n\n\nname = \"networkx\"\ndescription = \"Python package for creating and manipulating graphs and networks\"\nauthors = {\n    \"Hagberg\": (\"Aric Hagberg\", \"hagberg@lanl.gov\"),\n    \"Schult\": (\"Dan Schult\", \"dschult@colgate.edu\"),\n    \"Swart\": (\"Pieter Swart\", \"swart@lanl.gov\"),\n}\nmaintainer = \"NetworkX Developers\"\nmaintainer_email = \"networkx-discuss@googlegroups.com\"\nurl = \"https://networkx.org/\"\nproject_urls = {\n    \"Bug Tracker\": \"https://github.com/networkx/networkx/issues\",\n    \"Documentation\": \"https://networkx.org/documentation/stable/\",\n    \"Source Code\": \"https://github.com/networkx/networkx\",\n}\nplatforms = [\"Linux\", \"Mac OSX\", \"Windows\", \"Unix\"]\nkeywords = [\n    \"Networks\",\n    \"Graph Theory\",\n    \"Mathematics\",\n    \"network\",\n    \"graph\",\n    \"discrete mathematics\",\n    \"math\",\n]\nclassifiers = [\n    \"Development Status :: 5 - Production/Stable\",\n    \"Intended Audience :: Developers\",\n    \"Intended Audience :: Science/Research\",\n    \"License :: OSI Approved :: BSD License\",\n    \"Operating System :: OS Independent\",\n    \"Programming Language :: Python :: 3\",\n    \"Programming Language :: Python :: 3.8\",\n    \"Programming Language :: Python :: 3.9\",\n    \"Programming Language :: Python :: 3.10\",\n    \"Programming Language :: Python :: 3 :: Only\",\n    \"Topic :: Software Development :: Libraries :: Python Modules\",\n    \"Topic :: Scientific/Engineering :: Bio-Informatics\",\n    \"Topic :: Scientific/Engineering :: Information Analysis\",\n    \"Topic :: Scientific/Engineering :: Mathematics\",\n    \"Topic :: Scientific/Engineering :: Physics\",\n]\n\nwith open(\"networkx/__init__.py\") as fid:\n    for line in fid:\n        if line.startswith(\"__version__\"):\n            version = line.strip().split()[-1][1:-1]\n            break\n\npackages = [\n    \"networkx\",\n    \"networkx.algorithms\",\n    \"networkx.algorithms.assortativity\",\n    \"networkx.algorithms.bipartite\",\n    \"networkx.algorithms.node_classification\",\n    \"networkx.algorithms.centrality\",\n    \"networkx.algorithms.community\",\n    \"networkx.algorithms.components\",\n    \"networkx.algorithms.connectivity\",\n    \"networkx.algorithms.coloring\",\n    \"networkx.algorithms.flow\",\n    \"networkx.algorithms.minors\",\n    \"networkx.algorithms.traversal\",\n    \"networkx.algorithms.isomorphism\",\n    \"networkx.algorithms.shortest_paths\",\n    \"networkx.algorithms.link_analysis\",\n    \"networkx.algorithms.operators\",\n    \"networkx.algorithms.approximation\",\n    \"networkx.algorithms.tree\",\n    \"networkx.classes\",\n    \"networkx.generators\",\n    \"networkx.drawing\",\n    \"networkx.linalg\",\n    \"networkx.readwrite\",\n    \"networkx.readwrite.json_graph\",\n    \"networkx.tests\",\n    \"networkx.testing\",\n    \"networkx.utils\",\n]\n\ndocdirbase = \"share/doc/networkx-%s\" % version\n# add basic documentation\ndata = [(docdirbase, glob(\"*.txt\"))]\n# add examples\nfor d in [\n    \".\",\n    \"advanced\",\n    \"algorithms\",\n    \"basic\",\n    \"3d_drawing\",\n    \"drawing\",\n    \"graph\",\n    \"javascript\",\n    \"jit\",\n    \"pygraphviz\",\n    \"subclass\",\n]:\n    dd = os.path.join(docdirbase, \"examples\", d)\n    pp = os.path.join(\"examples\", d)\n    data.append((dd, glob(os.path.join(pp, \"*.txt\"))))\n    data.append((dd, glob(os.path.join(pp, \"*.py\"))))\n    data.append((dd, glob(os.path.join(pp, \"*.bz2\"))))\n    data.append((dd, glob(os.path.join(pp, \"*.gz\"))))\n    data.append((dd, glob(os.path.join(pp, \"*.mbox\"))))\n    data.append((dd, glob(os.path.join(pp, \"*.edgelist\"))))\n# add js force examples\ndd = os.path.join(docdirbase, \"examples\", \"javascript/force\")\npp = os.path.join(\"examples\", \"javascript/force\")\ndata.append((dd, glob(os.path.join(pp, \"*\"))))\n\n# add the tests\npackage_data = {\n    \"networkx\": [\"tests/*.py\"],\n    \"networkx.algorithms\": [\"tests/*.py\"],\n    \"networkx.algorithms.assortativity\": [\"tests/*.py\"],\n    \"networkx.algorithms.bipartite\": [\"tests/*.py\"],\n    \"networkx.algorithms.node_classification\": [\"tests/*.py\"],\n    \"networkx.algorithms.centrality\": [\"tests/*.py\"],\n    \"networkx.algorithms.community\": [\"tests/*.py\"],\n    \"networkx.algorithms.components\": [\"tests/*.py\"],\n    \"networkx.algorithms.connectivity\": [\"tests/*.py\"],\n    \"networkx.algorithms.coloring\": [\"tests/*.py\"],\n    \"networkx.algorithms.minors\": [\"tests/*.py\"],\n    \"networkx.algorithms.flow\": [\"tests/*.py\", \"tests/*.bz2\"],\n    \"networkx.algorithms.isomorphism\": [\"tests/*.py\", \"tests/*.*99\"],\n    \"networkx.algorithms.link_analysis\": [\"tests/*.py\"],\n    \"networkx.algorithms.approximation\": [\"tests/*.py\"],\n    \"networkx.algorithms.operators\": [\"tests/*.py\"],\n    \"networkx.algorithms.shortest_paths\": [\"tests/*.py\"],\n    \"networkx.algorithms.traversal\": [\"tests/*.py\"],\n    \"networkx.algorithms.tree\": [\"tests/*.py\"],\n    \"networkx.classes\": [\"tests/*.py\"],\n    \"networkx.generators\": [\"tests/*.py\", \"atlas.dat.gz\"],\n    \"networkx.drawing\": [\"tests/*.py\", \"tests/baseline/*png\"],\n    \"networkx.linalg\": [\"tests/*.py\"],\n    \"networkx.readwrite\": [\"tests/*.py\"],\n    \"networkx.readwrite.json_graph\": [\"tests/*.py\"],\n    \"networkx.testing\": [\"tests/*.py\"],\n    \"networkx.utils\": [\"tests/*.py\"],\n}\n\n\ndef parse_requirements_file(filename):\n    with open(filename) as fid:\n        requires = [l.strip() for l in fid.readlines() if not l.startswith(\"#\")]\n\n    return requires\n\n\ninstall_requires = []\nextras_require = {\n    dep: parse_requirements_file(\"requirements/\" + dep + \".txt\")\n    for dep in [\"default\", \"developer\", \"doc\", \"extra\", \"test\"]\n}\n\nwith open(\"README.rst\") as fh:\n    long_description = fh.read()\n\nif __name__ == \"__main__\":\n\n    setup(\n        name=name,\n        version=version,\n        maintainer=maintainer,\n        maintainer_email=maintainer_email,\n        author=authors[\"Hagberg\"][0],\n        author_email=authors[\"Hagberg\"][1],\n        description=description,\n        keywords=keywords,\n        long_description=long_description,\n        platforms=platforms,\n        url=url,\n        project_urls=project_urls,\n        classifiers=classifiers,\n        packages=packages,\n        data_files=data,\n        package_data=package_data,\n        install_requires=install_requires,\n        extras_require=extras_require,\n        python_requires=\">=3.8\",\n        zip_safe=False,\n    )\n", "path": "setup.py"}]}