-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat(template): Added scikit as an option for build system #161
Conversation
@ayeankit I just merged 2 PRs, could you rebase your branch on top of upstream/main pls? |
could you check if you are using the instructions from here? |
yes, I am using official docs for reference. Thank you for asking. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ayeankit thanks for working on that!
in general it looks good.
please change the references (names, links etc) from just scikit
to scikit-build
, also replace the references from scikit-hep
by scikit-build
docs/guide.md
Outdated
@@ -325,7 +325,14 @@ packages. SciCookie support the following: | |||
compatibility with setuptools and Cargo make it an easy-to-use tool, offering | |||
developers a simple solution to combine the strengths of Python and Rust within | |||
a unified project. | |||
|
|||
- [**scikit**](https://scikit-hep.org):It's build system designed for Python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same thing here about scikit-build and https://scikit-build.readthedocs.io/
@@ -56,6 +56,9 @@ In addition, you should know that to build our package we use | |||
{%- elif cookiecutter.build_system == "maturin" -%} | |||
In addition, you should know that to build our package we use | |||
[Maturin](https://pypi.org/project/maturin/0.8.2/):It's a Python packaging tool and build system for creating Python bindings from Rust projects. It enables seamless integration of Rust code into Python applications, offering efficient builds, cross-platform support, and compatibility with different Python versions. Maturin automates the process of generating Python modules that directly call Rust functions, leveraging Rust's performance and low-level capabilities in Python. With its easy-to-use interface and integration with setuptools and Cargo, Maturin provides a straightforward solution for developers seeking to combine the strengths of Python and Rust in a single project. | |||
{%- elif cookiecutter.build_system == "maturin" -%} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably this should be scikit-build
@@ -56,6 +56,9 @@ In addition, you should know that to build our package we use | |||
{%- elif cookiecutter.build_system == "maturin" -%} | |||
In addition, you should know that to build our package we use | |||
[Maturin](https://pypi.org/project/maturin/0.8.2/):It's a Python packaging tool and build system for creating Python bindings from Rust projects. It enables seamless integration of Rust code into Python applications, offering efficient builds, cross-platform support, and compatibility with different Python versions. Maturin automates the process of generating Python modules that directly call Rust functions, leveraging Rust's performance and low-level capabilities in Python. With its easy-to-use interface and integration with setuptools and Cargo, Maturin provides a straightforward solution for developers seeking to combine the strengths of Python and Rust in a single project. | |||
{%- elif cookiecutter.build_system == "maturin" -%} | |||
In addition, you should know that to build our package we use | |||
[scikit-hep](https://scikit-hep.org):It's a Python packaging tool and build system an improved build system generator for CPython C extensions. It provides better support for additional compilers, build systems, cross compilation, and locating dependencies and their associated build requirements.This tool improves package management in the scientific Python ecosystem, enabling cross-platform builds with CMake, and seamless integration with C/C++ libraries for research software engineers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change scikit-hep to scikit-build text and refs, please
Co-authored-by: Ivan Ogasawara <[email protected]>
Co-authored-by: Ivan Ogasawara <[email protected]>
Co-authored-by: Ivan Ogasawara <[email protected]>
Co-authored-by: Ivan Ogasawara <[email protected]>
Co-authored-by: Ivan Ogasawara <[email protected]>
Co-authored-by: Ivan Ogasawara <[email protected]>
Co-authored-by: Ivan Ogasawara <[email protected]>
Co-authored-by: Ivan Ogasawara <[email protected]>
Co-authored-by: Ivan Ogasawara <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @ayeankit! This PR confuses scikit-build
with scikit-build-core
. I can see that you use scikit-build-core
in pyproject.toml
, but you are calling it scikit-build
everywhere in this PR. scikit-build
and scikit-build-core
are technically different build backends.
Thanks @Saransh-cpp , so should I change |
We should ideally have both of them in |
@xmnlab Can you please review it once again? |
src/scicookie/{{cookiecutter.project_slug}}/docs/contributing.md
Outdated
Show resolved
Hide resolved
src/scicookie/{{cookiecutter.project_slug}}/docs/contributing.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Saransh Chopra <[email protected]>
Co-authored-by: Saransh Chopra <[email protected]>
Co-authored-by: Saransh Chopra <[email protected]>
Co-authored-by: Saransh Chopra <[email protected]>
Co-authored-by: Saransh Chopra <[email protected]>
Co-authored-by: Saransh Chopra <[email protected]>
Co-authored-by: Saransh Chopra <[email protected]>
Co-authored-by: Saransh Chopra <[email protected]>
Co-authored-by: Saransh Chopra <[email protected]>
Hey @Saransh-cpp , I think there needs to be one more PR for scikit-build with using scikit-buildas backend for build-system. |
Yes! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would make sense to explicitly use scikit-build-core
everywhere, given that you plan to add scikit-build
as a backend too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename scikit-build-core-pyproject.toml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure!!
src/scicookie/{{cookiecutter.project_slug}}/build-system/skcdemo.cpp
Outdated
Show resolved
Hide resolved
Co-authored-by: Saransh Chopra <[email protected]>
Co-authored-by: Saransh Chopra <[email protected]>
…mo.cpp Co-authored-by: Saransh Chopra <[email protected]>
Co-authored-by: Saransh Chopra <[email protected]>
Co-authored-by: Saransh Chopra <[email protected]>
Co-authored-by: Ivan Ogasawara <[email protected]>
Co-authored-by: Ivan Ogasawara <[email protected]>
Co-authored-by: Ivan Ogasawara <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for working on that @ayeankit !
@Saransh-cpp thank you so much for the review!
🎉 This PR is included in version 0.5.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Pull Request description
Fixes #71
How to test these changes
...
Pull Request checklists
This PR is a:
About this PR:
Author's checklist:
Additional information
Reviewer's checklist
Copy and paste this template for your review's note: