diff --git a/README.md b/README.md index 8018e68..c7ed744 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ dependencies = ["numpy"] dynamic = ["version", "description"] [build-system] # How pip and other frontends should build this project -requires = ["py-build-cmake~=0.4.0a1.dev0"] +requires = ["py-build-cmake~=0.4.0"] build-backend = "py_build_cmake.build" [tool.py-build-cmake.module] # Where to find the Python module to package diff --git a/examples/minimal-debug-component/debug/pyproject.toml b/examples/minimal-debug-component/debug/pyproject.toml index 06897d7..7c785c9 100644 --- a/examples/minimal-debug-component/debug/pyproject.toml +++ b/examples/minimal-debug-component/debug/pyproject.toml @@ -7,12 +7,12 @@ authors = [{ "name" = "Pieter P", "email" = "pieter.p.dev@outlook.com" }] keywords = ["example", "addition", "subtraction", "debug"] classifiers = [] urls = { "Documentation" = "https://tttapa.github.io/" } -dependencies = ["minimal-comp==0.4.0a1.dev0"] -version = "0.4.0a1.dev0" +dependencies = ["minimal-comp==0.4.0"] +version = "0.4.0" description = "Debug symbols for the minimal package." [build-system] -requires = ["py-build-cmake~=0.4.0a1.dev0"] +requires = ["py-build-cmake~=0.4.0"] build-backend = "py_build_cmake.build_component" [tool.py-build-cmake] diff --git a/examples/minimal-debug-component/pyproject.toml b/examples/minimal-debug-component/pyproject.toml index 4da10b2..896b06b 100644 --- a/examples/minimal-debug-component/pyproject.toml +++ b/examples/minimal-debug-component/pyproject.toml @@ -26,10 +26,10 @@ dynamic = ["version", "description"] [project.optional-dependencies] docs = ["sphinx~=5.1", "matplotlib", "breathe", "furo"] -debug = ["minimal-debug==0.4.0a1.dev0"] +debug = ["minimal-debug==0.4.0"] [build-system] -requires = ["py-build-cmake~=0.4.0a1.dev0"] +requires = ["py-build-cmake~=0.4.0"] build-backend = "py_build_cmake.build" [tool.py-build-cmake.module] diff --git a/examples/minimal-debug-component/src-python/minimal_comp/__init__.py b/examples/minimal-debug-component/src-python/minimal_comp/__init__.py index b2fa4db..90de70d 100644 --- a/examples/minimal-debug-component/src-python/minimal_comp/__init__.py +++ b/examples/minimal-debug-component/src-python/minimal_comp/__init__.py @@ -2,4 +2,4 @@ A simple, minimal example of building a Python C module using CMake. """ -__version__ = "0.4.0a1.dev0" +__version__ = "0.4.0" diff --git a/examples/minimal-program/pyproject.toml b/examples/minimal-program/pyproject.toml index 816c672..02f2f13 100644 --- a/examples/minimal-program/pyproject.toml +++ b/examples/minimal-program/pyproject.toml @@ -25,7 +25,7 @@ dependencies = [] dynamic = ["version", "description"] [build-system] -requires = ["py-build-cmake~=0.4.0a1.dev0"] +requires = ["py-build-cmake~=0.4.0"] build-backend = "py_build_cmake.build" [tool.py-build-cmake.module] diff --git a/examples/minimal-program/src-python/minimal_program_module/__init__.py b/examples/minimal-program/src-python/minimal_program_module/__init__.py index 0a4fb11..855aa1f 100644 --- a/examples/minimal-program/src-python/minimal_program_module/__init__.py +++ b/examples/minimal-program/src-python/minimal_program_module/__init__.py @@ -2,4 +2,4 @@ A simple, minimal example of building a C++ program using CMake. """ -__version__ = "0.4.0a1.dev0" +__version__ = "0.4.0" diff --git a/examples/minimal/README.md b/examples/minimal/README.md index 66e6e00..abac78e 100644 --- a/examples/minimal/README.md +++ b/examples/minimal/README.md @@ -120,7 +120,7 @@ for more information about specific options. More information about the ```toml [build-system] -requires = ["py-build-cmake~=0.4.0a1.dev0"] +requires = ["py-build-cmake~=0.4.0"] build-backend = "py_build_cmake.build" ``` diff --git a/examples/minimal/pyproject.toml b/examples/minimal/pyproject.toml index f152599..9d38f08 100644 --- a/examples/minimal/pyproject.toml +++ b/examples/minimal/pyproject.toml @@ -25,7 +25,7 @@ dependencies = [] dynamic = ["version", "description"] [build-system] -requires = ["py-build-cmake~=0.4.0a1.dev0"] +requires = ["py-build-cmake~=0.4.0"] build-backend = "py_build_cmake.build" [tool.py-build-cmake.module] diff --git a/examples/minimal/src-python/minimal/__init__.py b/examples/minimal/src-python/minimal/__init__.py index b2fa4db..90de70d 100644 --- a/examples/minimal/src-python/minimal/__init__.py +++ b/examples/minimal/src-python/minimal/__init__.py @@ -2,4 +2,4 @@ A simple, minimal example of building a Python C module using CMake. """ -__version__ = "0.4.0a1.dev0" +__version__ = "0.4.0" diff --git a/examples/nanobind-project/CMakeLists.txt b/examples/nanobind-project/CMakeLists.txt index d27e311..fbfa72f 100644 --- a/examples/nanobind-project/CMakeLists.txt +++ b/examples/nanobind-project/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.26) project(nanobind-project VERSION 0.4.0) -set(PY_VERSION_SUFFIX "a1.dev0") +set(PY_VERSION_SUFFIX "") set(PY_FULL_VERSION ${PROJECT_VERSION}${PY_VERSION_SUFFIX}) # Make sure that the Python and CMake versions match diff --git a/examples/nanobind-project/pyproject.toml b/examples/nanobind-project/pyproject.toml index fffea21..21d0c02 100644 --- a/examples/nanobind-project/pyproject.toml +++ b/examples/nanobind-project/pyproject.toml @@ -31,7 +31,7 @@ test = ["pytest>=7.2.0,<7.5"] [build-system] requires = [ - "py-build-cmake~=0.4.0a1.dev0", + "py-build-cmake~=0.4.0", "nanobind~=2.2.0", "typing_extensions~=4.12.2; python_version < '3.11'", ] diff --git a/examples/nanobind-project/python-src/nanobind_project/__init__.py b/examples/nanobind-project/python-src/nanobind_project/__init__.py index 598eb85..14c21ce 100644 --- a/examples/nanobind-project/python-src/nanobind_project/__init__.py +++ b/examples/nanobind-project/python-src/nanobind_project/__init__.py @@ -1,3 +1,3 @@ """Example project using the py-build-cmake build backend and nanobind.""" -__version__ = "0.4.0a1.dev0" +__version__ = "0.4.0" diff --git a/examples/pybind11-project/CMakeLists.txt b/examples/pybind11-project/CMakeLists.txt index 5aea430..13d6d0e 100644 --- a/examples/pybind11-project/CMakeLists.txt +++ b/examples/pybind11-project/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.18) project(pybind11-project VERSION 0.4.0) -set(PY_VERSION_SUFFIX "a1.dev0") +set(PY_VERSION_SUFFIX "") set(PY_FULL_VERSION ${PROJECT_VERSION}${PY_VERSION_SUFFIX}) # Make sure that the Python and CMake versions match diff --git a/examples/pybind11-project/pyproject.toml b/examples/pybind11-project/pyproject.toml index 6f77be6..c9f865d 100644 --- a/examples/pybind11-project/pyproject.toml +++ b/examples/pybind11-project/pyproject.toml @@ -32,7 +32,7 @@ test = ["pytest>=7.2.0,<7.5"] [build-system] requires = [ - "py-build-cmake~=0.4.0a1.dev0", + "py-build-cmake~=0.4.0", "pybind11~=2.13.6", "pybind11-stubgen~=2.5.1", ] diff --git a/examples/pybind11-project/python-src/pybind11_project/__init__.py b/examples/pybind11-project/python-src/pybind11_project/__init__.py index 482e2d7..4c082d8 100644 --- a/examples/pybind11-project/python-src/pybind11_project/__init__.py +++ b/examples/pybind11-project/python-src/pybind11_project/__init__.py @@ -1,3 +1,3 @@ """Example project using the py-build-cmake build backend and pybind11.""" -__version__ = "0.4.0a1.dev0" +__version__ = "0.4.0" diff --git a/examples/swig-project/CMakeLists.txt b/examples/swig-project/CMakeLists.txt index ccb467f..cc17d70 100644 --- a/examples/swig-project/CMakeLists.txt +++ b/examples/swig-project/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.18) project(swig-project VERSION 0.4.0) -set(PY_VERSION_SUFFIX "a1.dev0") +set(PY_VERSION_SUFFIX "") set(PY_FULL_VERSION ${PROJECT_VERSION}${PY_VERSION_SUFFIX}) set(Py_LIMITED_API 0x03070000 CACHE STRING "CPython stable ABI version. Should match abi3_minimum_cpython_version") diff --git a/examples/swig-project/pyproject.toml b/examples/swig-project/pyproject.toml index 21c5039..d8dbc42 100644 --- a/examples/swig-project/pyproject.toml +++ b/examples/swig-project/pyproject.toml @@ -32,7 +32,7 @@ test = ["pytest>=7.2.0,<7.5"] [build-system] requires = [ - "py-build-cmake~=0.4.0a1.dev0", + "py-build-cmake~=0.4.0", "swig~=4.3.0", # https://github.com/nightlark/swig-pypi ] build-backend = "py_build_cmake.build" diff --git a/examples/swig-project/python-src/swig_project/__init__.py b/examples/swig-project/python-src/swig_project/__init__.py index e952289..fa94074 100644 --- a/examples/swig-project/python-src/swig_project/__init__.py +++ b/examples/swig-project/python-src/swig_project/__init__.py @@ -1,3 +1,3 @@ """Example project using the py-build-cmake build backend and SWIG.""" -__version__ = "0.4.0a1.dev0" +__version__ = "0.4.0" diff --git a/noxfile.py b/noxfile.py index f3dfa60..aa23cc9 100644 --- a/noxfile.py +++ b/noxfile.py @@ -35,7 +35,7 @@ import sysconfig as dist_sysconfig from sysconfig import get_platform as sysconfig_get_platform -version = "0.4.0a1.dev0" +version = "0.4.0" project_dir = Path(__file__).resolve().parent examples = "minimal-program", "pybind11-project", "nanobind-project" diff --git a/src/py_build_cmake/__init__.py b/src/py_build_cmake/__init__.py index cfcde0d..22bb440 100644 --- a/src/py_build_cmake/__init__.py +++ b/src/py_build_cmake/__init__.py @@ -3,4 +3,4 @@ extensions built using CMake. """ -__version__ = "0.4.0a1.dev0" +__version__ = "0.4.0" diff --git a/test-packages/bare-c-module/pyproject.toml b/test-packages/bare-c-module/pyproject.toml index 7288459..9bed95d 100644 --- a/test-packages/bare-c-module/pyproject.toml +++ b/test-packages/bare-c-module/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "bare-c-module" -version = "0.4.0a1.dev0" +version = "0.4.0" description = "Single extension module, without any folders or __init__.py" readme = "README.md" requires-python = ">=3.7" @@ -26,7 +26,7 @@ urls = { "Documentation" = "https://tttapa.github.io/" } dependencies = [] [build-system] -requires = ["py-build-cmake~=0.4.0a1.dev0"] +requires = ["py-build-cmake~=0.4.0"] build-backend = "py_build_cmake.build" [tool.py-build-cmake.module] diff --git a/test-packages/cmake-options/pyproject.toml b/test-packages/cmake-options/pyproject.toml index 73d05e5..6d5afe1 100644 --- a/test-packages/cmake-options/pyproject.toml +++ b/test-packages/cmake-options/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "cmake-options" -version = "0.4.0a1.dev0" +version = "0.4.0" description = "Checks parsing and escaping of CMake options" readme = "README.md" requires-python = ">=3.7" @@ -12,7 +12,7 @@ urls = { "Documentation" = "https://tttapa.github.io/" } dependencies = [] [build-system] -requires = ["py-build-cmake~=0.4.0a1.dev0"] +requires = ["py-build-cmake~=0.4.0"] build-backend = "py_build_cmake.build" [tool.py-build-cmake.sdist] diff --git a/test-packages/cmake-preset/pyproject.toml b/test-packages/cmake-preset/pyproject.toml index 8fc6486..802d3d2 100644 --- a/test-packages/cmake-preset/pyproject.toml +++ b/test-packages/cmake-preset/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "cmake-preset" -version = "0.4.0a1.dev0" +version = "0.4.0" description = "Test the use of CMake presets" readme = "README.md" requires-python = ">=3.7" @@ -8,7 +8,7 @@ license = { "file" = "LICENSE" } authors = [{ "name" = "Pieter P", "email" = "pieter.p.dev@outlook.com" }] [build-system] -requires = ["py-build-cmake~=0.4.0a1.dev0"] +requires = ["py-build-cmake~=0.4.0"] build-backend = "py_build_cmake.build" [tool.py-build-cmake.module] diff --git a/test-packages/empty-config/pyproject.toml b/test-packages/empty-config/pyproject.toml index 7d0f28b..181a6fa 100644 --- a/test-packages/empty-config/pyproject.toml +++ b/test-packages/empty-config/pyproject.toml @@ -7,5 +7,5 @@ authors = [{ "name" = "Pieter P", "email" = "pieter.p.dev@outlook.com" }] dynamic = ["version", "description"] [build-system] -requires = ["py-build-cmake~=0.4.0a1.dev0"] +requires = ["py-build-cmake~=0.4.0"] build-backend = "py_build_cmake.build" diff --git a/test-packages/empty-config/src/empty_config/__init__.py b/test-packages/empty-config/src/empty_config/__init__.py index 6168e05..95727ee 100644 --- a/test-packages/empty-config/src/empty_config/__init__.py +++ b/test-packages/empty-config/src/empty_config/__init__.py @@ -2,7 +2,7 @@ Empty config """ -__version__ = "0.4.0a1.dev0" +__version__ = "0.4.0" def add(a, b): diff --git a/test-packages/find-python/pyproject.toml b/test-packages/find-python/pyproject.toml index bb29330..d83769f 100644 --- a/test-packages/find-python/pyproject.toml +++ b/test-packages/find-python/pyproject.toml @@ -1,12 +1,12 @@ [project] name = "find-python" -version = "0.4.0a1.dev0" +version = "0.4.0" description = "Test for CMake FindPython" requires-python = ">=3.7" license = { "text" = "-" } [build-system] -requires = ["py-build-cmake~=0.4.0a1.dev0"] +requires = ["py-build-cmake~=0.4.0"] build-backend = "py_build_cmake.build" [tool.py-build-cmake.module] diff --git a/test-packages/local-options/pyproject.toml b/test-packages/local-options/pyproject.toml index 9866493..6681635 100644 --- a/test-packages/local-options/pyproject.toml +++ b/test-packages/local-options/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "local-options" -version = "0.4.0a1.dev0" +version = "0.4.0" description = "Checks loading of local override files" readme = "README.md" requires-python = ">=3.7" @@ -12,7 +12,7 @@ urls = { "Documentation" = "https://tttapa.github.io/" } dependencies = [] [build-system] -requires = ["py-build-cmake~=0.4.0a1.dev0"] +requires = ["py-build-cmake~=0.4.0"] build-backend = "py_build_cmake.build" [tool.py-build-cmake.sdist] diff --git a/test-packages/namespace-project-a/CMakeLists.txt b/test-packages/namespace-project-a/CMakeLists.txt index 9e56a0a..0dc5b34 100644 --- a/test-packages/namespace-project-a/CMakeLists.txt +++ b/test-packages/namespace-project-a/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.18) project(pybind11-project VERSION 0.4.0) -set(PY_VERSION_SUFFIX "a1.dev0") +set(PY_VERSION_SUFFIX "") set(PY_FULL_VERSION ${PROJECT_VERSION}${PY_VERSION_SUFFIX}) # Make sure that the Python and CMake versions match diff --git a/test-packages/namespace-project-a/pyproject.toml b/test-packages/namespace-project-a/pyproject.toml index f52f2c2..d6834e1 100644 --- a/test-packages/namespace-project-a/pyproject.toml +++ b/test-packages/namespace-project-a/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "namespace-project-a" # Name on PyPI -version = "0.4.0a1.dev0" +version = "0.4.0" readme = "README.md" description = "Part A of a namespace package" requires-python = ">=3.7" @@ -13,7 +13,7 @@ dependencies = [] [build-system] requires = [ - "py-build-cmake~=0.4.0a1.dev0", + "py-build-cmake~=0.4.0", "pybind11~=2.13.6", "pybind11-stubgen~=2.5.1", ] diff --git a/test-packages/namespace-project-b/pyproject.toml b/test-packages/namespace-project-b/pyproject.toml index a5f8b10..b7b01ce 100644 --- a/test-packages/namespace-project-b/pyproject.toml +++ b/test-packages/namespace-project-b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "namespace-project-b" # Name on PyPI -version = "0.4.0a1.dev0" +version = "0.4.0" readme = "README.md" description = "Part B of a namespace package" requires-python = ">=3.7" @@ -13,7 +13,7 @@ dependencies = [] [build-system] requires = [ - "py-build-cmake~=0.4.0a1.dev0", + "py-build-cmake~=0.4.0", ] build-backend = "py_build_cmake.build"