From 1195e39b55f90bdaa9788841e20ac868fb03923a Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Wed, 8 Jan 2025 11:57:50 +0000 Subject: [PATCH 1/2] docs: Read release version from changelog fixes #1157 --- docs/conf.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index b7dd1525..9ad5b534 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,8 +1,21 @@ +import re import sys sys.path.append('.') -VERSION = '0.3.9' + +def changelog_version(path, encoding='utf-8'): + version_pattern = re.compile( + r'^v(?P[0-9]+\.[0-9]+\.[0-9]+)', + re.MULTILINE, + ) + + with open(path, encoding=encoding) as f: + match = version_pattern.search(f.read()) + return match.group('version') + + +VERSION = changelog_version('changelog.rst') author = u'Network Genomics' copyright = u'2021, the Mitogen authors' From f03276201231f1a00593c9f92f8834b1c29e1e24 Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Thu, 9 Jan 2025 10:24:56 +0000 Subject: [PATCH 2/2] docs: Attempt to configure Netlify build of mitogen.networkgenomics.com This site has an unknown build config. Specifically I do not know the value of - Package directory - Base directory these are the locations that Netlify looks for netlify.toml. I've already tried docs/netlify.toml (#1210), unsuccessfully. This attempt is on the basis that Package directory == '/', or less likely that Base directory == '/'. refs #1209 See - https://docs.netlify.com/configure-builds/monorepos/#use-a-netlify-configuration-file - https://docs.netlify.com/configure-builds/file-based-configuration/ --- netlify.toml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 netlify.toml diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 00000000..8b1f8d24 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,2 @@ +[build.environment] +PYTHON_VERSION = "3.8"