Skip to content

Fix RTD version discovery #4854

@bjlittle

Description

@bjlittle

🐛 Bug Report

How To Reproduce

The recent adoption of setuptools-scm from PR #4841 is causing the incorrect iris version to be rendered on the iris readthedocs (RTD).

In addition, when building the documentation on RTD the version is tagged as +dirty, which although is an side-effect of how RTD builds the publishes the documentation, is misleading i.e., we should parse out the +dirty extension to the version.

Expected behaviour

The current version should be rendered as something like v3.2.2.dev158.

Screenshots

image

Please add additional verbose information in this section e.g., code, output, tracebacks, screenshots etc

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions