summaryrefslogtreecommitdiff
path: root/networkx/conftest.py
diff options
context:
space:
mode:
authorJarrod Millman <jarrod.millman@gmail.com>2022-06-21 05:57:53 -0700
committerGitHub <noreply@github.com>2022-06-21 16:57:53 +0400
commita81cadeec93d91dae8e4d1183b1b3bfb9c8ffe23 (patch)
treee72814f5b53f9f1e69c0b132dfadad63cc855c7e /networkx/conftest.py
parentec4171be07bd6ffdced927acbc05b9eb323e9f3f (diff)
downloadnetworkx-a81cadeec93d91dae8e4d1183b1b3bfb9c8ffe23.tar.gz
Remove pyyaml dependency (#5763)
* Remove pyyaml dependency * Make mypy happy. Co-authored-by: Ross Barnowski <rossbar@berkeley.edu> Co-authored-by: Mridul Seth <seth.mridul@gmail.com>
Diffstat (limited to 'networkx/conftest.py')
-rw-r--r--networkx/conftest.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/networkx/conftest.py b/networkx/conftest.py
index bdb65f2e..6a817a55 100644
--- a/networkx/conftest.py
+++ b/networkx/conftest.py
@@ -83,8 +83,6 @@ def set_warnings():
warnings.filterwarnings(
"ignore", category=DeprecationWarning, message="edges_from_line"
)
- warnings.filterwarnings("ignore", category=DeprecationWarning, message="write_yaml")
- warnings.filterwarnings("ignore", category=DeprecationWarning, message="read_yaml")
warnings.filterwarnings(
"ignore", category=DeprecationWarning, message="FilterAtlas.copy"
)
@@ -222,13 +220,6 @@ except ImportError:
has_pygraphviz = False
try:
- import yaml
-
- has_yaml = True
-except ImportError:
- has_yaml = False
-
-try:
import pydot
has_pydot = True
@@ -288,7 +279,6 @@ needs_scipy = [
]
needs_matplotlib = ["drawing/nx_pylab.py"]
needs_pandas = ["convert_matrix.py"]
-needs_yaml = ["readwrite/nx_yaml.py"]
needs_pygraphviz = ["drawing/nx_agraph.py"]
needs_pydot = ["drawing/nx_pydot.py"]
needs_sympy = ["algorithms/polynomials.py"]
@@ -301,8 +291,6 @@ if not has_matplotlib:
collect_ignore += needs_matplotlib
if not has_pandas:
collect_ignore += needs_pandas
-if not has_yaml:
- collect_ignore += needs_yaml
if not has_pygraphviz:
collect_ignore += needs_pygraphviz
if not has_pydot: