fix(ci): avoid dynamic if does not work

This commit is contained in:
Jérome Eertmans
2024-01-18 23:33:00 +01:00
parent 0db4a8c260
commit c1d2dc26b2
2 changed files with 8 additions and 6 deletions

View File

@ -1,7 +1,7 @@
[bumpversion] [bumpversion]
current_version = 5.1.0-rc3 current_version = 5.1.0-rc3
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(-rc(?P<release>\d+))? parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(-rc(?P<release>\d+))?
serialize = serialize =
{major}.{minor}.{patch}-rc{release} {major}.{minor}.{patch}-rc{release}
{major}.{minor}.{patch} {major}.{minor}.{patch}
commit = True commit = True
@ -11,10 +11,6 @@ message = chore(version): bump {current_version} to {new_version}
search = __version__ = "{current_version}" search = __version__ = "{current_version}"
replace = __version__ = "{new_version}" replace = __version__ = "{new_version}"
[bumpversion:file:pyproject.toml]
search = version = "{current_version}"
replace = version = "{new_version}"
[bumpversion:file:CITATION.cff] [bumpversion:file:CITATION.cff]
search = version: v{current_version} search = version: v{current_version}
replace = version: v{new_version} replace = version: v{new_version}

View File

@ -35,9 +35,11 @@ dependencies = [
"tqdm>=4.64.1", "tqdm>=4.64.1",
] ]
description = "Tool for live presentations using manim" description = "Tool for live presentations using manim"
dynamic = ["license", "readme"] dynamic = ["version"]
keywords = ["manim", "slides", "plugin", "manimgl"] keywords = ["manim", "slides", "plugin", "manimgl"]
license = {text = "MIT"}
name = "manim-slides" name = "manim-slides"
readme = "README.md"
requires-python = ">=3.8,<3.12" requires-python = ">=3.8,<3.12"
version = "5.1.0-rc3" version = "5.1.0-rc3"
@ -102,6 +104,10 @@ test = [
"pytest-xdist>=3.3.1", "pytest-xdist>=3.3.1",
] ]
[tool.pdm.version]
path = "manim_slides/__version__.py"
source = "file"
[tool.pytest.ini_options] [tool.pytest.ini_options]
env = [ env = [
"QT_QPA_PLATFORM=offscreen", "QT_QPA_PLATFORM=offscreen",