From 0323bd2a6d6cf424d874e42caea48d43a67cbca5 Mon Sep 17 00:00:00 2001 From: Marcus Hughes Date: Fri, 1 Nov 2024 14:23:34 -0600 Subject: [PATCH 1/2] Create .readthedocs.yaml --- .readthedocs.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .readthedocs.yaml diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 0000000..14d0a0a --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,33 @@ +# .readthedocs.yaml +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Required +version: 2 + +# Set the OS, Python version and other tools you might need +build: + os: ubuntu-22.04 + tools: + python: "3.12" + + +# Build documentation in the "docs/" directory with Sphinx +sphinx: + configuration: docs/source/conf.py + +# Optionally build your docs in additional formats such as PDF and ePub +formats: + - pdf + - epub + +# Optional but recommended, declare the Python requirements required +# to build your documentation +# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html +python: + install: + - method: pip + extra_requirements: + - all + - docs + path: . From 7226f3e66c8502f571aa02d2ed9d4199b334a7bd Mon Sep 17 00:00:00 2001 From: Marcus Hughes Date: Fri, 1 Nov 2024 14:25:14 -0600 Subject: [PATCH 2/2] switch versioning system --- pyproject.toml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e8eb32f..ae8a539 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,10 @@ +[build-system] +requires = ["setuptools>=64", "setuptools-scm>=8", "wheel"] +build-backend = "setuptools.build_meta" + [project] name = "solpolpy" -version = "0.3.1" +dynamic = ["version"] authors = [ { name="J. Marcus Hughes", email="mhughes@boulder.swri.edu"}, { name="Matthew J. West", email="mwest@boulder.swri.edu"}, @@ -44,9 +48,7 @@ docs = [ dev = ["solpolpy[test, docs]", "pre-commit"] -[build-system] -requires = ["setuptools>=61.0"] -build-backend = "setuptools.build_meta" +[tool.setuptools_scm] [tool.setuptools] packages = ['solpolpy']