From f00c0767fdbad079df944f21761f75ea8f3a2529 Mon Sep 17 00:00:00 2001 From: Tomas Beuzen Date: Wed, 8 Jan 2025 11:59:31 +1100 Subject: [PATCH 1/2] make python 3.12 the default option in cookiecutter config --- cookiecutter.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookiecutter.json b/cookiecutter.json index 9db30cb..a9af49c 100644 --- a/cookiecutter.json +++ b/cookiecutter.json @@ -4,7 +4,7 @@ "__package_slug": "{{ cookiecutter.package_name|lower|replace(' ', '_')|replace('-', '_') }}", "package_short_description": "A package for doing great things!", "package_version": "0.1.0", - "python_version": "3.9", + "python_version": "3.12", "open_source_license": [ "MIT", "Apache License 2.0", From 2613857462763930fa5b559239e8b58280d42b7c Mon Sep 17 00:00:00 2001 From: Tomas Beuzen Date: Wed, 8 Jan 2025 11:59:55 +1100 Subject: [PATCH 2/2] make sure RTD installs dev dependencies for doc building --- {{ cookiecutter.__package_slug }}/.readthedocs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/{{ cookiecutter.__package_slug }}/.readthedocs.yml b/{{ cookiecutter.__package_slug }}/.readthedocs.yml index cffc36f..39d01e9 100644 --- a/{{ cookiecutter.__package_slug }}/.readthedocs.yml +++ b/{{ cookiecutter.__package_slug }}/.readthedocs.yml @@ -16,8 +16,8 @@ build: # https://python-poetry.org/docs/#installing-manually - pip install poetry post_install: - - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install - + - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --all-groups + # Build documentation in the "docs/" directory with Sphinx sphinx: configuration: docs/conf.py