From c1d2dc26b26020b227ed6143548afab783ad0e68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Eertmans?= Date: Thu, 18 Jan 2024 23:33:00 +0100 Subject: [PATCH] fix(ci): avoid dynamic if does not work --- .bumpversion.cfg | 6 +----- pyproject.toml | 8 +++++++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 6f63db00..16feb650 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,7 +1,7 @@ [bumpversion] current_version = 5.1.0-rc3 parse = (?P\d+)\.(?P\d+)\.(?P\d+)(-rc(?P\d+))? -serialize = +serialize = {major}.{minor}.{patch}-rc{release} {major}.{minor}.{patch} commit = True @@ -11,10 +11,6 @@ message = chore(version): bump {current_version} to {new_version} search = __version__ = "{current_version}" replace = __version__ = "{new_version}" -[bumpversion:file:pyproject.toml] -search = version = "{current_version}" -replace = version = "{new_version}" - [bumpversion:file:CITATION.cff] search = version: v{current_version} replace = version: v{new_version} diff --git a/pyproject.toml b/pyproject.toml index 17f23b1c..c2099319 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,9 +35,11 @@ dependencies = [ "tqdm>=4.64.1", ] description = "Tool for live presentations using manim" -dynamic = ["license", "readme"] +dynamic = ["version"] keywords = ["manim", "slides", "plugin", "manimgl"] +license = {text = "MIT"} name = "manim-slides" +readme = "README.md" requires-python = ">=3.8,<3.12" version = "5.1.0-rc3" @@ -102,6 +104,10 @@ test = [ "pytest-xdist>=3.3.1", ] +[tool.pdm.version] +path = "manim_slides/__version__.py" +source = "file" + [tool.pytest.ini_options] env = [ "QT_QPA_PLATFORM=offscreen",