From fcaec445d9a68000909c73f50c04f1788152b941 Mon Sep 17 00:00:00 2001 From: Malte Vogl Date: Wed, 20 Nov 2024 08:23:20 +0100 Subject: [PATCH 1/3] fix .readthedocs.yaml --- .readthedocs.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 3943fd8..722a9f9 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -9,7 +9,10 @@ build: sphinx: configuration: docs/conf.py - + python: install: - - requirements: docs/requirements.txt + - method: pip + path: . + extra_requirements: + - docs From 950fdf83ea282c200bb32bfadc30c6f29f507f4e Mon Sep 17 00:00:00 2001 From: rlskoeser Date: Wed, 20 Nov 2024 16:13:45 -0500 Subject: [PATCH 2/3] Set version in docs from version in code --- docs/conf.py | 3 ++- src/undate/__init__.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 710d933..a55e3ae 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -14,6 +14,7 @@ # import sys # sys.path.insert(0, os.path.abspath('.')) +import undate # -- Project information ----------------------------------------------------- @@ -22,7 +23,7 @@ author = "DHtech Community" # The full version, including alpha/beta/rc tags -release = "0.0.1.dev" +release = undate.__version__ master_doc = "index" diff --git a/src/undate/__init__.py b/src/undate/__init__.py index 2593563..c8d79a0 100644 --- a/src/undate/__init__.py +++ b/src/undate/__init__.py @@ -1,6 +1,6 @@ -__version__ = "0.3.0" +__version__ = "0.3.1" from undate.date import DatePrecision from undate.undate import Undate, UndateInterval -__all__ = ["Undate", "UndateInterval", "DatePrecision"] +__all__ = ["Undate", "UndateInterval", "DatePrecision", "__version__"] From 0962856b6ef13e8ef96695c5b6576c8b38b19280 Mon Sep 17 00:00:00 2001 From: rlskoeser Date: Wed, 20 Nov 2024 16:14:21 -0500 Subject: [PATCH 3/3] Document changes in 0.3.1 (readthedocs config) --- .readthedocs.yaml | 2 +- CHANGELOG.md | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 722a9f9..d11862e 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -5,7 +5,7 @@ version: 2 build: os: "ubuntu-20.04" tools: - python: "3.9" + python: "3.12" sphinx: configuration: docs/conf.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 260a330..23ec981 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 0.3.1 + +Update readthedocs config for current installation + ## 0.3 - Updated to use numpy `datetime64` to support a greater range of years beyond the 4-digit years supported by python's builtin `datetime.date`