From 620039a9d870146f4b56bcd94e37050c19f99e50 Mon Sep 17 00:00:00 2001 From: Martin Siggel Date: Mon, 4 May 2026 09:38:06 +0200 Subject: [PATCH 1/2] Fixed incorrect reported package version Fixes #1488 --- src/PkgBase/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PkgBase/__init__.py b/src/PkgBase/__init__.py index d6c5e0b7e..ef8990f6f 100644 --- a/src/PkgBase/__init__.py +++ b/src/PkgBase/__init__.py @@ -5,7 +5,7 @@ # Version number PYTHONOCC_VERSION_MAJOR = 7 PYTHONOCC_VERSION_MINOR = 9 -PYTHONOCC_VERSION_PATCH = 0 +PYTHONOCC_VERSION_PATCH = 3 # Empty for official releases, set to -dev, -rc1, etc for development releases PYTHONOCC_VERSION_DEVEL = "" From 1a1e20c3bfffb5ee741144302537f3296da0bdca Mon Sep 17 00:00:00 2001 From: Martin Siggel Date: Mon, 4 May 2026 10:34:29 +0200 Subject: [PATCH 2/2] Prepare bump-my-version support --- .bumpversion.toml | 67 +++++++++++++++++++++++++++++++++++++++++ README.md | 2 +- src/PkgBase/__init__.py | 2 +- 3 files changed, 69 insertions(+), 2 deletions(-) create mode 100644 .bumpversion.toml diff --git a/.bumpversion.toml b/.bumpversion.toml new file mode 100644 index 000000000..0cb6dc788 --- /dev/null +++ b/.bumpversion.toml @@ -0,0 +1,67 @@ +[tool.bumpversion] +current_version = "7.9.3" +commit = true +tag = false +tag_name = "{new_major}.{new_minor}.{new_patch}" + +[[tool.bumpversion.files]] +filename = "README.md" +search = "pythonocc-binderhub/{current_version}" +replace = "pythonocc-binderhub/{new_version}" + + +[[tool.bumpversion.files]] +filename = "README.md" +regex = true +search = "Latest release: \\[pythonocc-core {current_version} \\(\\d{{4}}-\\d{{2}}-\\d{{2}}\\)\\]\\(https://github\\.com/tpaviot/pythonocc-core/releases/tag/{current_version}\\)" +replace = "Latest release: [pythonocc-core {new_version} ({now:%Y-%m-%d})](https://github.com/tpaviot/pythonocc-core/releases/tag/{new_version})" + +[[tool.bumpversion.files]] +filename = "README.md" +search = "to open a jupyter notebook running the latest pythonocc-core {current_version}." +replace = "to open a jupyter notebook running the latest pythonocc-core {new_version}." + +[[tool.bumpversion.files]] +filename = "README.md" +search = "conda install -c conda-forge pythonocc-core={current_version}" +replace = "conda install -c conda-forge pythonocc-core={new_version}" + +[[tool.bumpversion.files]] +filename = "CMakeLists.txt" +search = "VERSION_MAJOR {current_major}" +replace = "VERSION_MAJOR {new_major}" + +[[tool.bumpversion.files]] +filename = "CMakeLists.txt" +search = "VERSION_MINOR {current_minor}" +replace = "VERSION_MINOR {new_minor}" + +[[tool.bumpversion.files]] +filename = "CMakeLists.txt" +search = "VERSION_PATCH {current_patch}" +replace = "VERSION_PATCH {new_patch}" + +[[tool.bumpversion.files]] +filename = "src/PkgBase/__init__.py" +search = "PYTHONOCC_VERSION_MAJOR = {current_major}" +replace = "PYTHONOCC_VERSION_MAJOR = {new_major}" + +[[tool.bumpversion.files]] +filename = "src/PkgBase/__init__.py" +search = "PYTHONOCC_VERSION_MINOR = {current_minor}" +replace = "PYTHONOCC_VERSION_MINOR = {new_minor}" + +[[tool.bumpversion.files]] +filename = "src/PkgBase/__init__.py" +search = "PYTHONOCC_VERSION_PATCH = {current_patch}" +replace = "PYTHONOCC_VERSION_PATCH = {new_patch}" + +[[tool.bumpversion.files]] +filename = "ci/conda/meta.yaml" +search = "set version = \"{current_version}\"" +replace = "set version = \"{new_version}\"" + +[[tool.bumpversion.files]] +filename = "ci/conda/meta.yaml" +search = "- occt =={current_version}" +replace = "- occt =={new_version}" \ No newline at end of file diff --git a/README.md b/README.md index d0b13b141..6c0bb30b3 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ About ----- pythonocc provides 3D modeling and dataexchange features. It is intended for CAD/PDM/PLM/BIM development. It is based on the OpenCascade Technology modeling kernel. -Latest release: [pythonocc-core 7.9.3 (February 2026)](https://github.com/tpaviot/pythonocc-core/releases/tag/7.9.3) +Latest release: [pythonocc-core 7.9.3 (2026-02-12)](https://github.com/tpaviot/pythonocc-core/releases/tag/7.9.3) Features -------- diff --git a/src/PkgBase/__init__.py b/src/PkgBase/__init__.py index d6c5e0b7e..ef8990f6f 100644 --- a/src/PkgBase/__init__.py +++ b/src/PkgBase/__init__.py @@ -5,7 +5,7 @@ # Version number PYTHONOCC_VERSION_MAJOR = 7 PYTHONOCC_VERSION_MINOR = 9 -PYTHONOCC_VERSION_PATCH = 0 +PYTHONOCC_VERSION_PATCH = 3 # Empty for official releases, set to -dev, -rc1, etc for development releases PYTHONOCC_VERSION_DEVEL = ""