Skip to content

Commit e6feb6f

Browse files
committed
create 1.12.3, and fix building docs
after VERSION file was removed, it stopped working
1 parent d54ee91 commit e6feb6f

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

docs/source/conf.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@
5454
# built documents.
5555
#
5656
# The short X.Y version.
57-
version = open("../../VERSION").read().strip()
57+
import tomli
58+
with open("../../pyproject.toml", "rb") as f:
59+
toml_dict = tomli.load(f)
60+
version = toml_dict['project']['version']
5861
# The full version, including alpha/beta/rc tags.
5962
release = version
6063

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "mesonpy"
44

55
[project]
66
name = "cysignals"
7-
version = "1.12.2"
7+
version = "1.12.3"
88
description = "Interrupt and signal handling for Cython"
99
license = { file = "LICENSE" }
1010
readme = { file = "README.rst", content-type = "text/x-rst" }

readthedocs.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
version: 2
12
conda:
23
file: readthedocs-conda.yml
34
python:
4-
version: 2.7
5+
version: "3.11"
56
pip_install: true
7+

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ wheel
44
Cython
55
Sphinx
66
flake8
7+
tomli
78
pytest>=8.0.0

0 commit comments

Comments
 (0)