The-Strategy-Unit / The-Strategy-Unit/nhp_model

dynamic versioning fails in the docker build process

Open
#404 0 comments 0 reactions 1 assignee View on GitHub

@tomjemmett is already working on this.

Since Jun 16, 2025.

priority: could technical debt
Dominant language
Python
Stars
18
Forks
3
Avg merge
21h 39m
Merged PRs (30d)
10

Description

in #403 introduced https://github.com/The-Strategy-Unit/nhp_model/blob/9a5792b58613c00ec621f2a06e426253eb9fb7e0/Dockerfile#L25

the way dynamic versioning works with setuptools-scm requires the .git folder to be present so it picks up tags/commits. we aren't copying in the .git folder, so dynamic versioning fails.

this forces the version in the container to be v0.0.0, that is fine for now

a better solution might be to build the whl and copy that in, installing it instead.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.