From c8c96840e168cc23514e4b6487c9e4ac3dc13ab0 Mon Sep 17 00:00:00 2001 From: d-hage Date: Fri, 18 Jul 2025 17:26:47 +0200 Subject: [PATCH] bugfix: Include base_config.json in built wheel distribution --- CHANGELOG.md | 6 ++++++ base_config.json => deduce/base_config.json | 0 deduce/deduce.py | 5 ++--- pyproject.toml | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) rename base_config.json => deduce/base_config.json (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index bddafd4a..dfffb263 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 3.0.6 (2025-07-18) + +### Changed + +- Fixed missing `base_config.json` in released .whl + ## 3.0.5 (2025-06-18) ### Changed diff --git a/base_config.json b/deduce/base_config.json similarity index 100% rename from base_config.json rename to deduce/base_config.json diff --git a/deduce/deduce.py b/deduce/deduce.py index 84c62299..613aa89e 100644 --- a/deduce/deduce.py +++ b/deduce/deduce.py @@ -4,7 +4,6 @@ import itertools import json import logging -import os import sys from pathlib import Path from typing import Any, Optional, Union @@ -27,8 +26,8 @@ __version__ = importlib.metadata.version(__package__ or __name__) -_BASE_PATH = Path(os.path.dirname(__file__)).parent -_LOOKUP_LIST_PATH = _BASE_PATH / "deduce" / "data" / "lookup" +_BASE_PATH = Path(__file__).parent +_LOOKUP_LIST_PATH = _BASE_PATH / "data" / "lookup" _BASE_CONFIG_FILE = _BASE_PATH / "base_config.json" diff --git a/pyproject.toml b/pyproject.toml index ff2cd27e..3f22f85e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "deduce" -version = "3.0.5" +version = "3.0.6" description = "Deduce: de-identification method for Dutch medical text" authors = ["Vincent Menger "] maintainers = ["Vincent Menger "]