diff --git a/docs/conf.py b/docs/conf.py index 8ad87a4cf..b5dc288a2 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -131,10 +131,10 @@ numpydoc_show_class_members = False numpydoc_show_inherited_class_members = False -_python_doc_base = "https://docs.python.org/3.9" +_python_doc_base = "https://docs.python.org/3.11" intersphinx_mapping = { - "python": ("https://docs.python.org/3.9", None), + "python": ("https://docs.python.org/3.11", None), "numpy": ("https://numpy.org/doc/stable", None), "scipy": ("https://docs.scipy.org/doc/scipy/reference", None), "scikit-learn": ("https://scikit-learn.org/stable", None), @@ -332,7 +332,7 @@ """, } -latex_master_doc = "indexlatex" +latex_master_doc = "index" # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, diff --git a/docs/docs-env.yml b/docs/docs-env.yml index 3068f652f..24ada5ee0 100644 --- a/docs/docs-env.yml +++ b/docs/docs-env.yml @@ -3,7 +3,9 @@ channels: - jaimergp/label/unsupported-cudatoolkit-shim - conda-forge dependencies: - - python>=3.8 + - importlib_resources + - python=3.11 + - ipython - pip - pip: - boltons diff --git a/mbuild/recipes/__init__.py b/mbuild/recipes/__init__.py index e5970a0d1..e5caecc5e 100644 --- a/mbuild/recipes/__init__.py +++ b/mbuild/recipes/__init__.py @@ -1,5 +1,7 @@ """Entrypoints for mBuild recipe plugins.""" +import sys + class Recipes(object): """mBuild recipe object.""" @@ -10,7 +12,10 @@ class Recipes(object): recipes = Recipes() from importlib import metadata -entry_points = metadata.entry_points()["mbuild.plugins"] +if sys.version_info.minor >= 10: + entry_points = metadata.entry_points().select(group="mbuild.plugins") +else: + entry_points = metadata.entry_points()["mbuild.plugins"] available_methods = [] for entry_point in entry_points: