Skip to content

Commit c4adc51

Browse files
author
Daniel Havlik
authored
Integrate .readthedocs.yaml (#262)
Done using zopefoundation/meta#205.
1 parent 7fd02e2 commit c4adc51

File tree

7 files changed

+35
-3
lines changed

7 files changed

+35
-3
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- ["3.9", "py39"]
2828
- ["3.10", "py310"]
2929
- ["3.11", "py311"]
30-
- ["3.12.0-beta.2", "py312"]
30+
- ["3.12.0-rc.3", "py312"]
3131
- ["3.9", "docs"]
3232
- ["3.9", "coverage"]
3333
- ["3.9", "py39-datetime"]

.meta.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
33
[meta]
44
template = "pure-python"
5-
commit-id = "1814282a"
5+
commit-id = "b21fbbf2"
66

77
[python]
88
with-pypy = false
@@ -66,6 +66,7 @@ additional-sources = "tests"
6666

6767
[manifest]
6868
additional-rules = [
69+
"include *.yaml",
6970
"recursive-include docs *.ast",
7071
"recursive-include docs *.bat",
7172
"recursive-include docs *.jpg",

.readthedocs.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Generated from:
2+
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
3+
# Read the Docs configuration file
4+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
5+
6+
# Required
7+
version: 2
8+
9+
# Set the version of Python and other tools you might need
10+
build:
11+
os: ubuntu-22.04
12+
tools:
13+
python: "3.11"
14+
15+
# Build documentation in the docs/ directory with Sphinx
16+
sphinx:
17+
configuration: docs/conf.py
18+
19+
# We recommend specifying your dependencies to enable reproducible builds:
20+
# https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
21+
python:
22+
install:
23+
- requirements: docs/requirements.txt
24+
- method: pip
25+
path: .

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ recursive-include docs *.txt
1212
recursive-include docs Makefile
1313

1414
recursive-include src *.py
15+
include *.yaml
1516
recursive-include docs *.ast
1617
recursive-include docs *.bat
1718
recursive-include docs *.jpg

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123

124124
# The theme to use for HTML and HTML Help pages. See the documentation for
125125
# a list of builtin themes.
126-
html_theme = 'sphinx_rtd_theme'
126+
html_theme = 'default'
127127

128128
# Theme options are theme-specific and customize the look and feel of a theme
129129
# further. For a list of options available for each theme, see the

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Sphinx

tox.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ envlist =
1717

1818
[testenv]
1919
usedevelop = true
20+
package = wheel
21+
wheel_build_env = .pkg
2022
pip_pre = py312: true
2123
deps =
2224
datetime: DateTime
@@ -25,6 +27,8 @@ deps =
2527
Sphinx
2628
setenv =
2729
COVERAGE_FILE=.coverage.{envname}
30+
py312: VIRTUALENV_PIP=23.1.2
31+
py312: PIP_REQUIRE_VIRTUALENV=0
2832
commands =
2933
python -V
3034
pytest --cov=src --cov=tests --cov-report= {posargs}

0 commit comments

Comments
 (0)