From fbf407503788b088d6883150d94615a02ed9f3c4 Mon Sep 17 00:00:00 2001 From: Max Bachmann Date: Sat, 13 Jul 2024 18:54:23 +0200 Subject: [PATCH] fix version parsing --- pyproject.toml | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3af40e2..c863a99 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,6 +52,7 @@ wheel.exclude = [ [tool.scikit-build.metadata.version] provider = "scikit_build_core.metadata.regex" input = "src/Levenshtein/__init__.py" +regex = "(?i)^__version__: str = (\")(?P.+?)\\1" [tool.black] line-length = 120 @@ -140,19 +141,3 @@ isort.required-imports = ["from __future__ import annotations"] "bench/**" = ["T20"] "_custom_build/backend.py" = ["T20"] "setup.py" = ["T20"] - - - - -#[tool.scikit-build] - - - -#setup( -# url="https://github.com/rapidfuzz/Levenshtein", -# license="GPL", -# license_file="COPYING", -# packages=["Levenshtein"], -# package_dir={"": "src"}, -# package_data={"Levenshtein": ["*.pyi", "py.typed"]}, -#)