diff --git a/crates/pixi_build_type_conversions/src/snapshots/pixi_build_type_conversions__project_model__tests__conversions_v1_docs@advanced_cpp.snap b/crates/pixi_build_type_conversions/src/snapshots/pixi_build_type_conversions__project_model__tests__conversions_v1_docs@advanced_cpp.snap index cc6cd25dee..42c45fb6b0 100644 --- a/crates/pixi_build_type_conversions/src/snapshots/pixi_build_type_conversions__project_model__tests__conversions_v1_docs@advanced_cpp.snap +++ b/crates/pixi_build_type_conversions/src/snapshots/pixi_build_type_conversions__project_model__tests__conversions_v1_docs@advanced_cpp.snap @@ -5,7 +5,7 @@ expression: project_model { "version": "1", "data": { - "name": "python_bindings", + "name": "cpp_math", "version": "0.1.0", "description": null, "authors": null, diff --git a/crates/pixi_build_type_conversions/src/snapshots/pixi_build_type_conversions__project_model__tests__conversions_v1_docs@cpp.snap b/crates/pixi_build_type_conversions/src/snapshots/pixi_build_type_conversions__project_model__tests__conversions_v1_docs@cpp.snap index cf90f8993a..78dd0903b7 100644 --- a/crates/pixi_build_type_conversions/src/snapshots/pixi_build_type_conversions__project_model__tests__conversions_v1_docs@cpp.snap +++ b/crates/pixi_build_type_conversions/src/snapshots/pixi_build_type_conversions__project_model__tests__conversions_v1_docs@cpp.snap @@ -5,7 +5,7 @@ expression: project_model { "version": "1", "data": { - "name": "python_bindings", + "name": "cpp_math", "version": "0.1.0", "description": null, "authors": null, diff --git a/crates/pixi_build_type_conversions/src/snapshots/pixi_build_type_conversions__project_model__tests__conversions_v1_docs@getting_started.snap b/crates/pixi_build_type_conversions/src/snapshots/pixi_build_type_conversions__project_model__tests__conversions_v1_docs@getting_started.snap index 5604d87258..9ae2da01d6 100644 --- a/crates/pixi_build_type_conversions/src/snapshots/pixi_build_type_conversions__project_model__tests__conversions_v1_docs@getting_started.snap +++ b/crates/pixi_build_type_conversions/src/snapshots/pixi_build_type_conversions__project_model__tests__conversions_v1_docs@getting_started.snap @@ -5,7 +5,7 @@ expression: project_model { "version": "1", "data": { - "name": "rich_example", + "name": "python_rich", "version": "0.1.0", "description": null, "authors": null, diff --git a/crates/pixi_build_type_conversions/src/snapshots/pixi_build_type_conversions__project_model__tests__conversions_v1_docs@python.snap b/crates/pixi_build_type_conversions/src/snapshots/pixi_build_type_conversions__project_model__tests__conversions_v1_docs@python.snap index 193e569b02..b8342fa7aa 100644 --- a/crates/pixi_build_type_conversions/src/snapshots/pixi_build_type_conversions__project_model__tests__conversions_v1_docs@python.snap +++ b/crates/pixi_build_type_conversions/src/snapshots/pixi_build_type_conversions__project_model__tests__conversions_v1_docs@python.snap @@ -5,7 +5,7 @@ expression: project_model { "version": "1", "data": { - "name": "rich_example", + "name": "python_rich", "version": "0.1.0", "description": null, "authors": null, diff --git a/crates/pixi_build_type_conversions/src/snapshots/pixi_build_type_conversions__project_model__tests__conversions_v1_docs@workspace.snap b/crates/pixi_build_type_conversions/src/snapshots/pixi_build_type_conversions__project_model__tests__conversions_v1_docs@workspace.snap index 193e569b02..b8342fa7aa 100644 --- a/crates/pixi_build_type_conversions/src/snapshots/pixi_build_type_conversions__project_model__tests__conversions_v1_docs@workspace.snap +++ b/crates/pixi_build_type_conversions/src/snapshots/pixi_build_type_conversions__project_model__tests__conversions_v1_docs@workspace.snap @@ -5,7 +5,7 @@ expression: project_model { "version": "1", "data": { - "name": "rich_example", + "name": "python_rich", "version": "0.1.0", "description": null, "authors": null, diff --git a/crates/pixi_build_type_conversions/src/snapshots/pixi_build_type_conversions__project_model__tests__conversions_v1_docs@workspace_variants.snap b/crates/pixi_build_type_conversions/src/snapshots/pixi_build_type_conversions__project_model__tests__conversions_v1_docs@workspace_variants.snap index 3c7a77233b..300a9e4630 100644 --- a/crates/pixi_build_type_conversions/src/snapshots/pixi_build_type_conversions__project_model__tests__conversions_v1_docs@workspace_variants.snap +++ b/crates/pixi_build_type_conversions/src/snapshots/pixi_build_type_conversions__project_model__tests__conversions_v1_docs@workspace_variants.snap @@ -5,7 +5,7 @@ expression: project_model { "version": "1", "data": { - "name": "rich_example", + "name": "python_rich", "version": "0.1.0", "description": null, "authors": null, diff --git a/docs/build/advanced_cpp.md b/docs/build/advanced_cpp.md index 9924784c6a..e34af657ad 100644 --- a/docs/build/advanced_cpp.md +++ b/docs/build/advanced_cpp.md @@ -53,7 +53,7 @@ Now that we've defined a `pixi` task which allows us to check that our package c ```toml [tasks] -start = "python -c 'import python_bindings as b; print(b.add(1, 2))'" +start = "python -c 'import cpp_math as b; print(b.add(1, 2))'" ``` Executing the tasks works as expected diff --git a/docs/build/cpp.md b/docs/build/cpp.md index aa515a66aa..98104cdadb 100644 --- a/docs/build/cpp.md +++ b/docs/build/cpp.md @@ -14,19 +14,19 @@ We'll later combine this example together with a Python package. To get started, create a new workspace with pixi: ```bash -pixi init python_bindings +pixi init cpp_math ``` This should give you the basic `pixi.toml` to get started. We'll now create the following source directory structure: ```bash -python_bindings/ +cpp_math/ ├── CMakeLists.txt ├── pixi.toml ├── .gitignore └── src - └── bindings.cpp + └── math.cpp ``` ## Creating the workspace files @@ -34,7 +34,7 @@ Next up we'll create the: - `pixi.toml` file that will be used to configure pixi. - `CMakeLists.txt` file that will be used to build the bindings. -- `src/bindings.cpp` file that will contain the bindings. +- `src/math.cpp` file that will contain the bindings. ### The `pixi.toml` file Use the following `pixi.toml` file, you can hover over the annotations to see why each step was added. @@ -68,12 +68,12 @@ Next lets add the `CMakeList.txt` file: 5. Use our bindings file as the source file. 6. Install the bindings into the designated prefix. -### The `src/bindings.cpp` file +### The `src/math.cpp` file -Next lets add the `src/bindings.cpp` file, this one is quite simple: +Next lets add the `src/math.cpp` file, this one is quite simple: ```cpp ---8<-- "docs/source_files/pixi_workspaces/pixi_build/cpp/src/bindings.cpp" +--8<-- "docs/source_files/pixi_workspaces/pixi_build/cpp/src/math.cpp" ``` 1. We define a function that will be used to add two numbers together. diff --git a/docs/build/getting_started.md b/docs/build/getting_started.md index 4125c77e58..9ae974880b 100644 --- a/docs/build/getting_started.md +++ b/docs/build/getting_started.md @@ -54,7 +54,7 @@ In this example, we are using `pixi-build-python` backend in order to build a Py ``` -We need to add our package `rich_example` as source dependency to the workspace. +We need to add our package `python_rich` as source dependency to the workspace. !!! hint Pixi dependencies fall into two main categories: `binary` and `source` dependencies. @@ -75,7 +75,7 @@ Source dependencies are defined in one of two ways: ``` -`rich_example` uses `hatchling` as Python build backend, so this needs to be mentioned in `host-dependencies`. +`python_rich` uses `hatchling` as Python build backend, so this needs to be mentioned in `host-dependencies`. Python PEP517 backends like `hatchling` know how to build a Python package. So `hatchling` creates a Python package, and `pixi-build-python` turns the Python package into a conda package. diff --git a/docs/build/python.md b/docs/build/python.md index afe343cf41..04fdb846ac 100644 --- a/docs/build/python.md +++ b/docs/build/python.md @@ -19,11 +19,11 @@ In this tutorial we will focus on point 1. ## Let's Get Started First, we create a simple Python package with a `pyproject.toml` and a single Python file. -The package will be called `rich_example`, so we will create the following structure: +The package will be called `python_rich`, so we will create the following structure: ```shell ├── src # (1)! -│ └── rich_example +│ └── python_rich │ └── __init__.py └── pyproject.toml ``` @@ -34,8 +34,8 @@ The package will be called `rich_example`, so we will create the following struc The Python package has a single function `main`. Calling that, will print a table containing the name, age and city of three people. -```py title="src/rich_example/__init__.py" ---8<-- "docs/source_files/pixi_workspaces/pixi_build/python/src/rich_example/__init__.py" +```py title="src/python_rich/__init__.py" +--8<-- "docs/source_files/pixi_workspaces/pixi_build/python/src/python_rich/__init__.py" ``` @@ -46,7 +46,7 @@ The metadata of the Python package is defined in `pyproject.toml`. ``` 1. We use the `rich` package to print the table in the terminal. -2. By specifying a script, the executable `rich-example-main` will be available in the environment. When being called it will in return call the `main` function of the `rich_example` module. +2. By specifying a script, the executable `rich-example-main` will be available in the environment. When being called it will in return call the `main` function of the `python_rich` module. 3. One can choose multiple backends to build a Python package, we choose `hatchling` which works well without additional configuration. @@ -74,7 +74,7 @@ We pass `--format pixi` in order to communicate to pixi, that we want a `pixi.to ```shell ├── src -│ └── rich_example +│ └── python_rich │ └── __init__.py ├── .gitignore ├── pixi.toml diff --git a/docs/build/variants.md b/docs/build/variants.md index 19684b975a..afefb0e3fe 100644 --- a/docs/build/variants.md +++ b/docs/build/variants.md @@ -8,16 +8,16 @@ Some might call this functionality, build matrix, build configurations or parame ## Why is This Useful? When we depend on a Pixi package, the dependency versions of the package itself are already set. -For example, in the [C++ tutorial](cpp.md) the `python_bindings` package we built depended on Python 3.12. -Pixi would report a version conflict, if we'd add use both Python 3.11 and `python_bindings` to our workspace. +For example, in the [C++ tutorial](cpp.md) the `cpp_math` package we built depended on Python 3.12. +Pixi would report a version conflict, if we'd add use both Python 3.11 and `cpp_math` to our workspace. By using variants, we can add a set of allowed versions for a specific dependency. Pixi will then resolve the package with all the different variants. ## Let's Get Started In this tutorial we will continue with the result of the [workspace tutorial](workspace.md) so we can test it against multiple Python versions. -As a reminder, we ended up with a top-level `pixi.toml` containing the workspace and the Python package `rich_example`. -Our workspace then depended on `rich_example` and `python_bindings`. +As a reminder, we ended up with a top-level `pixi.toml` containing the workspace and the Python package `python_rich`. +Our workspace then depended on `python_rich` and `cpp_math`. ```toml title="pixi.toml" --8<-- "docs/source_files/pixi_workspaces/pixi_build/workspace_variants/pixi.toml:dependencies" @@ -28,23 +28,23 @@ The file tree looks like this: ```shell . ├── packages -│ └── python_bindings +│ └── cpp_math │ ├── CMakeLists.txt │ ├── pixi.toml │ └── src -│ └── bindings.cpp +│ └── math.cpp ├── pixi.lock ├── pixi.toml ├── pyproject.toml └── src - └── rich_example + └── python_rich └── __init__.py ``` -In order to allow multiple Python versions we first have to change the Python version requirement of `python_bindings` from `3.12.*` to `*`. +In order to allow multiple Python versions we first have to change the Python version requirement of `cpp_math` from `3.12.*` to `*`. -```toml title="packages/python_bindings/pixi.toml" hl_lines="4" ---8<-- "docs/source_files/pixi_workspaces/pixi_build/workspace_variants/packages/python_bindings/pixi.toml:host-dependencies" +```toml title="packages/cpp_math/pixi.toml" hl_lines="4" +--8<-- "docs/source_files/pixi_workspaces/pixi_build/workspace_variants/packages/cpp_math/pixi.toml:host-dependencies" ``` 1. Used to be "3.12.*" @@ -66,9 +66,9 @@ In our case this allows us to test our setup against both Python 3.11 and 3.12. ``` By running `pixi list` we can see the Python version used in each environment. -You can also see that the `Build` string of `python_bindings` differ between `py311` and `py312`. +You can also see that the `Build` string of `cpp_math` differ between `py311` and `py312`. That means that a different package has been built for each variant. -Since `rich_example` only contains Python source code, a single build can be used for multiple Python versions. +Since `python_rich` only contains Python source code, a single build can be used for multiple Python versions. The package is `noarch`. Therefore, the build string is the same. @@ -77,23 +77,23 @@ Therefore, the build string is the same. $ pixi list --environment py311 Package Version Build Size Kind Source python 3.11.11 h9e4cc4f_1_cpython 29.2 MiB conda python -python_bindings 0.1.0 py311h43a39b2_0 conda python_bindings -rich_example 0.1.0 pyhbf21a9e_0 conda rich_example +cpp_math 0.1.0 py311h43a39b2_0 conda cpp_math +python_rich 0.1.0 pyhbf21a9e_0 conda python_rich ``` ```pwsh $ pixi list --environment py312 Package Version Build Size Kind Source python 3.12.8 h9e4cc4f_1_cpython 30.1 MiB conda python -python_bindings 0.1.0 py312h2078e5b_0 conda python_bindings -rich_example 0.1.0 pyhbf21a9e_0 conda rich_example +cpp_math 0.1.0 py312h2078e5b_0 conda cpp_math +python_rich 0.1.0 pyhbf21a9e_0 conda python_rich ``` ## Conclusion In this tutorial, we showed how to use variants to build multiple versions of a single package. -We built `python_bindings` for Python 3.12 and 3.13, which allows us to test whether it works properly on both Python versions. +We built `cpp_math` for Python 3.12 and 3.13, which allows us to test whether it works properly on both Python versions. Variants are not limited to a single dependency, you could for example try to test multiple versions of `nanobind`. Thanks for reading! Happy Coding 🚀 diff --git a/docs/build/workspace.md b/docs/build/workspace.md index 9b03634523..5f4d8bdbf6 100644 --- a/docs/build/workspace.md +++ b/docs/build/workspace.md @@ -15,38 +15,38 @@ Or if you need the changes of an unreleased version of one of your dependencies. ## Let's Get Started In this tutorial we will showcase how to develop two packages in one workspace. -For that we will use the `rich_example` Python package developed in chapter [Building a Python package](python.md) and let it depend on the `python_binding` C++ package developed in chapter [Building a C++ package](cpp.md). +For that we will use the `python_rich` Python package developed in chapter [Building a Python package](python.md) and let it depend on the `python_binding` C++ package developed in chapter [Building a C++ package](cpp.md). -We will start with the original setup of `rich_example` and copy `python_binding` into a folder called `packages`. +We will start with the original setup of `python_rich` and copy `python_binding` into a folder called `packages`. The source directory structure now looks like this: ```shell . ├── packages -│ └── python_bindings +│ └── cpp_math │ ├── CMakeLists.txt │ ├── pixi.toml │ └── src -│ └── bindings.cpp +│ └── math.cpp ├── pixi.lock ├── pixi.toml ├── pyproject.toml └── src - └── rich_example + └── python_rich └── __init__.py ``` Within a Pixi manifest, you can manage a workspace and/or describe a package. -In the case of `rich_example` we choose to do both, so the only thing we have to add is the dependency on the `python_bindings`. +In the case of `python_rich` we choose to do both, so the only thing we have to add is the dependency on the `cpp_math`. ```py title="pixi.toml" --8<-- "docs/source_files/pixi_workspaces/pixi_build/workspace/pixi.toml:workspace" ``` We only want to use the `workspace` table of the top-level manifest. -Therefore, we can remove the workspace section in the manifest of `python_bindings`. +Therefore, we can remove the workspace section in the manifest of `cpp_math`. -```diff title="packages/python_bindings/pixi.toml" +```diff title="packages/cpp_math/pixi.toml" -[workspace] -channels = [ - "https://prefix.dev/pixi-build-backends", @@ -56,14 +56,14 @@ Therefore, we can remove the workspace section in the manifest of `python_bindin -preview = ["pixi-build"] - -[dependencies] --python_bindings = { path = "." } +-cpp_math = { path = "." } - -[tasks] --start = "python -c 'import python_bindings as b; print(b.add(1, 2))'" +-start = "python -c 'import cpp_math as b; print(b.add(1, 2))'" ``` -There is actually one problem with `rich_example`. +There is actually one problem with `python_rich`. The age of every person is off by one year! ``` @@ -77,11 +77,11 @@ The age of every person is off by one year! ``` We need to add one year to the age of every person. -Luckily `python_bindings` exposes a function `add` which allows us to do exactly that. +Luckily `cpp_math` exposes a function `add` which allows us to do exactly that. -```py title="src/rich_example/__init__.py" ---8<-- "docs/source_files/pixi_workspaces/pixi_build/workspace/src/rich_example/__init__.py" +```py title="src/python_rich/__init__.py" +--8<-- "docs/source_files/pixi_workspaces/pixi_build/workspace/src/python_rich/__init__.py" ``` If you run `pixi run start`, the age of each person should now be accurate: @@ -99,7 +99,7 @@ If you run `pixi run start`, the age of each person should now be accurate: ## Conclusion In this tutorial, we created a Pixi workspace containing two packages. -The manifest of `rich_example` describes the workspace as well as the package, with `python_bindings` only the `package` section is used. +The manifest of `python_rich` describes the workspace as well as the package, with `cpp_math` only the `package` section is used. Feel free to add more packages, written in different languages to this workspace! Thanks for reading! Happy Coding 🚀 diff --git a/docs/source_files/pixi_workspaces/pixi_build/advanced_cpp/CMakeLists.txt b/docs/source_files/pixi_workspaces/pixi_build/advanced_cpp/CMakeLists.txt index 0148cfed84..2c87ba9003 100644 --- a/docs/source_files/pixi_workspaces/pixi_build/advanced_cpp/CMakeLists.txt +++ b/docs/source_files/pixi_workspaces/pixi_build/advanced_cpp/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.20...3.27) -project(python_bindings) +project(cpp_math) find_package(Python 3.8 COMPONENTS Interpreter Development.Module REQUIRED) # (1)! @@ -16,7 +16,7 @@ execute_process( find_package(nanobind CONFIG REQUIRED) # (4)! -nanobind_add_module(${PROJECT_NAME} src/bindings.cpp) # (5)! +nanobind_add_module(${PROJECT_NAME} src/math.cpp) # (5)! install( # (6)! TARGETS ${PROJECT_NAME} diff --git a/docs/source_files/pixi_workspaces/pixi_build/advanced_cpp/pixi.lock b/docs/source_files/pixi_workspaces/pixi_build/advanced_cpp/pixi.lock index b2be8bdc21..a7afe13fb5 100644 --- a/docs/source_files/pixi_workspaces/pixi_build/advanced_cpp/pixi.lock +++ b/docs/source_files/pixi_workspaces/pixi_build/advanced_cpp/pixi.lock @@ -35,7 +35,7 @@ environments: osx-64: - conda: https://prefix.dev/conda-forge/osx-64/bzip2-1.0.8-hfdf4475_7.conda - conda: https://prefix.dev/conda-forge/osx-64/ca-certificates-2025.1.31-h8857fd0_0.conda - - conda: https://prefix.dev/conda-forge/osx-64/libcxx-19.1.7-hf95d169_0.conda + - conda: https://prefix.dev/conda-forge/osx-64/libcxx-20.1.3-hf95d169_0.conda - conda: https://prefix.dev/conda-forge/osx-64/libexpat-2.6.4-h240833e_0.conda - conda: https://prefix.dev/conda-forge/osx-64/libffi-3.4.6-h281671d_0.conda - conda: https://prefix.dev/conda-forge/osx-64/liblzma-5.6.4-hd471939_0.conda @@ -53,7 +53,7 @@ environments: osx-arm64: - conda: https://prefix.dev/conda-forge/osx-arm64/bzip2-1.0.8-h99b78c6_7.conda - conda: https://prefix.dev/conda-forge/osx-arm64/ca-certificates-2025.1.31-hf0a4a13_0.conda - - conda: https://prefix.dev/conda-forge/osx-arm64/libcxx-19.1.7-ha82da77_0.conda + - conda: https://prefix.dev/conda-forge/osx-arm64/libcxx-20.1.3-ha82da77_0.conda - conda: https://prefix.dev/conda-forge/osx-arm64/libexpat-2.6.4-h286801f_0.conda - conda: https://prefix.dev/conda-forge/osx-arm64/libffi-3.4.2-h3422bc3_5.tar.bz2 - conda: https://prefix.dev/conda-forge/osx-arm64/liblzma-5.6.4-h39f12f2_0.conda @@ -169,6 +169,56 @@ packages: license: ISC size: 158690 timestamp: 1738298232550 +- conda: . + name: cpp_math + version: 0.1.0 + build: h0dc7051_0 + subdir: osx-64 + depends: + - libcxx >=20 + - python_abi 3.12.* *_cp312 + input: + hash: 5cfb500b2316121d59326b735afb183e4103b04476f627ed4e9b75f44a58dc69 + globs: + - pixi.toml +- conda: . + name: cpp_math + version: 0.1.0 + build: h60d57d3_0 + subdir: osx-arm64 + depends: + - libcxx >=20 + - python_abi 3.12.* *_cp312 + input: + hash: 5cfb500b2316121d59326b735afb183e4103b04476f627ed4e9b75f44a58dc69 + globs: + - pixi.toml +- conda: . + name: cpp_math + version: 0.1.0 + build: h9490d1a_0 + subdir: win-64 + depends: + - vc >=14.1,<15 + - vc14_runtime >=14.16.27033 + - python_abi 3.12.* *_cp312 + input: + hash: 5cfb500b2316121d59326b735afb183e4103b04476f627ed4e9b75f44a58dc69 + globs: + - pixi.toml +- conda: . + name: cpp_math + version: 0.1.0 + build: hb0f4dca_0 + subdir: linux-64 + depends: + - libstdcxx >=14 + - libgcc >=14 + - python_abi 3.12.* *_cp312 + input: + hash: 5cfb500b2316121d59326b735afb183e4103b04476f627ed4e9b75f44a58dc69 + globs: + - pixi.toml - conda: https://prefix.dev/conda-forge/linux-64/ld_impl_linux-64-2.43-h712a8e2_4.conda sha256: db73f38155d901a610b2320525b9dd3b31e4949215c870685fd92ea61b5ce472 md5: 01f8d123c96816249efd255a31ad7712 @@ -180,24 +230,24 @@ packages: license_family: GPL size: 671240 timestamp: 1740155456116 -- conda: https://prefix.dev/conda-forge/osx-64/libcxx-19.1.7-hf95d169_0.conda - sha256: 6b2fa3fb1e8cd2000b0ed259e0c4e49cbef7b76890157fac3e494bc659a20330 - md5: 4b8f8dc448d814169dbc58fc7286057d +- conda: https://prefix.dev/conda-forge/osx-64/libcxx-20.1.3-hf95d169_0.conda + sha256: a4b493e0f76b20ff14e0f1f93c92882663c4f23c4488d8de3f6bbf1311b9c41e + md5: 022f109787a9624301ddbeb39519ff13 depends: - __osx >=10.13 license: Apache-2.0 WITH LLVM-exception license_family: Apache - size: 527924 - timestamp: 1736877256721 -- conda: https://prefix.dev/conda-forge/osx-arm64/libcxx-19.1.7-ha82da77_0.conda - sha256: 776092346da87a2a23502e14d91eb0c32699c4a1522b7331537bd1c3751dcff5 - md5: 5b3e1610ff8bd5443476b91d618f5b77 + size: 560376 + timestamp: 1744843903291 +- conda: https://prefix.dev/conda-forge/osx-arm64/libcxx-20.1.3-ha82da77_0.conda + sha256: aa45cf608430e713575ef4193e4c0bcdfd7972db51f1c3af2fece26c173f5e67 + md5: 379db9caa727cab4d3a6c4327e4e7053 depends: - __osx >=11.0 license: Apache-2.0 WITH LLVM-exception license_family: Apache - size: 523505 - timestamp: 1736877862502 + size: 566462 + timestamp: 1744844034347 - conda: https://prefix.dev/conda-forge/linux-64/libexpat-2.6.4-h5888daf_0.conda sha256: 56541b98447b58e52d824bd59d6382d609e11de1f8adf20b23143e353d2b8d26 md5: db833e03127376d461e1e13e76f09b6c @@ -670,56 +720,6 @@ packages: license_family: BSD size: 6730 timestamp: 1723823139725 -- conda: . - name: python_bindings - version: 0.1.0 - build: h0dc7051_0 - subdir: osx-64 - depends: - - libcxx >=19 - - python_abi 3.12.* *_cp312 - input: - hash: a876e3c9a6d06c1c27205ae79f2ab41f0f4068a75a84e09fbb2ce249a5a97243 - globs: - - pixi.toml -- conda: . - name: python_bindings - version: 0.1.0 - build: h60d57d3_0 - subdir: osx-arm64 - depends: - - libcxx >=19 - - python_abi 3.12.* *_cp312 - input: - hash: a876e3c9a6d06c1c27205ae79f2ab41f0f4068a75a84e09fbb2ce249a5a97243 - globs: - - pixi.toml -- conda: . - name: python_bindings - version: 0.1.0 - build: h9490d1a_0 - subdir: win-64 - depends: - - vc >=14.1,<15 - - vc14_runtime >=14.16.27033 - - python_abi 3.12.* *_cp312 - input: - hash: a876e3c9a6d06c1c27205ae79f2ab41f0f4068a75a84e09fbb2ce249a5a97243 - globs: - - pixi.toml -- conda: . - name: python_bindings - version: 0.1.0 - build: hb0f4dca_0 - subdir: linux-64 - depends: - - libstdcxx >=14 - - libgcc >=14 - - python_abi 3.12.* *_cp312 - input: - hash: a876e3c9a6d06c1c27205ae79f2ab41f0f4068a75a84e09fbb2ce249a5a97243 - globs: - - pixi.toml - conda: https://prefix.dev/conda-forge/linux-64/readline-8.2-h8c095d6_2.conda sha256: 2d6d0c026902561ed77cd646b5021aef2d4db22e57a5b0178dfc669231e06d2c md5: 283b96675859b20a825f8fa30f311446 diff --git a/docs/source_files/pixi_workspaces/pixi_build/advanced_cpp/pixi.toml b/docs/source_files/pixi_workspaces/pixi_build/advanced_cpp/pixi.toml index 0ad60c4fba..e1391a63ae 100644 --- a/docs/source_files/pixi_workspaces/pixi_build/advanced_cpp/pixi.toml +++ b/docs/source_files/pixi_workspaces/pixi_build/advanced_cpp/pixi.toml @@ -7,14 +7,14 @@ platforms = ["osx-arm64", "osx-64", "linux-64", "win-64"] preview = ["pixi-build"] [dependencies] +cpp_math = { path = "." } python = "3.12.*" -python_bindings = { path = "." } [tasks] -start = "python -c 'import python_bindings as b; print(b.add(1, 2))'" +start = "python -c 'import cpp_math as b; print(b.add(1, 2))'" [package] -name = "python_bindings" +name = "cpp_math" version = "0.1.0" [package.build] diff --git a/docs/source_files/pixi_workspaces/pixi_build/advanced_cpp/recipe.yaml b/docs/source_files/pixi_workspaces/pixi_build/advanced_cpp/recipe.yaml index ca438a18fa..cebe74820b 100644 --- a/docs/source_files/pixi_workspaces/pixi_build/advanced_cpp/recipe.yaml +++ b/docs/source_files/pixi_workspaces/pixi_build/advanced_cpp/recipe.yaml @@ -1,5 +1,5 @@ package: - name: python_bindings + name: cpp_math version: 0.1.0 source: diff --git a/docs/source_files/pixi_workspaces/pixi_build/advanced_cpp/src/bindings.cpp b/docs/source_files/pixi_workspaces/pixi_build/advanced_cpp/src/math.cpp similarity index 79% rename from docs/source_files/pixi_workspaces/pixi_build/advanced_cpp/src/bindings.cpp rename to docs/source_files/pixi_workspaces/pixi_build/advanced_cpp/src/math.cpp index 4fbd1afbec..86020b7878 100644 --- a/docs/source_files/pixi_workspaces/pixi_build/advanced_cpp/src/bindings.cpp +++ b/docs/source_files/pixi_workspaces/pixi_build/advanced_cpp/src/math.cpp @@ -2,7 +2,7 @@ int add(int a, int b) { return a + b; } // (1)! -NB_MODULE(python_bindings, m) +NB_MODULE(cpp_math, m) { m.def("add", &add); // (2)! } diff --git a/docs/source_files/pixi_workspaces/pixi_build/cpp/CMakeLists.txt b/docs/source_files/pixi_workspaces/pixi_build/cpp/CMakeLists.txt index 0148cfed84..2c87ba9003 100644 --- a/docs/source_files/pixi_workspaces/pixi_build/cpp/CMakeLists.txt +++ b/docs/source_files/pixi_workspaces/pixi_build/cpp/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.20...3.27) -project(python_bindings) +project(cpp_math) find_package(Python 3.8 COMPONENTS Interpreter Development.Module REQUIRED) # (1)! @@ -16,7 +16,7 @@ execute_process( find_package(nanobind CONFIG REQUIRED) # (4)! -nanobind_add_module(${PROJECT_NAME} src/bindings.cpp) # (5)! +nanobind_add_module(${PROJECT_NAME} src/math.cpp) # (5)! install( # (6)! TARGETS ${PROJECT_NAME} diff --git a/docs/source_files/pixi_workspaces/pixi_build/cpp/pixi.lock b/docs/source_files/pixi_workspaces/pixi_build/cpp/pixi.lock index 8d37aec76c..0b2993c2ad 100644 --- a/docs/source_files/pixi_workspaces/pixi_build/cpp/pixi.lock +++ b/docs/source_files/pixi_workspaces/pixi_build/cpp/pixi.lock @@ -35,7 +35,7 @@ environments: osx-64: - conda: https://prefix.dev/conda-forge/osx-64/bzip2-1.0.8-hfdf4475_7.conda - conda: https://prefix.dev/conda-forge/osx-64/ca-certificates-2025.1.31-h8857fd0_0.conda - - conda: https://prefix.dev/conda-forge/osx-64/libcxx-19.1.7-hf95d169_0.conda + - conda: https://prefix.dev/conda-forge/osx-64/libcxx-20.1.3-hf95d169_0.conda - conda: https://prefix.dev/conda-forge/osx-64/libexpat-2.6.4-h240833e_0.conda - conda: https://prefix.dev/conda-forge/osx-64/libffi-3.4.6-h281671d_0.conda - conda: https://prefix.dev/conda-forge/osx-64/liblzma-5.6.4-hd471939_0.conda @@ -53,7 +53,7 @@ environments: osx-arm64: - conda: https://prefix.dev/conda-forge/osx-arm64/bzip2-1.0.8-h99b78c6_7.conda - conda: https://prefix.dev/conda-forge/osx-arm64/ca-certificates-2025.1.31-hf0a4a13_0.conda - - conda: https://prefix.dev/conda-forge/osx-arm64/libcxx-19.1.7-ha82da77_0.conda + - conda: https://prefix.dev/conda-forge/osx-arm64/libcxx-20.1.3-ha82da77_0.conda - conda: https://prefix.dev/conda-forge/osx-arm64/libexpat-2.6.4-h286801f_0.conda - conda: https://prefix.dev/conda-forge/osx-arm64/libffi-3.4.2-h3422bc3_5.tar.bz2 - conda: https://prefix.dev/conda-forge/osx-arm64/liblzma-5.6.4-h39f12f2_0.conda @@ -169,6 +169,56 @@ packages: license: ISC size: 158690 timestamp: 1738298232550 +- conda: . + name: cpp_math + version: 0.1.0 + build: hbf21a9e_0 + subdir: linux-64 + depends: + - libstdcxx >=14 + - libgcc >=14 + - python_abi 3.12.* *_cp312 + input: + hash: b7fc2728329d19eccf748e6a2e7e5bdc4ddb8f7f2164dda00855a02ee5598794 + globs: + - pixi.toml +- conda: . + name: cpp_math + version: 0.1.0 + build: hbf21a9e_0 + subdir: osx-64 + depends: + - libcxx >=20 + - python_abi 3.12.* *_cp312 + input: + hash: b7fc2728329d19eccf748e6a2e7e5bdc4ddb8f7f2164dda00855a02ee5598794 + globs: + - pixi.toml +- conda: . + name: cpp_math + version: 0.1.0 + build: hbf21a9e_0 + subdir: osx-arm64 + depends: + - libcxx >=20 + - python_abi 3.12.* *_cp312 + input: + hash: b7fc2728329d19eccf748e6a2e7e5bdc4ddb8f7f2164dda00855a02ee5598794 + globs: + - pixi.toml +- conda: . + name: cpp_math + version: 0.1.0 + build: hbf21a9e_0 + subdir: win-64 + depends: + - vc >=14.1,<15 + - vc14_runtime >=14.16.27033 + - python_abi 3.12.* *_cp312 + input: + hash: b7fc2728329d19eccf748e6a2e7e5bdc4ddb8f7f2164dda00855a02ee5598794 + globs: + - pixi.toml - conda: https://prefix.dev/conda-forge/linux-64/ld_impl_linux-64-2.43-h712a8e2_2.conda sha256: 7c91cea91b13f4314d125d1bedb9d03a29ebbd5080ccdea70260363424646dbe md5: 048b02e3962f066da18efe3a21b77672 @@ -180,24 +230,24 @@ packages: license_family: GPL size: 669211 timestamp: 1729655358674 -- conda: https://prefix.dev/conda-forge/osx-64/libcxx-19.1.7-hf95d169_0.conda - sha256: 6b2fa3fb1e8cd2000b0ed259e0c4e49cbef7b76890157fac3e494bc659a20330 - md5: 4b8f8dc448d814169dbc58fc7286057d +- conda: https://prefix.dev/conda-forge/osx-64/libcxx-20.1.3-hf95d169_0.conda + sha256: a4b493e0f76b20ff14e0f1f93c92882663c4f23c4488d8de3f6bbf1311b9c41e + md5: 022f109787a9624301ddbeb39519ff13 depends: - __osx >=10.13 license: Apache-2.0 WITH LLVM-exception license_family: Apache - size: 527924 - timestamp: 1736877256721 -- conda: https://prefix.dev/conda-forge/osx-arm64/libcxx-19.1.7-ha82da77_0.conda - sha256: 776092346da87a2a23502e14d91eb0c32699c4a1522b7331537bd1c3751dcff5 - md5: 5b3e1610ff8bd5443476b91d618f5b77 + size: 560376 + timestamp: 1744843903291 +- conda: https://prefix.dev/conda-forge/osx-arm64/libcxx-20.1.3-ha82da77_0.conda + sha256: aa45cf608430e713575ef4193e4c0bcdfd7972db51f1c3af2fece26c173f5e67 + md5: 379db9caa727cab4d3a6c4327e4e7053 depends: - __osx >=11.0 license: Apache-2.0 WITH LLVM-exception license_family: Apache - size: 523505 - timestamp: 1736877862502 + size: 566462 + timestamp: 1744844034347 - conda: https://prefix.dev/conda-forge/linux-64/libexpat-2.6.4-h5888daf_0.conda sha256: 56541b98447b58e52d824bd59d6382d609e11de1f8adf20b23143e353d2b8d26 md5: db833e03127376d461e1e13e76f09b6c @@ -669,56 +719,6 @@ packages: license_family: BSD size: 6730 timestamp: 1723823139725 -- conda: . - name: python_bindings - version: 0.1.0 - build: hbf21a9e_0 - subdir: linux-64 - depends: - - libstdcxx >=14 - - libgcc >=14 - - python_abi 3.12.* *_cp312 - input: - hash: f7e657cc226e8de35d47648713a678a61720ed90261def5313566074b6798486 - globs: - - pixi.toml -- conda: . - name: python_bindings - version: 0.1.0 - build: hbf21a9e_0 - subdir: osx-64 - depends: - - libcxx >=19 - - python_abi 3.12.* *_cp312 - input: - hash: f7e657cc226e8de35d47648713a678a61720ed90261def5313566074b6798486 - globs: - - pixi.toml -- conda: . - name: python_bindings - version: 0.1.0 - build: hbf21a9e_0 - subdir: osx-arm64 - depends: - - libcxx >=19 - - python_abi 3.12.* *_cp312 - input: - hash: f7e657cc226e8de35d47648713a678a61720ed90261def5313566074b6798486 - globs: - - pixi.toml -- conda: . - name: python_bindings - version: 0.1.0 - build: hbf21a9e_0 - subdir: win-64 - depends: - - vc >=14.1,<15 - - vc14_runtime >=14.16.27033 - - python_abi 3.12.* *_cp312 - input: - hash: f7e657cc226e8de35d47648713a678a61720ed90261def5313566074b6798486 - globs: - - pixi.toml - conda: https://prefix.dev/conda-forge/linux-64/readline-8.2-h8228510_1.conda sha256: 5435cf39d039387fbdc977b0a762357ea909a7694d9528ab40f005e9208744d7 md5: 47d31b792659ce70f470b5c82fdfb7a4 diff --git a/docs/source_files/pixi_workspaces/pixi_build/cpp/pixi.toml b/docs/source_files/pixi_workspaces/pixi_build/cpp/pixi.toml index 878d2a2599..6cb4da9735 100644 --- a/docs/source_files/pixi_workspaces/pixi_build/cpp/pixi.toml +++ b/docs/source_files/pixi_workspaces/pixi_build/cpp/pixi.toml @@ -7,14 +7,14 @@ platforms = ["osx-arm64", "osx-64", "linux-64", "win-64"] preview = ["pixi-build"] # (1)! [dependencies] # (2)! +cpp_math = { path = "." } python = "3.12.*" -python_bindings = { path = "." } [tasks] -start = "python -c 'import python_bindings as b; print(b.add(1, 2))'" # (3)! +start = "python -c 'import cpp_math as b; print(b.add(1, 2))'" # (3)! [package] # (4)! -name = "python_bindings" +name = "cpp_math" version = "0.1.0" [package.build] diff --git a/docs/source_files/pixi_workspaces/pixi_build/cpp/src/bindings.cpp b/docs/source_files/pixi_workspaces/pixi_build/cpp/src/math.cpp similarity index 79% rename from docs/source_files/pixi_workspaces/pixi_build/cpp/src/bindings.cpp rename to docs/source_files/pixi_workspaces/pixi_build/cpp/src/math.cpp index 4fbd1afbec..86020b7878 100644 --- a/docs/source_files/pixi_workspaces/pixi_build/cpp/src/bindings.cpp +++ b/docs/source_files/pixi_workspaces/pixi_build/cpp/src/math.cpp @@ -2,7 +2,7 @@ int add(int a, int b) { return a + b; } // (1)! -NB_MODULE(python_bindings, m) +NB_MODULE(cpp_math, m) { m.def("add", &add); // (2)! } diff --git a/docs/source_files/pixi_workspaces/pixi_build/getting_started/pixi.lock b/docs/source_files/pixi_workspaces/pixi_build/getting_started/pixi.lock index 1077fed4b7..13e88f7237 100644 --- a/docs/source_files/pixi_workspaces/pixi_build/getting_started/pixi.lock +++ b/docs/source_files/pixi_workspaces/pixi_build/getting_started/pixi.lock @@ -26,7 +26,7 @@ environments: - conda: https://prefix.dev/conda-forge/noarch/mdurl-0.1.2-pyhd8ed1ab_1.conda - conda: https://prefix.dev/conda-forge/linux-64/ncurses-6.5-h2d0b736_3.conda - conda: https://prefix.dev/conda-forge/linux-64/openssl-3.4.1-h7b32b05_0.conda - - conda: git+https://github.com/wolfv/pixi-build-examples?subdirectory=boost-check&branch=main#8a1d9b9b1755825165a615d563966aaa59a5361c + - conda: git+https://github.com/wolfv/pixi-build-examples?subdirectory=boost-check&branch=main#f378ef78c2b443f39108cfa575496f84dd76d6e2 subdir: linux-64 - conda: https://prefix.dev/conda-forge/noarch/pygments-2.19.1-pyhd8ed1ab_0.conda - conda: https://prefix.dev/conda-forge/linux-64/python-3.12.9-h9e4cc4f_1_cpython.conda @@ -35,13 +35,13 @@ environments: - conda: https://prefix.dev/conda-forge/linux-64/tk-8.6.13-noxft_h4845f30_101.conda - conda: https://prefix.dev/conda-forge/noarch/typing_extensions-4.12.2-pyha770c72_1.conda - conda: https://prefix.dev/conda-forge/noarch/tzdata-2025a-h78e105d_0.conda + - conda: ./python_rich - conda: ./recipe_by_file/recipe.yaml - conda: ./recipe_by_folder - - conda: ./rich_example osx-64: - conda: https://prefix.dev/conda-forge/osx-64/bzip2-1.0.8-hfdf4475_7.conda - conda: https://prefix.dev/conda-forge/osx-64/ca-certificates-2025.1.31-h8857fd0_0.conda - - conda: https://prefix.dev/conda-forge/osx-64/libcxx-19.1.7-hf95d169_0.conda + - conda: https://prefix.dev/conda-forge/osx-64/libcxx-20.1.3-hf95d169_0.conda - conda: https://prefix.dev/conda-forge/osx-64/libexpat-2.6.4-h240833e_0.conda - conda: https://prefix.dev/conda-forge/osx-64/libffi-3.4.6-h281671d_0.conda - conda: https://prefix.dev/conda-forge/osx-64/liblzma-5.6.4-hd471939_0.conda @@ -51,7 +51,7 @@ environments: - conda: https://prefix.dev/conda-forge/noarch/mdurl-0.1.2-pyhd8ed1ab_1.conda - conda: https://prefix.dev/conda-forge/osx-64/ncurses-6.5-h0622a9a_3.conda - conda: https://prefix.dev/conda-forge/osx-64/openssl-3.4.1-hc426f3f_0.conda - - conda: git+https://github.com/wolfv/pixi-build-examples?subdirectory=boost-check&branch=main#8a1d9b9b1755825165a615d563966aaa59a5361c + - conda: git+https://github.com/wolfv/pixi-build-examples?subdirectory=boost-check&branch=main#f378ef78c2b443f39108cfa575496f84dd76d6e2 subdir: osx-64 - conda: https://prefix.dev/conda-forge/noarch/pygments-2.19.1-pyhd8ed1ab_0.conda - conda: https://prefix.dev/conda-forge/osx-64/python-3.12.9-h9ccd52b_1_cpython.conda @@ -60,13 +60,13 @@ environments: - conda: https://prefix.dev/conda-forge/osx-64/tk-8.6.13-h1abcd95_1.conda - conda: https://prefix.dev/conda-forge/noarch/typing_extensions-4.12.2-pyha770c72_1.conda - conda: https://prefix.dev/conda-forge/noarch/tzdata-2025a-h78e105d_0.conda + - conda: ./python_rich - conda: ./recipe_by_file/recipe.yaml - conda: ./recipe_by_folder - - conda: ./rich_example osx-arm64: - conda: https://prefix.dev/conda-forge/osx-arm64/bzip2-1.0.8-h99b78c6_7.conda - conda: https://prefix.dev/conda-forge/osx-arm64/ca-certificates-2025.1.31-hf0a4a13_0.conda - - conda: https://prefix.dev/conda-forge/osx-arm64/libcxx-19.1.7-ha82da77_0.conda + - conda: https://prefix.dev/conda-forge/osx-arm64/libcxx-20.1.3-ha82da77_0.conda - conda: https://prefix.dev/conda-forge/osx-arm64/libexpat-2.6.4-h286801f_0.conda - conda: https://prefix.dev/conda-forge/osx-arm64/libffi-3.4.2-h3422bc3_5.tar.bz2 - conda: https://prefix.dev/conda-forge/osx-arm64/liblzma-5.6.4-h39f12f2_0.conda @@ -76,7 +76,7 @@ environments: - conda: https://prefix.dev/conda-forge/noarch/mdurl-0.1.2-pyhd8ed1ab_1.conda - conda: https://prefix.dev/conda-forge/osx-arm64/ncurses-6.5-h5e97a16_3.conda - conda: https://prefix.dev/conda-forge/osx-arm64/openssl-3.4.1-h81ee809_0.conda - - conda: git+https://github.com/wolfv/pixi-build-examples?subdirectory=boost-check&branch=main#8a1d9b9b1755825165a615d563966aaa59a5361c + - conda: git+https://github.com/wolfv/pixi-build-examples?subdirectory=boost-check&branch=main#f378ef78c2b443f39108cfa575496f84dd76d6e2 subdir: osx-arm64 - conda: https://prefix.dev/conda-forge/noarch/pygments-2.19.1-pyhd8ed1ab_0.conda - conda: https://prefix.dev/conda-forge/osx-arm64/python-3.12.9-hc22306f_1_cpython.conda @@ -85,9 +85,9 @@ environments: - conda: https://prefix.dev/conda-forge/osx-arm64/tk-8.6.13-h5083fa2_1.conda - conda: https://prefix.dev/conda-forge/noarch/typing_extensions-4.12.2-pyha770c72_1.conda - conda: https://prefix.dev/conda-forge/noarch/tzdata-2025a-h78e105d_0.conda + - conda: ./python_rich - conda: ./recipe_by_file/recipe.yaml - conda: ./recipe_by_folder - - conda: ./rich_example win-64: - conda: https://prefix.dev/conda-forge/win-64/bzip2-1.0.8-h2466b09_7.conda - conda: https://prefix.dev/conda-forge/win-64/ca-certificates-2025.1.31-h56e8100_0.conda @@ -99,7 +99,7 @@ environments: - conda: https://prefix.dev/conda-forge/noarch/markdown-it-py-3.0.0-pyhd8ed1ab_1.conda - conda: https://prefix.dev/conda-forge/noarch/mdurl-0.1.2-pyhd8ed1ab_1.conda - conda: https://prefix.dev/conda-forge/win-64/openssl-3.4.1-ha4e3fda_0.conda - - conda: git+https://github.com/wolfv/pixi-build-examples?subdirectory=boost-check&branch=main#8a1d9b9b1755825165a615d563966aaa59a5361c + - conda: git+https://github.com/wolfv/pixi-build-examples?subdirectory=boost-check&branch=main#f378ef78c2b443f39108cfa575496f84dd76d6e2 subdir: win-64 - conda: https://prefix.dev/conda-forge/noarch/pygments-2.19.1-pyhd8ed1ab_0.conda - conda: https://prefix.dev/conda-forge/win-64/python-3.12.9-h3f84c4b_1_cpython.conda @@ -110,9 +110,9 @@ environments: - conda: https://prefix.dev/conda-forge/win-64/ucrt-10.0.22621.0-h57928b3_1.conda - conda: https://prefix.dev/conda-forge/win-64/vc-14.3-hbf610ac_24.conda - conda: https://prefix.dev/conda-forge/win-64/vc14_runtime-14.42.34438-hfd919c2_24.conda + - conda: ./python_rich - conda: ./recipe_by_file/recipe.yaml - conda: ./recipe_by_folder - - conda: ./rich_example packages: - conda: https://prefix.dev/conda-forge/linux-64/_libgcc_mutex-0.1-conda_forge.tar.bz2 sha256: fe51de6107f9edc7aa4f786a70f4a883943bc9d39b3bb7307c04c41410990726 @@ -133,7 +133,7 @@ packages: license_family: BSD size: 23621 timestamp: 1650670423406 -- conda: git+https://github.com/wolfv/pixi-build-examples?subdirectory=boost-check&branch=main#8a1d9b9b1755825165a615d563966aaa59a5361c +- conda: git+https://github.com/wolfv/pixi-build-examples?subdirectory=boost-check&branch=main#f378ef78c2b443f39108cfa575496f84dd76d6e2 name: boost-check version: 0.1.0 build: hbf21a9e_0 @@ -142,23 +142,23 @@ packages: - libstdcxx >=14 - libgcc >=14 channel: null -- conda: git+https://github.com/wolfv/pixi-build-examples?subdirectory=boost-check&branch=main#8a1d9b9b1755825165a615d563966aaa59a5361c +- conda: git+https://github.com/wolfv/pixi-build-examples?subdirectory=boost-check&branch=main#f378ef78c2b443f39108cfa575496f84dd76d6e2 name: boost-check version: 0.1.0 build: hbf21a9e_0 subdir: osx-64 depends: - - libcxx >=19 + - libcxx >=20 channel: null -- conda: git+https://github.com/wolfv/pixi-build-examples?subdirectory=boost-check&branch=main#8a1d9b9b1755825165a615d563966aaa59a5361c +- conda: git+https://github.com/wolfv/pixi-build-examples?subdirectory=boost-check&branch=main#f378ef78c2b443f39108cfa575496f84dd76d6e2 name: boost-check version: 0.1.0 build: hbf21a9e_0 subdir: osx-arm64 depends: - - libcxx >=19 + - libcxx >=20 channel: null -- conda: git+https://github.com/wolfv/pixi-build-examples?subdirectory=boost-check&branch=main#8a1d9b9b1755825165a615d563966aaa59a5361c +- conda: git+https://github.com/wolfv/pixi-build-examples?subdirectory=boost-check&branch=main#f378ef78c2b443f39108cfa575496f84dd76d6e2 name: boost-check version: 0.1.0 build: hbf21a9e_0 @@ -241,24 +241,24 @@ packages: license_family: GPL size: 671240 timestamp: 1740155456116 -- conda: https://prefix.dev/conda-forge/osx-64/libcxx-19.1.7-hf95d169_0.conda - sha256: 6b2fa3fb1e8cd2000b0ed259e0c4e49cbef7b76890157fac3e494bc659a20330 - md5: 4b8f8dc448d814169dbc58fc7286057d +- conda: https://prefix.dev/conda-forge/osx-64/libcxx-20.1.3-hf95d169_0.conda + sha256: a4b493e0f76b20ff14e0f1f93c92882663c4f23c4488d8de3f6bbf1311b9c41e + md5: 022f109787a9624301ddbeb39519ff13 depends: - __osx >=10.13 license: Apache-2.0 WITH LLVM-exception license_family: Apache - size: 527924 - timestamp: 1736877256721 -- conda: https://prefix.dev/conda-forge/osx-arm64/libcxx-19.1.7-ha82da77_0.conda - sha256: 776092346da87a2a23502e14d91eb0c32699c4a1522b7331537bd1c3751dcff5 - md5: 5b3e1610ff8bd5443476b91d618f5b77 + size: 560376 + timestamp: 1744843903291 +- conda: https://prefix.dev/conda-forge/osx-arm64/libcxx-20.1.3-ha82da77_0.conda + sha256: aa45cf608430e713575ef4193e4c0bcdfd7972db51f1c3af2fece26c173f5e67 + md5: 379db9caa727cab4d3a6c4327e4e7053 depends: - __osx >=11.0 license: Apache-2.0 WITH LLVM-exception license_family: Apache - size: 523505 - timestamp: 1736877862502 + size: 566462 + timestamp: 1744844034347 - conda: https://prefix.dev/conda-forge/linux-64/libexpat-2.6.4-h5888daf_0.conda sha256: 56541b98447b58e52d824bd59d6382d609e11de1f8adf20b23143e353d2b8d26 md5: db833e03127376d461e1e13e76f09b6c @@ -719,6 +719,40 @@ packages: license: Python-2.0 size: 15935206 timestamp: 1741128459438 +- conda: ./python_rich + name: python_rich + version: 0.1.0 + build: pyhbf21a9e_0 + subdir: noarch + depends: + - rich 13.9.* + - python + input: + hash: c48470b00b757b198357638af58b46cfa1f139639ae163f506cb7f87102f0cd2 + globs: + - pixi.toml +- conda: ./recipe_by_file/recipe.yaml + name: python_rich_by_file + version: 0.1.0 + build: pyh4616a5c_0 + subdir: noarch + depends: + - python + input: + hash: '0000000000000000000000000000000000000000000000000000000000000000' + globs: + - recipe.yaml +- conda: ./recipe_by_folder + name: python_rich_by_folder + version: 0.1.0 + build: pyh4616a5c_0 + subdir: noarch + depends: + - python + input: + hash: 8110e69dbf2166e781803b9a3750f13211b5650468114765186b40c83e69ac26 + globs: + - recipe.yaml - conda: https://prefix.dev/conda-forge/linux-64/readline-8.2-h8c095d6_2.conda sha256: 2d6d0c026902561ed77cd646b5021aef2d4db22e57a5b0178dfc669231e06d2c md5: 283b96675859b20a825f8fa30f311446 @@ -759,40 +793,6 @@ packages: license_family: MIT size: 185646 timestamp: 1733342347277 -- conda: ./rich_example - name: rich_example - version: 0.1.0 - build: pyhbf21a9e_0 - subdir: noarch - depends: - - rich 13.9.* - - python - input: - hash: 5ccddd54dba89704d9f5863c35627071d8818dde08abd5becd2ff20bb756d1c8 - globs: - - pixi.toml -- conda: ./recipe_by_file/recipe.yaml - name: rich_example_by_file - version: 0.1.0 - build: pyh4616a5c_0 - subdir: noarch - depends: - - python - input: - hash: '0000000000000000000000000000000000000000000000000000000000000000' - globs: - - recipe.yaml -- conda: ./recipe_by_folder - name: rich_example_by_folder - version: 0.1.0 - build: pyh4616a5c_0 - subdir: noarch - depends: - - python - input: - hash: becbebf2d83fa5ade7244f3b1ed2a5196c040d14f52fda1550cc60fd8bf8b24c - globs: - - recipe.yaml - conda: https://prefix.dev/conda-forge/linux-64/tk-8.6.13-noxft_h4845f30_101.conda sha256: e0569c9caa68bf476bead1bed3d79650bb080b532c64a4af7d8ca286c08dea4e md5: d453b98d9c83e71da0741bb0ff4d76bc diff --git a/docs/source_files/pixi_workspaces/pixi_build/getting_started/pixi.toml b/docs/source_files/pixi_workspaces/pixi_build/getting_started/pixi.toml index 25acf86dcf..96029f290f 100644 --- a/docs/source_files/pixi_workspaces/pixi_build/getting_started/pixi.toml +++ b/docs/source_files/pixi_workspaces/pixi_build/getting_started/pixi.toml @@ -11,7 +11,7 @@ platforms = ["win-64", "linux-64", "osx-arm64", "osx-64"] # In `package` you specify properties specific to the package # --8<-- [start:package] [package] -name = "rich_example" +name = "python_rich" version = "0.1.0" # --8<-- [end:package] @@ -27,7 +27,7 @@ channels = [ # --8<-- [end:build-system] -# The Python package `rich_example` uses `hatchling` as Python build backend +# The Python package `python_rich` uses `hatchling` as Python build backend # --8<-- [start:host-dependencies] [package.host-dependencies] hatchling = "*" @@ -37,14 +37,14 @@ hatchling = "*" # We add our package as dependency to the workspace [dependencies] # We can get source dependencies from a path on our file system -rich_example_by_folder = { path = "./recipe_by_folder" } +python_rich_by_folder = { path = "./recipe_by_folder" } # as well as from a git repository boost-check = { git = "https://github.com/wolfv/pixi-build-examples", branch = "main", subdirectory = "boost-check" } # If the directory contains a `pixi.toml`, `pixi-build` will be used to build the package -rich_example = { path = "./rich_example" } +python_rich = { path = "./python_rich" } # if the directory contains a `recipe.yaml`, `rattler-build` will be used. -rich_example_by_file = { path = "./recipe_by_file/recipe.yaml" } +python_rich_by_file = { path = "./recipe_by_file/recipe.yaml" } # --8<-- [end:dependencies] # --8<-- [start:run-dependencies] diff --git a/docs/source_files/pixi_workspaces/pixi_build/getting_started/rich_example/.gitattributes b/docs/source_files/pixi_workspaces/pixi_build/getting_started/python_rich/.gitattributes similarity index 100% rename from docs/source_files/pixi_workspaces/pixi_build/getting_started/rich_example/.gitattributes rename to docs/source_files/pixi_workspaces/pixi_build/getting_started/python_rich/.gitattributes diff --git a/docs/source_files/pixi_workspaces/pixi_build/getting_started/rich_example/.gitignore b/docs/source_files/pixi_workspaces/pixi_build/getting_started/python_rich/.gitignore similarity index 100% rename from docs/source_files/pixi_workspaces/pixi_build/getting_started/rich_example/.gitignore rename to docs/source_files/pixi_workspaces/pixi_build/getting_started/python_rich/.gitignore diff --git a/docs/source_files/pixi_workspaces/pixi_build/getting_started/rich_example/pixi.lock b/docs/source_files/pixi_workspaces/pixi_build/getting_started/python_rich/pixi.lock similarity index 99% rename from docs/source_files/pixi_workspaces/pixi_build/getting_started/rich_example/pixi.lock rename to docs/source_files/pixi_workspaces/pixi_build/getting_started/python_rich/pixi.lock index 145aac254f..f584eecd6a 100644 --- a/docs/source_files/pixi_workspaces/pixi_build/getting_started/rich_example/pixi.lock +++ b/docs/source_files/pixi_workspaces/pixi_build/getting_started/python_rich/pixi.lock @@ -680,7 +680,7 @@ packages: size: 185646 timestamp: 1733342347277 - conda: . - name: rich_example + name: python_rich version: 0.1.0 build: pyh4616a5c_0 subdir: noarch diff --git a/docs/source_files/pixi_workspaces/pixi_build/getting_started/rich_example/pixi.toml b/docs/source_files/pixi_workspaces/pixi_build/getting_started/python_rich/pixi.toml similarity index 90% rename from docs/source_files/pixi_workspaces/pixi_build/getting_started/rich_example/pixi.toml rename to docs/source_files/pixi_workspaces/pixi_build/getting_started/python_rich/pixi.toml index e799d81248..8410ee0580 100644 --- a/docs/source_files/pixi_workspaces/pixi_build/getting_started/rich_example/pixi.toml +++ b/docs/source_files/pixi_workspaces/pixi_build/getting_started/python_rich/pixi.toml @@ -7,14 +7,14 @@ platforms = ["win-64", "linux-64", "osx-arm64", "osx-64"] preview = ["pixi-build"] [dependencies] # (2)! +python_rich = { path = "." } rich = "*" -rich_example = { path = "." } [tasks] # (3)! start = "rich-example-main" [package] # (4)! -name = "rich_example" +name = "python_rich" version = "0.1.0" [package.build] # (5)! diff --git a/docs/source_files/pixi_workspaces/pixi_build/getting_started/python_rich/pyproject.toml b/docs/source_files/pixi_workspaces/pixi_build/getting_started/python_rich/pyproject.toml new file mode 100644 index 0000000000..2aae3e0945 --- /dev/null +++ b/docs/source_files/pixi_workspaces/pixi_build/getting_started/python_rich/pyproject.toml @@ -0,0 +1,10 @@ +[project] +dependencies = ["rich"] # (1)! +name = "python_rich" +requires-python = ">= 3.11" +scripts = { rich-example-main = "python_rich:main" } # (2)! +version = "0.1.0" + +[build-system] # (3)! +build-backend = "hatchling.build" +requires = ["hatchling"] diff --git a/docs/source_files/pixi_workspaces/pixi_build/getting_started/rich_example/src/rich_example/__init__.py b/docs/source_files/pixi_workspaces/pixi_build/getting_started/python_rich/src/python_rich/__init__.py similarity index 100% rename from docs/source_files/pixi_workspaces/pixi_build/getting_started/rich_example/src/rich_example/__init__.py rename to docs/source_files/pixi_workspaces/pixi_build/getting_started/python_rich/src/python_rich/__init__.py diff --git a/docs/source_files/pixi_workspaces/pixi_build/getting_started/recipe_by_file/recipe.yaml b/docs/source_files/pixi_workspaces/pixi_build/getting_started/recipe_by_file/recipe.yaml index 4d007feb66..4d0c69eaec 100644 --- a/docs/source_files/pixi_workspaces/pixi_build/getting_started/recipe_by_file/recipe.yaml +++ b/docs/source_files/pixi_workspaces/pixi_build/getting_started/recipe_by_file/recipe.yaml @@ -1,9 +1,9 @@ package: - name: rich_example_by_file + name: python_rich_by_file version: 0.1.0 source: - path: ../rich_example + path: ../python_rich use_gitignore: false # note: defaults to true build: diff --git a/docs/source_files/pixi_workspaces/pixi_build/getting_started/recipe_by_folder/recipe.yaml b/docs/source_files/pixi_workspaces/pixi_build/getting_started/recipe_by_folder/recipe.yaml index 4a40b404c5..62f77a28b8 100644 --- a/docs/source_files/pixi_workspaces/pixi_build/getting_started/recipe_by_folder/recipe.yaml +++ b/docs/source_files/pixi_workspaces/pixi_build/getting_started/recipe_by_folder/recipe.yaml @@ -1,9 +1,9 @@ package: - name: rich_example_by_folder + name: python_rich_by_folder version: 0.1.0 source: - path: ../rich_example + path: ../python_rich use_gitignore: false # note: defaults to true build: diff --git a/docs/source_files/pixi_workspaces/pixi_build/getting_started/rich_example/pyproject.toml b/docs/source_files/pixi_workspaces/pixi_build/getting_started/rich_example/pyproject.toml deleted file mode 100644 index cf5e2985d5..0000000000 --- a/docs/source_files/pixi_workspaces/pixi_build/getting_started/rich_example/pyproject.toml +++ /dev/null @@ -1,10 +0,0 @@ -[project] -dependencies = ["rich"] # (1)! -name = "rich_example" -requires-python = ">= 3.11" -scripts = { rich-example-main = "rich_example:main" } # (2)! -version = "0.1.0" - -[build-system] # (3)! -build-backend = "hatchling.build" -requires = ["hatchling"] diff --git a/docs/source_files/pixi_workspaces/pixi_build/python/pixi.lock b/docs/source_files/pixi_workspaces/pixi_build/python/pixi.lock index af6f29bf52..72df2f98de 100644 --- a/docs/source_files/pixi_workspaces/pixi_build/python/pixi.lock +++ b/docs/source_files/pixi_workspaces/pixi_build/python/pixi.lock @@ -702,6 +702,18 @@ packages: license_family: BSD size: 6716 timestamp: 1723823166911 +- conda: . + name: python_rich + version: 0.1.0 + build: pyhbf21a9e_0 + subdir: noarch + depends: + - rich 13.9.* + - python + input: + hash: 61ec9a1338709f90a4c158e698237ea45ab26f4029734059a70bea39e9fccd00 + globs: + - pixi.toml - conda: https://prefix.dev/conda-forge/linux-64/readline-8.2-h8228510_1.conda sha256: 5435cf39d039387fbdc977b0a762357ea909a7694d9528ab40f005e9208744d7 md5: 47d31b792659ce70f470b5c82fdfb7a4 @@ -742,18 +754,6 @@ packages: license_family: MIT size: 185646 timestamp: 1733342347277 -- conda: . - name: rich_example - version: 0.1.0 - build: pyhbf21a9e_0 - subdir: noarch - depends: - - rich 13.9.* - - python - input: - hash: 8d4c975cabc0c8c9ab19d3f844c15acee393be978ecb53bec877e63c0c73a55b - globs: - - pixi.toml - conda: https://prefix.dev/conda-forge/linux-64/tk-8.6.13-noxft_h4845f30_101.conda sha256: e0569c9caa68bf476bead1bed3d79650bb080b532c64a4af7d8ca286c08dea4e md5: d453b98d9c83e71da0741bb0ff4d76bc diff --git a/docs/source_files/pixi_workspaces/pixi_build/python/pixi.toml b/docs/source_files/pixi_workspaces/pixi_build/python/pixi.toml index 650e4ee732..8f6b2aad93 100644 --- a/docs/source_files/pixi_workspaces/pixi_build/python/pixi.toml +++ b/docs/source_files/pixi_workspaces/pixi_build/python/pixi.toml @@ -7,13 +7,13 @@ platforms = ["win-64", "linux-64", "osx-arm64", "osx-64"] preview = ["pixi-build"] [dependencies] # (2)! -rich_example = { path = "." } +python_rich = { path = "." } [tasks] # (3)! start = "rich-example-main" [package] # (4)! -name = "rich_example" +name = "python_rich" version = "0.1.0" [package.build] # (5)! diff --git a/docs/source_files/pixi_workspaces/pixi_build/python/pyproject.toml b/docs/source_files/pixi_workspaces/pixi_build/python/pyproject.toml index cf5e2985d5..2aae3e0945 100644 --- a/docs/source_files/pixi_workspaces/pixi_build/python/pyproject.toml +++ b/docs/source_files/pixi_workspaces/pixi_build/python/pyproject.toml @@ -1,8 +1,8 @@ [project] -dependencies = ["rich"] # (1)! -name = "rich_example" +dependencies = ["rich"] # (1)! +name = "python_rich" requires-python = ">= 3.11" -scripts = { rich-example-main = "rich_example:main" } # (2)! +scripts = { rich-example-main = "python_rich:main" } # (2)! version = "0.1.0" [build-system] # (3)! diff --git a/docs/source_files/pixi_workspaces/pixi_build/python/src/rich_example/__init__.py b/docs/source_files/pixi_workspaces/pixi_build/python/src/python_rich/__init__.py similarity index 100% rename from docs/source_files/pixi_workspaces/pixi_build/python/src/rich_example/__init__.py rename to docs/source_files/pixi_workspaces/pixi_build/python/src/python_rich/__init__.py diff --git a/docs/source_files/pixi_workspaces/pixi_build/workspace/packages/python_bindings/CMakeLists.txt b/docs/source_files/pixi_workspaces/pixi_build/workspace/packages/cpp_math/CMakeLists.txt similarity index 89% rename from docs/source_files/pixi_workspaces/pixi_build/workspace/packages/python_bindings/CMakeLists.txt rename to docs/source_files/pixi_workspaces/pixi_build/workspace/packages/cpp_math/CMakeLists.txt index 0148cfed84..2c87ba9003 100644 --- a/docs/source_files/pixi_workspaces/pixi_build/workspace/packages/python_bindings/CMakeLists.txt +++ b/docs/source_files/pixi_workspaces/pixi_build/workspace/packages/cpp_math/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.20...3.27) -project(python_bindings) +project(cpp_math) find_package(Python 3.8 COMPONENTS Interpreter Development.Module REQUIRED) # (1)! @@ -16,7 +16,7 @@ execute_process( find_package(nanobind CONFIG REQUIRED) # (4)! -nanobind_add_module(${PROJECT_NAME} src/bindings.cpp) # (5)! +nanobind_add_module(${PROJECT_NAME} src/math.cpp) # (5)! install( # (6)! TARGETS ${PROJECT_NAME} diff --git a/docs/source_files/pixi_workspaces/pixi_build/workspace/packages/python_bindings/pixi.toml b/docs/source_files/pixi_workspaces/pixi_build/workspace/packages/cpp_math/pixi.toml similarity index 88% rename from docs/source_files/pixi_workspaces/pixi_build/workspace/packages/python_bindings/pixi.toml rename to docs/source_files/pixi_workspaces/pixi_build/workspace/packages/cpp_math/pixi.toml index 446cfe6772..ea4be6d176 100644 --- a/docs/source_files/pixi_workspaces/pixi_build/workspace/packages/python_bindings/pixi.toml +++ b/docs/source_files/pixi_workspaces/pixi_build/workspace/packages/cpp_math/pixi.toml @@ -1,5 +1,5 @@ [package] -name = "python_bindings" +name = "cpp_math" version = "0.1.0" [package.build] diff --git a/docs/source_files/pixi_workspaces/pixi_build/workspace_variants/packages/python_bindings/src/bindings.cpp b/docs/source_files/pixi_workspaces/pixi_build/workspace/packages/cpp_math/src/math.cpp similarity index 79% rename from docs/source_files/pixi_workspaces/pixi_build/workspace_variants/packages/python_bindings/src/bindings.cpp rename to docs/source_files/pixi_workspaces/pixi_build/workspace/packages/cpp_math/src/math.cpp index 4fbd1afbec..86020b7878 100644 --- a/docs/source_files/pixi_workspaces/pixi_build/workspace_variants/packages/python_bindings/src/bindings.cpp +++ b/docs/source_files/pixi_workspaces/pixi_build/workspace/packages/cpp_math/src/math.cpp @@ -2,7 +2,7 @@ int add(int a, int b) { return a + b; } // (1)! -NB_MODULE(python_bindings, m) +NB_MODULE(cpp_math, m) { m.def("add", &add); // (2)! } diff --git a/docs/source_files/pixi_workspaces/pixi_build/workspace/pixi.lock b/docs/source_files/pixi_workspaces/pixi_build/workspace/pixi.lock index 75f4c0c863..f666d34bb7 100644 --- a/docs/source_files/pixi_workspaces/pixi_build/workspace/pixi.lock +++ b/docs/source_files/pixi_workspaces/pixi_build/workspace/pixi.lock @@ -36,12 +36,12 @@ environments: - conda: https://prefix.dev/conda-forge/noarch/typing_extensions-4.12.2-pyha770c72_1.conda - conda: https://prefix.dev/conda-forge/noarch/tzdata-2025a-h78e105d_0.conda - conda: . - - conda: packages/python_bindings + - conda: packages/cpp_math subdir: linux-64 osx-64: - conda: https://prefix.dev/conda-forge/osx-64/bzip2-1.0.8-hfdf4475_7.conda - conda: https://prefix.dev/conda-forge/osx-64/ca-certificates-2024.12.14-h8857fd0_0.conda - - conda: https://prefix.dev/conda-forge/osx-64/libcxx-19.1.7-hf95d169_0.conda + - conda: https://prefix.dev/conda-forge/osx-64/libcxx-20.1.3-hf95d169_0.conda - conda: https://prefix.dev/conda-forge/osx-64/libexpat-2.6.4-h240833e_0.conda - conda: https://prefix.dev/conda-forge/osx-64/libffi-3.4.2-h0d85af4_5.tar.bz2 - conda: https://prefix.dev/conda-forge/osx-64/liblzma-5.6.3-hd471939_1.conda @@ -60,12 +60,12 @@ environments: - conda: https://prefix.dev/conda-forge/noarch/typing_extensions-4.12.2-pyha770c72_1.conda - conda: https://prefix.dev/conda-forge/noarch/tzdata-2025a-h78e105d_0.conda - conda: . - - conda: packages/python_bindings + - conda: packages/cpp_math subdir: osx-64 osx-arm64: - conda: https://prefix.dev/conda-forge/osx-arm64/bzip2-1.0.8-h99b78c6_7.conda - conda: https://prefix.dev/conda-forge/osx-arm64/ca-certificates-2024.12.14-hf0a4a13_0.conda - - conda: https://prefix.dev/conda-forge/osx-arm64/libcxx-19.1.7-ha82da77_0.conda + - conda: https://prefix.dev/conda-forge/osx-arm64/libcxx-20.1.3-ha82da77_0.conda - conda: https://prefix.dev/conda-forge/osx-arm64/libexpat-2.6.4-h286801f_0.conda - conda: https://prefix.dev/conda-forge/osx-arm64/libffi-3.4.2-h3422bc3_5.tar.bz2 - conda: https://prefix.dev/conda-forge/osx-arm64/liblzma-5.6.3-h39f12f2_1.conda @@ -84,7 +84,7 @@ environments: - conda: https://prefix.dev/conda-forge/noarch/typing_extensions-4.12.2-pyha770c72_1.conda - conda: https://prefix.dev/conda-forge/noarch/tzdata-2025a-h78e105d_0.conda - conda: . - - conda: packages/python_bindings + - conda: packages/cpp_math subdir: osx-arm64 win-64: - conda: https://prefix.dev/conda-forge/win-64/bzip2-1.0.8-h2466b09_7.conda @@ -109,7 +109,7 @@ environments: - conda: https://prefix.dev/conda-forge/win-64/vc14_runtime-14.42.34433-he29a5d6_23.conda - conda: https://prefix.dev/conda-forge/win-64/vs2015_runtime-14.42.34433-hdffcdeb_23.conda - conda: . - - conda: packages/python_bindings + - conda: packages/cpp_math subdir: win-64 packages: - conda: https://prefix.dev/conda-forge/linux-64/_libgcc_mutex-0.1-conda_forge.tar.bz2 @@ -194,6 +194,56 @@ packages: license: ISC size: 157422 timestamp: 1734208404685 +- conda: packages/cpp_math + name: cpp_math + version: 0.1.0 + build: hbf21a9e_0 + subdir: linux-64 + depends: + - libstdcxx >=14 + - libgcc >=14 + - python_abi 3.12.* *_cp312 + input: + hash: e8c752c872eec4779ae7a8f0b795113828d10f6eac3c0fba60f63cf068a00bc6 + globs: + - pixi.toml +- conda: packages/cpp_math + name: cpp_math + version: 0.1.0 + build: hbf21a9e_0 + subdir: osx-64 + depends: + - libcxx >=20 + - python_abi 3.12.* *_cp312 + input: + hash: e8c752c872eec4779ae7a8f0b795113828d10f6eac3c0fba60f63cf068a00bc6 + globs: + - pixi.toml +- conda: packages/cpp_math + name: cpp_math + version: 0.1.0 + build: hbf21a9e_0 + subdir: osx-arm64 + depends: + - libcxx >=20 + - python_abi 3.12.* *_cp312 + input: + hash: e8c752c872eec4779ae7a8f0b795113828d10f6eac3c0fba60f63cf068a00bc6 + globs: + - pixi.toml +- conda: packages/cpp_math + name: cpp_math + version: 0.1.0 + build: hbf21a9e_0 + subdir: win-64 + depends: + - vc >=14.1,<15 + - vc14_runtime >=14.16.27033 + - python_abi 3.12.* *_cp312 + input: + hash: e8c752c872eec4779ae7a8f0b795113828d10f6eac3c0fba60f63cf068a00bc6 + globs: + - pixi.toml - conda: https://prefix.dev/conda-forge/linux-64/ld_impl_linux-64-2.43-h712a8e2_2.conda sha256: 7c91cea91b13f4314d125d1bedb9d03a29ebbd5080ccdea70260363424646dbe md5: 048b02e3962f066da18efe3a21b77672 @@ -205,24 +255,24 @@ packages: license_family: GPL size: 669211 timestamp: 1729655358674 -- conda: https://prefix.dev/conda-forge/osx-64/libcxx-19.1.7-hf95d169_0.conda - sha256: 6b2fa3fb1e8cd2000b0ed259e0c4e49cbef7b76890157fac3e494bc659a20330 - md5: 4b8f8dc448d814169dbc58fc7286057d +- conda: https://prefix.dev/conda-forge/osx-64/libcxx-20.1.3-hf95d169_0.conda + sha256: a4b493e0f76b20ff14e0f1f93c92882663c4f23c4488d8de3f6bbf1311b9c41e + md5: 022f109787a9624301ddbeb39519ff13 depends: - __osx >=10.13 license: Apache-2.0 WITH LLVM-exception license_family: Apache - size: 527924 - timestamp: 1736877256721 -- conda: https://prefix.dev/conda-forge/osx-arm64/libcxx-19.1.7-ha82da77_0.conda - sha256: 776092346da87a2a23502e14d91eb0c32699c4a1522b7331537bd1c3751dcff5 - md5: 5b3e1610ff8bd5443476b91d618f5b77 + size: 560376 + timestamp: 1744843903291 +- conda: https://prefix.dev/conda-forge/osx-arm64/libcxx-20.1.3-ha82da77_0.conda + sha256: aa45cf608430e713575ef4193e4c0bcdfd7972db51f1c3af2fece26c173f5e67 + md5: 379db9caa727cab4d3a6c4327e4e7053 depends: - __osx >=11.0 license: Apache-2.0 WITH LLVM-exception license_family: Apache - size: 523505 - timestamp: 1736877862502 + size: 566462 + timestamp: 1744844034347 - conda: https://prefix.dev/conda-forge/linux-64/libexpat-2.6.4-h5888daf_0.conda sha256: 56541b98447b58e52d824bd59d6382d609e11de1f8adf20b23143e353d2b8d26 md5: db833e03127376d461e1e13e76f09b6c @@ -718,54 +768,16 @@ packages: license_family: BSD size: 6730 timestamp: 1723823139725 -- conda: packages/python_bindings - name: python_bindings - version: 0.1.0 - build: hbf21a9e_0 - subdir: linux-64 - depends: - - libstdcxx >=14 - - libgcc >=14 - - python_abi 3.12.* *_cp312 - input: - hash: 62026e8704b5efdcfd3dfd6774410e4ba963b1df484e6153492b76a9c7fe44f7 - globs: - - pixi.toml -- conda: packages/python_bindings - name: python_bindings - version: 0.1.0 - build: hbf21a9e_0 - subdir: osx-64 - depends: - - libcxx >=19 - - python_abi 3.12.* *_cp312 - input: - hash: 62026e8704b5efdcfd3dfd6774410e4ba963b1df484e6153492b76a9c7fe44f7 - globs: - - pixi.toml -- conda: packages/python_bindings - name: python_bindings - version: 0.1.0 - build: hbf21a9e_0 - subdir: osx-arm64 - depends: - - libcxx >=19 - - python_abi 3.12.* *_cp312 - input: - hash: 62026e8704b5efdcfd3dfd6774410e4ba963b1df484e6153492b76a9c7fe44f7 - globs: - - pixi.toml -- conda: packages/python_bindings - name: python_bindings +- conda: . + name: python_rich version: 0.1.0 - build: hbf21a9e_0 - subdir: win-64 + build: pyhbf21a9e_0 + subdir: noarch depends: - - vc >=14.1,<15 - - vc14_runtime >=14.16.27033 - - python_abi 3.12.* *_cp312 + - rich 13.9.* + - python input: - hash: 62026e8704b5efdcfd3dfd6774410e4ba963b1df484e6153492b76a9c7fe44f7 + hash: 4a5deb4813653adb9ff8f0e09aa107677ea5b96c19a39cc0bc3eac8a4e2f6a3f globs: - pixi.toml - conda: https://prefix.dev/conda-forge/linux-64/readline-8.2-h8228510_1.conda @@ -808,18 +820,6 @@ packages: license_family: MIT size: 185646 timestamp: 1733342347277 -- conda: . - name: rich_example - version: 0.1.0 - build: pyhbf21a9e_0 - subdir: noarch - depends: - - rich 13.9.* - - python - input: - hash: da2bbc432cf6150941b27cb954b94a01e097a0e9db163753db770612fd66da71 - globs: - - pixi.toml - conda: https://prefix.dev/conda-forge/linux-64/tk-8.6.13-noxft_h4845f30_101.conda sha256: e0569c9caa68bf476bead1bed3d79650bb080b532c64a4af7d8ca286c08dea4e md5: d453b98d9c83e71da0741bb0ff4d76bc diff --git a/docs/source_files/pixi_workspaces/pixi_build/workspace/pixi.toml b/docs/source_files/pixi_workspaces/pixi_build/workspace/pixi.toml index 7cd4ec2cac..1143378610 100644 --- a/docs/source_files/pixi_workspaces/pixi_build/workspace/pixi.toml +++ b/docs/source_files/pixi_workspaces/pixi_build/workspace/pixi.toml @@ -8,8 +8,8 @@ platforms = ["win-64", "linux-64", "osx-arm64", "osx-64"] preview = ["pixi-build"] [dependencies] -python_bindings = { path = "packages/python_bindings" } -rich_example = { path = "." } +cpp_math = { path = "packages/cpp_math" } +python_rich = { path = "." } # --8<-- [end:workspace] @@ -17,7 +17,7 @@ rich_example = { path = "." } start = "rich-example-main" [package] -name = "rich_example" +name = "python_rich" version = "0.1.0" [package.build] diff --git a/docs/source_files/pixi_workspaces/pixi_build/workspace/pyproject.toml b/docs/source_files/pixi_workspaces/pixi_build/workspace/pyproject.toml index 35b0fdcc22..50d1eed46c 100644 --- a/docs/source_files/pixi_workspaces/pixi_build/workspace/pyproject.toml +++ b/docs/source_files/pixi_workspaces/pixi_build/workspace/pyproject.toml @@ -1,8 +1,8 @@ [project] -dependencies = ["rich", "python_bindings"] # (1)! -name = "rich_example" +dependencies = ["rich", "cpp_math"] # (1)! +name = "python_rich" requires-python = ">= 3.11" -scripts = { rich-example-main = "rich_example:main" } # (2)! +scripts = { rich-example-main = "python_rich:main" } # (2)! version = "0.1.0" [build-system] # (3)! diff --git a/docs/source_files/pixi_workspaces/pixi_build/workspace/src/rich_example/__init__.py b/docs/source_files/pixi_workspaces/pixi_build/workspace/src/python_rich/__init__.py similarity index 88% rename from docs/source_files/pixi_workspaces/pixi_build/workspace/src/rich_example/__init__.py rename to docs/source_files/pixi_workspaces/pixi_build/workspace/src/python_rich/__init__.py index 12e9f29003..eecb43cb20 100644 --- a/docs/source_files/pixi_workspaces/pixi_build/workspace/src/rich_example/__init__.py +++ b/docs/source_files/pixi_workspaces/pixi_build/workspace/src/python_rich/__init__.py @@ -1,7 +1,7 @@ from dataclasses import dataclass, fields from rich.console import Console from rich.table import Table -import python_bindings +import cpp_math @dataclass @@ -26,7 +26,7 @@ def main() -> None: table.add_column(column.name) for person in people: - updated_age = python_bindings.add(person.age, 1) + updated_age = cpp_math.add(person.age, 1) table.add_row(person.name, str(updated_age), person.city) console.print(table) diff --git a/docs/source_files/pixi_workspaces/pixi_build/workspace_variants/packages/python_bindings/CMakeLists.txt b/docs/source_files/pixi_workspaces/pixi_build/workspace_variants/packages/cpp_math/CMakeLists.txt similarity index 89% rename from docs/source_files/pixi_workspaces/pixi_build/workspace_variants/packages/python_bindings/CMakeLists.txt rename to docs/source_files/pixi_workspaces/pixi_build/workspace_variants/packages/cpp_math/CMakeLists.txt index 0148cfed84..2c87ba9003 100644 --- a/docs/source_files/pixi_workspaces/pixi_build/workspace_variants/packages/python_bindings/CMakeLists.txt +++ b/docs/source_files/pixi_workspaces/pixi_build/workspace_variants/packages/cpp_math/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.20...3.27) -project(python_bindings) +project(cpp_math) find_package(Python 3.8 COMPONENTS Interpreter Development.Module REQUIRED) # (1)! @@ -16,7 +16,7 @@ execute_process( find_package(nanobind CONFIG REQUIRED) # (4)! -nanobind_add_module(${PROJECT_NAME} src/bindings.cpp) # (5)! +nanobind_add_module(${PROJECT_NAME} src/math.cpp) # (5)! install( # (6)! TARGETS ${PROJECT_NAME} diff --git a/docs/source_files/pixi_workspaces/pixi_build/workspace_variants/packages/python_bindings/pixi.toml b/docs/source_files/pixi_workspaces/pixi_build/workspace_variants/packages/cpp_math/pixi.toml similarity index 92% rename from docs/source_files/pixi_workspaces/pixi_build/workspace_variants/packages/python_bindings/pixi.toml rename to docs/source_files/pixi_workspaces/pixi_build/workspace_variants/packages/cpp_math/pixi.toml index af07aa368f..fa0becfee3 100644 --- a/docs/source_files/pixi_workspaces/pixi_build/workspace_variants/packages/python_bindings/pixi.toml +++ b/docs/source_files/pixi_workspaces/pixi_build/workspace_variants/packages/cpp_math/pixi.toml @@ -1,5 +1,5 @@ [package] -name = "python_bindings" +name = "cpp_math" version = "0.1.0" [package.build] diff --git a/docs/source_files/pixi_workspaces/pixi_build/workspace/packages/python_bindings/src/bindings.cpp b/docs/source_files/pixi_workspaces/pixi_build/workspace_variants/packages/cpp_math/src/math.cpp similarity index 79% rename from docs/source_files/pixi_workspaces/pixi_build/workspace/packages/python_bindings/src/bindings.cpp rename to docs/source_files/pixi_workspaces/pixi_build/workspace_variants/packages/cpp_math/src/math.cpp index 4fbd1afbec..86020b7878 100644 --- a/docs/source_files/pixi_workspaces/pixi_build/workspace/packages/python_bindings/src/bindings.cpp +++ b/docs/source_files/pixi_workspaces/pixi_build/workspace_variants/packages/cpp_math/src/math.cpp @@ -2,7 +2,7 @@ int add(int a, int b) { return a + b; } // (1)! -NB_MODULE(python_bindings, m) +NB_MODULE(cpp_math, m) { m.def("add", &add); // (2)! } diff --git a/docs/source_files/pixi_workspaces/pixi_build/workspace_variants/pixi.lock b/docs/source_files/pixi_workspaces/pixi_build/workspace_variants/pixi.lock index de72e09e73..30cc7feb38 100644 --- a/docs/source_files/pixi_workspaces/pixi_build/workspace_variants/pixi.lock +++ b/docs/source_files/pixi_workspaces/pixi_build/workspace_variants/pixi.lock @@ -36,13 +36,13 @@ environments: - conda: https://prefix.dev/conda-forge/noarch/typing_extensions-4.12.2-pyha770c72_1.conda - conda: https://prefix.dev/conda-forge/noarch/tzdata-2025a-h78e105d_0.conda - conda: . - - conda: packages/python_bindings + - conda: packages/cpp_math build: py312h2078e5b_0 subdir: linux-64 osx-64: - conda: https://prefix.dev/conda-forge/osx-64/bzip2-1.0.8-hfdf4475_7.conda - conda: https://prefix.dev/conda-forge/osx-64/ca-certificates-2024.12.14-h8857fd0_0.conda - - conda: https://prefix.dev/conda-forge/osx-64/libcxx-19.1.7-hf95d169_0.conda + - conda: https://prefix.dev/conda-forge/osx-64/libcxx-20.1.3-hf95d169_0.conda - conda: https://prefix.dev/conda-forge/osx-64/libexpat-2.6.4-h240833e_0.conda - conda: https://prefix.dev/conda-forge/osx-64/libffi-3.4.2-h0d85af4_5.tar.bz2 - conda: https://prefix.dev/conda-forge/osx-64/liblzma-5.6.3-hd471939_1.conda @@ -61,13 +61,13 @@ environments: - conda: https://prefix.dev/conda-forge/noarch/typing_extensions-4.12.2-pyha770c72_1.conda - conda: https://prefix.dev/conda-forge/noarch/tzdata-2025a-h78e105d_0.conda - conda: . - - conda: packages/python_bindings + - conda: packages/cpp_math build: py312h2078e5b_0 subdir: osx-64 osx-arm64: - conda: https://prefix.dev/conda-forge/osx-arm64/bzip2-1.0.8-h99b78c6_7.conda - conda: https://prefix.dev/conda-forge/osx-arm64/ca-certificates-2024.12.14-hf0a4a13_0.conda - - conda: https://prefix.dev/conda-forge/osx-arm64/libcxx-19.1.7-ha82da77_0.conda + - conda: https://prefix.dev/conda-forge/osx-arm64/libcxx-20.1.3-ha82da77_0.conda - conda: https://prefix.dev/conda-forge/osx-arm64/libexpat-2.6.4-h286801f_0.conda - conda: https://prefix.dev/conda-forge/osx-arm64/libffi-3.4.2-h3422bc3_5.tar.bz2 - conda: https://prefix.dev/conda-forge/osx-arm64/liblzma-5.6.3-h39f12f2_1.conda @@ -86,7 +86,7 @@ environments: - conda: https://prefix.dev/conda-forge/noarch/typing_extensions-4.12.2-pyha770c72_1.conda - conda: https://prefix.dev/conda-forge/noarch/tzdata-2025a-h78e105d_0.conda - conda: . - - conda: packages/python_bindings + - conda: packages/cpp_math build: py312h2078e5b_0 subdir: osx-arm64 win-64: @@ -112,7 +112,7 @@ environments: - conda: https://prefix.dev/conda-forge/win-64/vc14_runtime-14.42.34433-he29a5d6_23.conda - conda: https://prefix.dev/conda-forge/win-64/vs2015_runtime-14.42.34433-hdffcdeb_23.conda - conda: . - - conda: packages/python_bindings + - conda: packages/cpp_math build: py312h2078e5b_0 subdir: win-64 py311: @@ -151,13 +151,13 @@ environments: - conda: https://prefix.dev/conda-forge/noarch/typing_extensions-4.12.2-pyha770c72_1.conda - conda: https://prefix.dev/conda-forge/noarch/tzdata-2025a-h78e105d_0.conda - conda: . - - conda: packages/python_bindings + - conda: packages/cpp_math build: py311h43a39b2_0 subdir: linux-64 osx-64: - conda: https://prefix.dev/conda-forge/osx-64/bzip2-1.0.8-hfdf4475_7.conda - conda: https://prefix.dev/conda-forge/osx-64/ca-certificates-2024.12.14-h8857fd0_0.conda - - conda: https://prefix.dev/conda-forge/osx-64/libcxx-19.1.7-hf95d169_0.conda + - conda: https://prefix.dev/conda-forge/osx-64/libcxx-20.1.3-hf95d169_0.conda - conda: https://prefix.dev/conda-forge/osx-64/libexpat-2.6.4-h240833e_0.conda - conda: https://prefix.dev/conda-forge/osx-64/libffi-3.4.2-h0d85af4_5.tar.bz2 - conda: https://prefix.dev/conda-forge/osx-64/liblzma-5.6.3-hd471939_1.conda @@ -176,13 +176,13 @@ environments: - conda: https://prefix.dev/conda-forge/noarch/typing_extensions-4.12.2-pyha770c72_1.conda - conda: https://prefix.dev/conda-forge/noarch/tzdata-2025a-h78e105d_0.conda - conda: . - - conda: packages/python_bindings + - conda: packages/cpp_math build: py311h43a39b2_0 subdir: osx-64 osx-arm64: - conda: https://prefix.dev/conda-forge/osx-arm64/bzip2-1.0.8-h99b78c6_7.conda - conda: https://prefix.dev/conda-forge/osx-arm64/ca-certificates-2024.12.14-hf0a4a13_0.conda - - conda: https://prefix.dev/conda-forge/osx-arm64/libcxx-19.1.7-ha82da77_0.conda + - conda: https://prefix.dev/conda-forge/osx-arm64/libcxx-20.1.3-ha82da77_0.conda - conda: https://prefix.dev/conda-forge/osx-arm64/libexpat-2.6.4-h286801f_0.conda - conda: https://prefix.dev/conda-forge/osx-arm64/libffi-3.4.2-h3422bc3_5.tar.bz2 - conda: https://prefix.dev/conda-forge/osx-arm64/liblzma-5.6.3-h39f12f2_1.conda @@ -201,7 +201,7 @@ environments: - conda: https://prefix.dev/conda-forge/noarch/typing_extensions-4.12.2-pyha770c72_1.conda - conda: https://prefix.dev/conda-forge/noarch/tzdata-2025a-h78e105d_0.conda - conda: . - - conda: packages/python_bindings + - conda: packages/cpp_math build: py311h43a39b2_0 subdir: osx-arm64 win-64: @@ -227,7 +227,7 @@ environments: - conda: https://prefix.dev/conda-forge/win-64/vc14_runtime-14.42.34433-he29a5d6_23.conda - conda: https://prefix.dev/conda-forge/win-64/vs2015_runtime-14.42.34433-hdffcdeb_23.conda - conda: . - - conda: packages/python_bindings + - conda: packages/cpp_math build: py311h43a39b2_0 subdir: win-64 py312: @@ -266,13 +266,13 @@ environments: - conda: https://prefix.dev/conda-forge/noarch/typing_extensions-4.12.2-pyha770c72_1.conda - conda: https://prefix.dev/conda-forge/noarch/tzdata-2025a-h78e105d_0.conda - conda: . - - conda: packages/python_bindings + - conda: packages/cpp_math build: py312h2078e5b_0 subdir: linux-64 osx-64: - conda: https://prefix.dev/conda-forge/osx-64/bzip2-1.0.8-hfdf4475_7.conda - conda: https://prefix.dev/conda-forge/osx-64/ca-certificates-2024.12.14-h8857fd0_0.conda - - conda: https://prefix.dev/conda-forge/osx-64/libcxx-19.1.7-hf95d169_0.conda + - conda: https://prefix.dev/conda-forge/osx-64/libcxx-20.1.3-hf95d169_0.conda - conda: https://prefix.dev/conda-forge/osx-64/libexpat-2.6.4-h240833e_0.conda - conda: https://prefix.dev/conda-forge/osx-64/libffi-3.4.2-h0d85af4_5.tar.bz2 - conda: https://prefix.dev/conda-forge/osx-64/liblzma-5.6.3-hd471939_1.conda @@ -291,13 +291,13 @@ environments: - conda: https://prefix.dev/conda-forge/noarch/typing_extensions-4.12.2-pyha770c72_1.conda - conda: https://prefix.dev/conda-forge/noarch/tzdata-2025a-h78e105d_0.conda - conda: . - - conda: packages/python_bindings + - conda: packages/cpp_math build: py312h2078e5b_0 subdir: osx-64 osx-arm64: - conda: https://prefix.dev/conda-forge/osx-arm64/bzip2-1.0.8-h99b78c6_7.conda - conda: https://prefix.dev/conda-forge/osx-arm64/ca-certificates-2024.12.14-hf0a4a13_0.conda - - conda: https://prefix.dev/conda-forge/osx-arm64/libcxx-19.1.7-ha82da77_0.conda + - conda: https://prefix.dev/conda-forge/osx-arm64/libcxx-20.1.3-ha82da77_0.conda - conda: https://prefix.dev/conda-forge/osx-arm64/libexpat-2.6.4-h286801f_0.conda - conda: https://prefix.dev/conda-forge/osx-arm64/libffi-3.4.2-h3422bc3_5.tar.bz2 - conda: https://prefix.dev/conda-forge/osx-arm64/liblzma-5.6.3-h39f12f2_1.conda @@ -316,7 +316,7 @@ environments: - conda: https://prefix.dev/conda-forge/noarch/typing_extensions-4.12.2-pyha770c72_1.conda - conda: https://prefix.dev/conda-forge/noarch/tzdata-2025a-h78e105d_0.conda - conda: . - - conda: packages/python_bindings + - conda: packages/cpp_math build: py312h2078e5b_0 subdir: osx-arm64 win-64: @@ -342,7 +342,7 @@ environments: - conda: https://prefix.dev/conda-forge/win-64/vc14_runtime-14.42.34433-he29a5d6_23.conda - conda: https://prefix.dev/conda-forge/win-64/vs2015_runtime-14.42.34433-hdffcdeb_23.conda - conda: . - - conda: packages/python_bindings + - conda: packages/cpp_math build: py312h2078e5b_0 subdir: win-64 packages: @@ -428,6 +428,106 @@ packages: license: ISC size: 157422 timestamp: 1734208404685 +- conda: packages/cpp_math + name: cpp_math + version: 0.1.0 + build: py311h43a39b2_0 + subdir: linux-64 + depends: + - libstdcxx >=14 + - libgcc >=14 + - python_abi 3.11.* *_cp311 + input: + hash: 0a4778ae7dcc301f273c42a1fdb2bd5c46ddbde4956d7b47a2e85b9bb13e60a8 + globs: + - pixi.toml +- conda: packages/cpp_math + name: cpp_math + version: 0.1.0 + build: py311h43a39b2_0 + subdir: osx-64 + depends: + - libcxx >=20 + - python_abi 3.11.* *_cp311 + input: + hash: 0a4778ae7dcc301f273c42a1fdb2bd5c46ddbde4956d7b47a2e85b9bb13e60a8 + globs: + - pixi.toml +- conda: packages/cpp_math + name: cpp_math + version: 0.1.0 + build: py311h43a39b2_0 + subdir: osx-arm64 + depends: + - libcxx >=20 + - python_abi 3.11.* *_cp311 + input: + hash: 0a4778ae7dcc301f273c42a1fdb2bd5c46ddbde4956d7b47a2e85b9bb13e60a8 + globs: + - pixi.toml +- conda: packages/cpp_math + name: cpp_math + version: 0.1.0 + build: py311h43a39b2_0 + subdir: win-64 + depends: + - vc >=14.1,<15 + - vc14_runtime >=14.16.27033 + - python_abi 3.11.* *_cp311 + input: + hash: 0a4778ae7dcc301f273c42a1fdb2bd5c46ddbde4956d7b47a2e85b9bb13e60a8 + globs: + - pixi.toml +- conda: packages/cpp_math + name: cpp_math + version: 0.1.0 + build: py312h2078e5b_0 + subdir: linux-64 + depends: + - libstdcxx >=14 + - libgcc >=14 + - python_abi 3.12.* *_cp312 + input: + hash: 0a4778ae7dcc301f273c42a1fdb2bd5c46ddbde4956d7b47a2e85b9bb13e60a8 + globs: + - pixi.toml +- conda: packages/cpp_math + name: cpp_math + version: 0.1.0 + build: py312h2078e5b_0 + subdir: osx-64 + depends: + - libcxx >=20 + - python_abi 3.12.* *_cp312 + input: + hash: 0a4778ae7dcc301f273c42a1fdb2bd5c46ddbde4956d7b47a2e85b9bb13e60a8 + globs: + - pixi.toml +- conda: packages/cpp_math + name: cpp_math + version: 0.1.0 + build: py312h2078e5b_0 + subdir: osx-arm64 + depends: + - libcxx >=20 + - python_abi 3.12.* *_cp312 + input: + hash: 0a4778ae7dcc301f273c42a1fdb2bd5c46ddbde4956d7b47a2e85b9bb13e60a8 + globs: + - pixi.toml +- conda: packages/cpp_math + name: cpp_math + version: 0.1.0 + build: py312h2078e5b_0 + subdir: win-64 + depends: + - vc >=14.1,<15 + - vc14_runtime >=14.16.27033 + - python_abi 3.12.* *_cp312 + input: + hash: 0a4778ae7dcc301f273c42a1fdb2bd5c46ddbde4956d7b47a2e85b9bb13e60a8 + globs: + - pixi.toml - conda: https://prefix.dev/conda-forge/linux-64/ld_impl_linux-64-2.43-h712a8e2_2.conda sha256: 7c91cea91b13f4314d125d1bedb9d03a29ebbd5080ccdea70260363424646dbe md5: 048b02e3962f066da18efe3a21b77672 @@ -439,24 +539,24 @@ packages: license_family: GPL size: 669211 timestamp: 1729655358674 -- conda: https://prefix.dev/conda-forge/osx-64/libcxx-19.1.7-hf95d169_0.conda - sha256: 6b2fa3fb1e8cd2000b0ed259e0c4e49cbef7b76890157fac3e494bc659a20330 - md5: 4b8f8dc448d814169dbc58fc7286057d +- conda: https://prefix.dev/conda-forge/osx-64/libcxx-20.1.3-hf95d169_0.conda + sha256: a4b493e0f76b20ff14e0f1f93c92882663c4f23c4488d8de3f6bbf1311b9c41e + md5: 022f109787a9624301ddbeb39519ff13 depends: - __osx >=10.13 license: Apache-2.0 WITH LLVM-exception license_family: Apache - size: 527924 - timestamp: 1736877256721 -- conda: https://prefix.dev/conda-forge/osx-arm64/libcxx-19.1.7-ha82da77_0.conda - sha256: 776092346da87a2a23502e14d91eb0c32699c4a1522b7331537bd1c3751dcff5 - md5: 5b3e1610ff8bd5443476b91d618f5b77 + size: 560376 + timestamp: 1744843903291 +- conda: https://prefix.dev/conda-forge/osx-arm64/libcxx-20.1.3-ha82da77_0.conda + sha256: aa45cf608430e713575ef4193e4c0bcdfd7972db51f1c3af2fece26c173f5e67 + md5: 379db9caa727cab4d3a6c4327e4e7053 depends: - __osx >=11.0 license: Apache-2.0 WITH LLVM-exception license_family: Apache - size: 523505 - timestamp: 1736877862502 + size: 566462 + timestamp: 1744844034347 - conda: https://prefix.dev/conda-forge/linux-64/libexpat-2.6.4-h5888daf_0.conda sha256: 56541b98447b58e52d824bd59d6382d609e11de1f8adf20b23143e353d2b8d26 md5: db833e03127376d461e1e13e76f09b6c @@ -1085,104 +1185,16 @@ packages: license_family: BSD size: 6730 timestamp: 1723823139725 -- conda: packages/python_bindings - name: python_bindings - version: 0.1.0 - build: py311h43a39b2_0 - subdir: linux-64 - depends: - - libstdcxx >=14 - - libgcc >=14 - - python_abi 3.11.* *_cp311 - input: - hash: 126016c29b2cd106b232942f12ce38cb6b14280b484bca634529f33a22cb5ff8 - globs: - - pixi.toml -- conda: packages/python_bindings - name: python_bindings - version: 0.1.0 - build: py311h43a39b2_0 - subdir: osx-64 - depends: - - libcxx >=19 - - python_abi 3.11.* *_cp311 - input: - hash: 126016c29b2cd106b232942f12ce38cb6b14280b484bca634529f33a22cb5ff8 - globs: - - pixi.toml -- conda: packages/python_bindings - name: python_bindings - version: 0.1.0 - build: py311h43a39b2_0 - subdir: osx-arm64 - depends: - - libcxx >=19 - - python_abi 3.11.* *_cp311 - input: - hash: 126016c29b2cd106b232942f12ce38cb6b14280b484bca634529f33a22cb5ff8 - globs: - - pixi.toml -- conda: packages/python_bindings - name: python_bindings - version: 0.1.0 - build: py311h43a39b2_0 - subdir: win-64 - depends: - - vc >=14.1,<15 - - vc14_runtime >=14.16.27033 - - python_abi 3.11.* *_cp311 - input: - hash: 126016c29b2cd106b232942f12ce38cb6b14280b484bca634529f33a22cb5ff8 - globs: - - pixi.toml -- conda: packages/python_bindings - name: python_bindings - version: 0.1.0 - build: py312h2078e5b_0 - subdir: linux-64 - depends: - - libstdcxx >=14 - - libgcc >=14 - - python_abi 3.12.* *_cp312 - input: - hash: 126016c29b2cd106b232942f12ce38cb6b14280b484bca634529f33a22cb5ff8 - globs: - - pixi.toml -- conda: packages/python_bindings - name: python_bindings - version: 0.1.0 - build: py312h2078e5b_0 - subdir: osx-64 - depends: - - libcxx >=19 - - python_abi 3.12.* *_cp312 - input: - hash: 126016c29b2cd106b232942f12ce38cb6b14280b484bca634529f33a22cb5ff8 - globs: - - pixi.toml -- conda: packages/python_bindings - name: python_bindings - version: 0.1.0 - build: py312h2078e5b_0 - subdir: osx-arm64 - depends: - - libcxx >=19 - - python_abi 3.12.* *_cp312 - input: - hash: 126016c29b2cd106b232942f12ce38cb6b14280b484bca634529f33a22cb5ff8 - globs: - - pixi.toml -- conda: packages/python_bindings - name: python_bindings +- conda: . + name: python_rich version: 0.1.0 - build: py312h2078e5b_0 - subdir: win-64 + build: pyhbf21a9e_0 + subdir: noarch depends: - - vc >=14.1,<15 - - vc14_runtime >=14.16.27033 - - python_abi 3.12.* *_cp312 + - rich >=13.9.4,<14 + - python input: - hash: 126016c29b2cd106b232942f12ce38cb6b14280b484bca634529f33a22cb5ff8 + hash: f77143f26667bd070bf291d71e56fb9957f0df77305cff3a6e6ad02be34a4ce7 globs: - pixi.toml - conda: https://prefix.dev/conda-forge/linux-64/readline-8.2-h8228510_1.conda @@ -1225,18 +1237,6 @@ packages: license_family: MIT size: 185646 timestamp: 1733342347277 -- conda: . - name: rich_example - version: 0.1.0 - build: pyhbf21a9e_0 - subdir: noarch - depends: - - rich >=13.9.4,<14 - - python - input: - hash: f672a8426732e9086523d7518ec1f1ec73dfe7931307c0aab4170bc660eb5e54 - globs: - - pixi.toml - conda: https://prefix.dev/conda-forge/linux-64/tk-8.6.13-noxft_h4845f30_101.conda sha256: e0569c9caa68bf476bead1bed3d79650bb080b532c64a4af7d8ca286c08dea4e md5: d453b98d9c83e71da0741bb0ff4d76bc diff --git a/docs/source_files/pixi_workspaces/pixi_build/workspace_variants/pixi.toml b/docs/source_files/pixi_workspaces/pixi_build/workspace_variants/pixi.toml index 9c614e9ee4..bb8a670d87 100644 --- a/docs/source_files/pixi_workspaces/pixi_build/workspace_variants/pixi.toml +++ b/docs/source_files/pixi_workspaces/pixi_build/workspace_variants/pixi.toml @@ -8,8 +8,8 @@ preview = ["pixi-build"] # --8<-- [start:dependencies] [dependencies] -python_bindings = { path = "packages/python_bindings" } -rich_example = { path = "." } +cpp_math = { path = "packages/cpp_math" } +python_rich = { path = "." } # --8<-- [end:dependencies] # --8<-- [start:environments] @@ -35,7 +35,7 @@ python = ["3.11.*", "3.12.*"] start = "rich-example-main" [package] -name = "rich_example" +name = "python_rich" version = "0.1.0" [package.build] diff --git a/docs/source_files/pixi_workspaces/pixi_build/workspace_variants/pyproject.toml b/docs/source_files/pixi_workspaces/pixi_build/workspace_variants/pyproject.toml index 35b0fdcc22..50d1eed46c 100644 --- a/docs/source_files/pixi_workspaces/pixi_build/workspace_variants/pyproject.toml +++ b/docs/source_files/pixi_workspaces/pixi_build/workspace_variants/pyproject.toml @@ -1,8 +1,8 @@ [project] -dependencies = ["rich", "python_bindings"] # (1)! -name = "rich_example" +dependencies = ["rich", "cpp_math"] # (1)! +name = "python_rich" requires-python = ">= 3.11" -scripts = { rich-example-main = "rich_example:main" } # (2)! +scripts = { rich-example-main = "python_rich:main" } # (2)! version = "0.1.0" [build-system] # (3)! diff --git a/docs/source_files/pixi_workspaces/pixi_build/workspace_variants/src/rich_example/__init__.py b/docs/source_files/pixi_workspaces/pixi_build/workspace_variants/src/python_rich/__init__.py similarity index 88% rename from docs/source_files/pixi_workspaces/pixi_build/workspace_variants/src/rich_example/__init__.py rename to docs/source_files/pixi_workspaces/pixi_build/workspace_variants/src/python_rich/__init__.py index 12e9f29003..eecb43cb20 100644 --- a/docs/source_files/pixi_workspaces/pixi_build/workspace_variants/src/rich_example/__init__.py +++ b/docs/source_files/pixi_workspaces/pixi_build/workspace_variants/src/python_rich/__init__.py @@ -1,7 +1,7 @@ from dataclasses import dataclass, fields from rich.console import Console from rich.table import Table -import python_bindings +import cpp_math @dataclass @@ -26,7 +26,7 @@ def main() -> None: table.add_column(column.name) for person in people: - updated_age = python_bindings.add(person.age, 1) + updated_age = cpp_math.add(person.age, 1) table.add_row(person.name, str(updated_age), person.city) console.print(table)