diff --git a/README.md b/README.md index ff26c01..c33115f 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ dependencies = ["numpy"] dynamic = ["version", "description"] [build-system] # How pip and other frontends should build this project -requires = ["py-build-cmake~=0.2.0a14.dev0"] +requires = ["py-build-cmake~=0.2.0a14"] build-backend = "py_build_cmake.build" [tool.py-build-cmake.module] # Where to find the Python module to package diff --git a/docs/Cross-compilation.md b/docs/Cross-compilation.md index 5e91a99..4ee50fc 100644 --- a/docs/Cross-compilation.md +++ b/docs/Cross-compilation.md @@ -104,7 +104,7 @@ Let's go over these requirements step by step: We'll first clone `py-build-cmake` and its example projects: ```sh -git clone https://github.com/tttapa/py-build-cmake --branch=0.2.0a13 +git clone https://github.com/tttapa/py-build-cmake --branch=0.2.0a14 cd py-build-cmake ``` @@ -209,7 +209,7 @@ If everything worked as expected, you should see output similar to the following [100%] Built target _add_module -- Installing: /tmp/xxxxx/staging/pybind11_project/_add_module.cpython-311-aarch64-linux-gnu.so [...] -Successfully built pybind11_project-0.2.0a13-cp311-cp311-manylinux_2_27_aarch64.whl +Successfully built pybind11_project-0.2.0a14-cp311-cp311-manylinux_2_27_aarch64.whl ``` You can see that CMake is using the cross-compiler we downloaded, and that it managed to locate the version of Python we requested (CPython 3.11 for AArch64). @@ -217,7 +217,7 @@ It is important to verify the module extension suffix (`.cpython-311-aarch64-linux-gnu.so` in this case) and the Wheel tags (`cp311-cp311-manylinux_2_27_aarch64`). -You can now copy the Wheel package in `examples/pybind11-project/dist/pybind11_project-0.2.0a13-cp311-cp311-manylinux_2_27_aarch64.whl` +You can now copy the Wheel package in `examples/pybind11-project/dist/pybind11_project-0.2.0a14-cp311-cp311-manylinux_2_27_aarch64.whl` to e.g. a Raspberry Pi and install it using `pip install`. ### Automated Bash scripts diff --git a/examples/minimal-debug-component/debug/pyproject.toml b/examples/minimal-debug-component/debug/pyproject.toml index fba1940..351c56f 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.2.0a14.dev0"] -version = "0.2.0a14.dev0" +dependencies = ["minimal-comp==0.2.0a14"] +version = "0.2.0a14" description = "Debug symbols for the minimal package." [build-system] -requires = ["py-build-cmake~=0.2.0a14.dev0"] +requires = ["py-build-cmake~=0.2.0a14"] build-backend = "py_build_cmake.build_component" [tool.py-build-cmake.component] diff --git a/examples/minimal-debug-component/pyproject.toml b/examples/minimal-debug-component/pyproject.toml index 899448e..c3a0d67 100644 --- a/examples/minimal-debug-component/pyproject.toml +++ b/examples/minimal-debug-component/pyproject.toml @@ -24,10 +24,10 @@ dynamic = ["version", "description"] [project.optional-dependencies] docs = ["sphinx~=5.1", "matplotlib", "breathe", "furo"] -debug = ["minimal-debug==0.2.0a14.dev0"] +debug = ["minimal-debug==0.2.0a14"] [build-system] -requires = ["py-build-cmake~=0.2.0a14.dev0"] +requires = ["py-build-cmake~=0.2.0a14"] 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 367fce9..7f4f377 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.2.0a14.dev0" +__version__ = "0.2.0a14" diff --git a/examples/minimal-program/pyproject.toml b/examples/minimal-program/pyproject.toml index bdd084f..ec2d6cf 100644 --- a/examples/minimal-program/pyproject.toml +++ b/examples/minimal-program/pyproject.toml @@ -23,7 +23,7 @@ dependencies = [] dynamic = ["version", "description"] [build-system] -requires = ["py-build-cmake~=0.2.0a14.dev0"] +requires = ["py-build-cmake~=0.2.0a14"] 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 c36ae7a..e6d93e7 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.2.0a14.dev0" +__version__ = "0.2.0a14" diff --git a/examples/minimal/README.md b/examples/minimal/README.md index fb38bad..335437b 100644 --- a/examples/minimal/README.md +++ b/examples/minimal/README.md @@ -125,7 +125,7 @@ for more information about specific options. More information about the ```toml [build-system] -requires = ["py-build-cmake~=0.2.0a14.dev0"] +requires = ["py-build-cmake~=0.2.0a14"] build-backend = "py_build_cmake.build" ``` diff --git a/examples/minimal/pyproject.toml b/examples/minimal/pyproject.toml index e8f15b8..2a1382e 100644 --- a/examples/minimal/pyproject.toml +++ b/examples/minimal/pyproject.toml @@ -23,7 +23,7 @@ dependencies = [] dynamic = ["version", "description"] [build-system] -requires = ["py-build-cmake~=0.2.0a14.dev0"] +requires = ["py-build-cmake~=0.2.0a14"] 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 367fce9..7f4f377 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.2.0a14.dev0" +__version__ = "0.2.0a14" diff --git a/examples/nanobind-project/CMakeLists.txt b/examples/nanobind-project/CMakeLists.txt index 4256a7d..2273bdb 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.2.0) -set(PY_VERSION_SUFFIX "a14.dev0") +set(PY_VERSION_SUFFIX "a14") 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 ee19d1d..d86660b 100644 --- a/examples/nanobind-project/pyproject.toml +++ b/examples/nanobind-project/pyproject.toml @@ -25,7 +25,7 @@ dynamic = ["version", "description"] add = "nanobind_project.add:main" [build-system] -requires = ["py-build-cmake~=0.2.0a14.dev0", "nanobind~=1.9.2", "nanobind-stubgen~=0.1.5"] +requires = ["py-build-cmake~=0.2.0a14", "nanobind~=1.9.2", "nanobind-stubgen~=0.1.5"] build-backend = "py_build_cmake.build" [tool.py-build-cmake.module] diff --git a/examples/nanobind-project/python-src/nanobind_project/__init__.py b/examples/nanobind-project/python-src/nanobind_project/__init__.py index 95873a0..7cbb9b7 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.2.0a14.dev0" +__version__ = "0.2.0a14" diff --git a/examples/pybind11-project/CMakeLists.txt b/examples/pybind11-project/CMakeLists.txt index 49f3038..5e5131c 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.2.0) -set(PY_VERSION_SUFFIX "a14.dev0") +set(PY_VERSION_SUFFIX "a14") 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 6b1e716..bdcb239 100644 --- a/examples/pybind11-project/pyproject.toml +++ b/examples/pybind11-project/pyproject.toml @@ -30,7 +30,7 @@ test = ["pytest>=7.2.0,<7.5"] [build-system] requires = [ - "py-build-cmake~=0.2.0a14.dev0", + "py-build-cmake~=0.2.0a14", "pybind11~=2.12.0", "pybind11-stubgen~=0.16.2", ] diff --git a/examples/pybind11-project/python-src/pybind11_project/__init__.py b/examples/pybind11-project/python-src/pybind11_project/__init__.py index d44497d..63f0e08 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.2.0a14.dev0" +__version__ = "0.2.0a14" diff --git a/noxfile.py b/noxfile.py index 9769932..b31efbc 100644 --- a/noxfile.py +++ b/noxfile.py @@ -32,7 +32,7 @@ else: import sysconfig as dist_sysconfig -version = "0.2.0a14.dev0" +version = "0.2.0a14" project_dir = Path(__file__).resolve().parent examples = "minimal-program", "pybind11-project", "nanobind-project", "minimal" diff --git a/src/py_build_cmake/__init__.py b/src/py_build_cmake/__init__.py index 1c53c3c..87fd3e8 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.2.0a14.dev0" +__version__ = "0.2.0a14" diff --git a/test-packages/bare-c-module/pyproject.toml b/test-packages/bare-c-module/pyproject.toml index 16b429e..74f33ba 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.2.0a14.dev0" +version = "0.2.0a14" description = "Single extension module, without any folders or __init__.py" readme = "README.md" requires-python = ">=3.7" @@ -24,7 +24,7 @@ urls = { "Documentation" = "https://tttapa.github.io/" } dependencies = [] [build-system] -requires = ["py-build-cmake~=0.2.0a14.dev0"] +requires = ["py-build-cmake~=0.2.0a14"] 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 cdde101..f1fa0a5 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.2.0a14.dev0" +version = "0.2.0a14" 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.2.0a14.dev0"] +requires = ["py-build-cmake~=0.2.0a14"] 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 a390ac6..86d98c5 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.2.0a14.dev0" +version = "0.2.0a14" 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.2.0a14.dev0"] +requires = ["py-build-cmake~=0.2.0a14"] build-backend = "py_build_cmake.build" [tool.py-build-cmake.module] diff --git a/test-packages/namespace-project-a/CMakeLists.txt b/test-packages/namespace-project-a/CMakeLists.txt index 49f3038..5e5131c 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.2.0) -set(PY_VERSION_SUFFIX "a14.dev0") +set(PY_VERSION_SUFFIX "a14") 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 69dfef7..a5b2f2f 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.2.0a14.dev0" +version = "0.2.0a14" 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.2.0a14.dev0", + "py-build-cmake~=0.2.0a14", "pybind11~=2.12.0", "pybind11-stubgen~=0.16.2", ] diff --git a/test-packages/namespace-project-b/pyproject.toml b/test-packages/namespace-project-b/pyproject.toml index 57bfcd3..17da17f 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.2.0a14.dev0" +version = "0.2.0a14" 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.2.0a14.dev0", + "py-build-cmake~=0.2.0a14", ] build-backend = "py_build_cmake.build"