From c8f415d043a56fa432595aa943a26e1a87d13d59 Mon Sep 17 00:00:00 2001 From: Kartik Kumar Date: Mon, 12 Aug 2024 13:20:41 +0530 Subject: [PATCH 1/2] Derive project version using importlib --- docs/source/conf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 4bb6535d..62a48a45 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -6,10 +6,12 @@ # -- Project information ----------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information +import importlib.metadata + project = "pytest-asyncio" copyright = "2023, pytest-asyncio contributors" author = "Tin Tvrtković" -release = "v0.23.0" +release = importlib.metadata.version(project) # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration From 657330f0052e70602654371ed098e00cf18067d6 Mon Sep 17 00:00:00 2001 From: Kartik Kumar Date: Mon, 12 Aug 2024 19:10:17 +0530 Subject: [PATCH 2/2] Update .readthedocs.yaml to install pytest-asyncio --- .readthedocs.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index d825e855..efff237b 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -16,3 +16,4 @@ python: install: - requirements: dependencies/default/constraints.txt - requirements: dependencies/docs/constraints.txt + - path: .