summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarrod Millman <jarrod.millman@gmail.com>2022-10-11 12:13:48 -0700
committerGitHub <noreply@github.com>2022-10-11 12:13:48 -0700
commitc464814ed02635698eafb8bb8b567f778978dd14 (patch)
tree54599cbac9893913a1506581a1d88d15fd29d518
parent06dc63c62822a56d3a8ed36c65630298d8954cff (diff)
downloadnetworkx-c464814ed02635698eafb8bb8b567f778978dd14.tar.gz
Update deprecations after 3.0 dep sprint (#6031)
* Update deprecation todo list * Remove silenced warnings
-rw-r--r--doc/developer/deprecations.rst28
-rw-r--r--networkx/conftest.py53
2 files changed, 0 insertions, 81 deletions
diff --git a/doc/developer/deprecations.rst b/doc/developer/deprecations.rst
index d35e24a0..120f49ef 100644
--- a/doc/developer/deprecations.rst
+++ b/doc/developer/deprecations.rst
@@ -46,46 +46,18 @@ Version 3.0
* In ``readwrite/gml.py`` remove ``literal_stringizer`` and related tests.
* In ``readwrite/gml.py`` remove ``literal_destringizer`` and related tests.
-* In ``utils/misc.py`` remove ``is_string_like`` and related tests.
-* In ``utils/misc.py`` remove ``make_str`` and related tests.
-* In ``utils/misc.py`` remove ``is_iterator``.
-* In ``utils/misc.py`` remove ``iterable``.
-* In ``utils/misc.py`` remove ``is_list_of_ints``.
-* In ``utils/misc.py`` remove ``consume``.
-* In ``utils/misc.py`` remove ``default_opener``.
-* In ``utils/misc.py`` remove ``empty_generator``.
-* Remove ``utils/contextmanagers.py`` and related tests.
-* In ``linalg/algebraicconnectivity.py`` remove ``_CholeskySolver`` and related code.
-* In ``readwrite/json_graph/cytoscape.py``, change function signature for
- ``cytoscape_graph`` and ``cytoscape_data`` to replace the ``attrs`` keyword.
- argument with explicit ``name`` and ``ident`` keyword args.
-* In ``readwrite/json_graph/tree.py``, remove ``attrs`` kwarg from ``tree_graph``
- and ``tree_data``.
* Remove ``copy`` method in the coreview Filtered-related classes and related tests.
* In ``algorithms/link_analysis/pagerank_alg.py`` replace ``pagerank`` with ``pagerank_scipy``.
* In ``algorithms/link_analysis/pagerank_alg.py`` rename ``pagerank_numpy`` as ``_pagerank_numpy``.
* In ``convert_matrix.py`` remove ``order`` kwarg from ``to_pandas_edgelist`` and docstring
-* In ``algorithms/link_analysis/hits_alg.py`` remove ``hub_matrix`` and ``authority_matrix``
-* In ``algorithms/link_analysis/hits_alg.py``, remove ``hits_numpy`` and ``hist_scipy``.
-* Remove ``testing``.
-* In ``linalg/graphmatrix.py`` remove ``adj_matrix``.
* In ``algorithms/operators/binary.py`` remove ``name`` kwarg from ``union`` and docstring.
-* In ``generators/geometric.py`` remove ``euclidean`` and tests.
* In ``algorithms/link_analysis/pagerank_alg.py``, remove the
``np.asmatrix`` wrappers on the return values of ``google_matrix`` and remove
the associated FutureWarning.
* In ``linalg/attrmatrix.py`` remove the FutureWarning, update the
return type by removing ``np.asmatrix``, and update the docstring to
reflect that the function returns a ``numpy.ndarray`` instance.
-* In ``generators/small.py`` remove ``make_small_graph`` and
- ``make_small_undirected_graph``.
-* In ``classes/function.py`` remove ``info``.
-* In ``algorithms/community/modularity_max.py``, remove the deprecated
- ``n_communities`` parameter from the ``greedy_modularity_communities``
- function.
* In ``algorithms/distance_measures.py`` remove ``extrema_bounding``.
-* In ``utils/misc.py`` remove ``dict_to_numpy_array1`` and ``dict_to_numpy_array2``.
-* In ``utils/misc.py`` remove ``to_tuple``.
* In ``algorithms/matching.py``, remove parameter ``maxcardinality`` from ``min_weight_matching``.
diff --git a/networkx/conftest.py b/networkx/conftest.py
index 2fa779a9..5c95c9fc 100644
--- a/networkx/conftest.py
+++ b/networkx/conftest.py
@@ -52,43 +52,6 @@ def set_warnings():
category=DeprecationWarning,
message="literal_destringizer is deprecated",
)
- warnings.filterwarnings(
- "ignore",
- category=DeprecationWarning,
- message="context manager reversed is deprecated",
- )
- warnings.filterwarnings(
- "ignore",
- category=DeprecationWarning,
- message="This will return a generator in 3.0*",
- )
- warnings.filterwarnings(
- "ignore", category=PendingDeprecationWarning, message="the matrix subclass"
- )
- warnings.filterwarnings(
- "ignore", category=DeprecationWarning, message="edges_from_line"
- )
- warnings.filterwarnings("ignore", category=DeprecationWarning, message="consume")
- warnings.filterwarnings(
- "ignore", category=DeprecationWarning, message="iterable is deprecated"
- )
- warnings.filterwarnings(
- "ignore", category=DeprecationWarning, message="`almost_equal`"
- )
- warnings.filterwarnings(
- "ignore", category=DeprecationWarning, message="`assert_nodes_equal`"
- )
- warnings.filterwarnings(
- "ignore", category=DeprecationWarning, message="`assert_edges_equal`"
- )
- warnings.filterwarnings(
- "ignore", category=DeprecationWarning, message="`assert_graphs_equal`"
- )
- warnings.filterwarnings(
- "ignore",
- category=FutureWarning,
- message="google_matrix will return an np.ndarray instead of a np.matrix",
- )
### Future warnings from scipy.sparse array transition
warnings.filterwarnings(
"ignore", category=FutureWarning, message="biadjacency_matrix"
@@ -119,22 +82,6 @@ def set_warnings():
warnings.filterwarnings(
"ignore", category=FutureWarning, message="directed_modularity_matrix"
)
- warnings.filterwarnings(
- "ignore", category=FutureWarning, message="adjacency_matrix"
- )
- warnings.filterwarnings(
- "ignore",
- category=DeprecationWarning,
- message="\n\nThe scipy.sparse array containers",
- )
- warnings.filterwarnings(
- "ignore", category=DeprecationWarning, message="networkx.project"
- )
- warnings.filterwarnings(
- "ignore", category=DeprecationWarning, message="\nfind_cores"
- )
- warnings.filterwarnings("ignore", category=FutureWarning, message="attr_matrix")
- warnings.filterwarnings("ignore", category=DeprecationWarning, message="info")
# create_using for scale_free_graph
warnings.filterwarnings(
"ignore", category=DeprecationWarning, message="The create_using argument"