From e6feb6f4b0671774e6ef8026644b1deec7131f43 Mon Sep 17 00:00:00 2001 From: Dima Pasechnik Date: Sat, 25 Jan 2025 11:39:59 -0600 Subject: [PATCH] create 1.12.3, and fix building docs after VERSION file was removed, it stopped working --- docs/source/conf.py | 5 ++++- pyproject.toml | 2 +- readthedocs.yml | 4 +++- requirements.txt | 1 + 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index ab8837d0..bda9b3be 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -54,7 +54,10 @@ # built documents. # # The short X.Y version. -version = open("../../VERSION").read().strip() +import tomli +with open("../../pyproject.toml", "rb") as f: + toml_dict = tomli.load(f) +version = toml_dict['project']['version'] # The full version, including alpha/beta/rc tags. release = version diff --git a/pyproject.toml b/pyproject.toml index edcb5c8f..2d256552 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "mesonpy" [project] name = "cysignals" -version = "1.12.2" +version = "1.12.3" description = "Interrupt and signal handling for Cython" license = { file = "LICENSE" } readme = { file = "README.rst", content-type = "text/x-rst" } diff --git a/readthedocs.yml b/readthedocs.yml index 7028f099..ce0bbb23 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -1,5 +1,7 @@ +version: 2 conda: file: readthedocs-conda.yml python: - version: 2.7 + version: "3.11" pip_install: true + diff --git a/requirements.txt b/requirements.txt index f7e33c72..5901c35e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,5 @@ wheel Cython Sphinx flake8 +tomli pytest>=8.0.0