From 470c69ec404e1c73336452f248b894244d774d35 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 15 Mar 2026 14:45:36 +0000 Subject: [PATCH 1/2] Initial plan From 355b8a831ed440ae707559f2e46c30fd31dac132 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 15 Mar 2026 14:48:10 +0000 Subject: [PATCH 2/2] Replace pkg_resources with importlib.metadata in docs/conf.py Co-authored-by: dfm <350282+dfm@users.noreply.github.com> --- docs/conf.py | 6 +++--- docs/requirements.txt | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 3420ff0b..ebf91585 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,10 +1,10 @@ # -*- coding: utf-8 -*- -from pkg_resources import DistributionNotFound, get_distribution +from importlib.metadata import PackageNotFoundError, version try: - __version__ = get_distribution("emcee").version -except DistributionNotFound: + __version__ = version("emcee") +except PackageNotFoundError: __version__ = "unknown version" diff --git a/docs/requirements.txt b/docs/requirements.txt index eab651e5..9582ce1b 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -6,4 +6,3 @@ h5py celerite corner ipython -setuptools