From f94979cb6a7a41edeb0d13a0a1a01d7f4fde6d74 Mon Sep 17 00:00:00 2001 From: Yan Wong Date: Thu, 29 Oct 2026 14:44:07 +0000 Subject: [PATCH] Fix #44 The change to pyproject.toml matches msprime (updated to avoid deprecated usage). The provenance fix is not the same, as msprime doesn't use the get_version fallback, although other tskit repo packages do. This is the minimally invasive fix. --- pyproject.toml | 1 + tscompare/provenance.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 19eb62e..03db8dc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -95,6 +95,7 @@ packages = [ ] [tool.setuptools_scm] +version_file = "tscompare/_version.py" local_scheme = "no-local-version" [tool.pytest.ini_options] diff --git a/tscompare/provenance.py b/tscompare/provenance.py index ddd0850..b776d55 100644 --- a/tscompare/provenance.py +++ b/tscompare/provenance.py @@ -30,5 +30,5 @@ from setuptools_scm import get_version __version__ = get_version(root="..", relative_to=__file__) - except ImportError: + except (ImportError, LookupError): pass