From b85a62e61ff2e45bad42dd57b65717602bf48c37 Mon Sep 17 00:00:00 2001 From: Marcelo Duarte Date: Sat, 4 Jan 2025 13:26:19 -0300 Subject: [PATCH] fix: compatibility with python 3.8 --- doc/requirements.txt | 2 +- pyproject.toml | 20 +++++++++++++++++--- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/doc/requirements.txt b/doc/requirements.txt index 064533cdc..61f358e66 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -1,5 +1,5 @@ sphinx>=7.1.2,<8 -sphinx-new-tab-link==0.6.1 +sphinx-new-tab-link>=0.6.0 sphinx-tabs==3.4.7 furo==2024.8.6 myst-parser>=3.0.1,<=4.0.0 diff --git a/pyproject.toml b/pyproject.toml index 70e8cdd89..9d9462a9f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -63,7 +63,7 @@ dev = [ ] doc = [ "sphinx>=7.1.2,<8", # lower limit python_version < 3.9 - "sphinx-new-tab-link==0.6.1", + "sphinx-new-tab-link>=0.6.0", "sphinx-tabs==3.4.7", "furo==2024.8.6", "myst-parser>=3.0.1,<=4.0.0", # lower limit python_version < 3.10 @@ -123,8 +123,21 @@ target-version = ["py38"] commit = true current_version = "7.2.7" message = "Bump version: {current_version} → {new_version} [ci skip]" -parse = "(?P\\d+)\\.(?P\\d+)\\.(?P\\d+)(\\-(?P
[a-z]+)\\.(?P\\d+))?"
+parse = """(?x)
+    (?P0|[1-9]\\d*)\\.
+    (?P0|[1-9]\\d*)\\.
+    (?P0|[1-9]\\d*)
+    (?:
+        \\.(?P0|[1-9]\\d*)  # pull request number (optional)
+    )?
+    (?:
+        -                             # dash separator for pre-release section
+        (?P
[a-zA-Z-]+)\\.        # pre-release label
+        (?P0|[1-9]\\d*)        # pre-release version number
+    )?                                # pre-release section is optional
+"""
 serialize = [
+	"{major}.{minor}.{patch}.{optional}-{pre}.{build}",
 	"{major}.{minor}.{patch}-{pre}.{build}",
 	"{major}.{minor}.{patch}"
 ]
@@ -148,7 +161,8 @@ before-build = "pip install -r requirements.txt"
 build-frontend = "build[uv]"
 build-verbosity = 1
 skip = [
-    "cp3{8,9}-{many,musl}linux_{aarch64,ppc64le}",
+    "cp3{8,9}-musllinux_*",
+    "cp3{8,9}-manylinux_ppc64le",
 ]
 
 [tool.cibuildwheel.linux]