From a121e1a747b0d058bc8d17ccebabfa1fffdf8f7e Mon Sep 17 00:00:00 2001 From: "Pey Lian Lim (Github)" <2090236+pllim@users.noreply.github.com> Date: Tue, 21 Dec 2021 10:08:09 -0500 Subject: [PATCH] Moar fixes --- .github/workflows/ci_workflows.yml | 1 + doc/source/conf.py | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci_workflows.yml b/.github/workflows/ci_workflows.yml index a2e325e7..811fb028 100644 --- a/.github/workflows/ci_workflows.yml +++ b/.github/workflows/ci_workflows.yml @@ -74,6 +74,7 @@ jobs: - name: Install and build run: | python -m pip install --upgrade pip setuptools wheel + pip install git+https://github.com/spacetelescope/ci_watson.git --upgrade --no-deps python -m pip install -e .[test,all] - name: Test run: pytest --remote-data -v diff --git a/doc/source/conf.py b/doc/source/conf.py index f23160af..4bc2ae8f 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -10,8 +10,7 @@ # # All configuration values have a default; values that are commented out # serve to show the default. - -from pkg_resources import get_distribution +from importlib import metadata # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the @@ -53,7 +52,7 @@ # built documents. # # The full version, including alpha/beta/rc tags. -release = get_distribution('acstools').version +release = metadata.version('acstools') # The short X.Y version. version = '.'.join(release.split('.')[:2])