-
-
Notifications
You must be signed in to change notification settings - Fork 2
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: migrate to scikit-build-core
#7
base: main
Are you sure you want to change the base?
Conversation
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.
Partial review
OUTPUT_STRIP_TRAILING_WHITESPACE) | ||
else() | ||
set(CASADI_DIR $ENV{CASADI_PATH}) | ||
message("it is alr set: ${CASADI_DIR}") |
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.
This is not a good message for printing, please clean this up
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.
Oh, I forgot to change this. Thanks
if(DEFINED ENV{CIBUILDWHEEL}) | ||
install(TARGETS idaklu DESTINATION "pybammsolvers") | ||
else() | ||
install(TARGETS idaklu DESTINATION "${CMAKE_CURRENT_SOURCE_DIR}/src/pybammsolvers") | ||
endif() |
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.
We should be consistent about where files are placed whenever possible
"numpy<2.0" | ||
] | ||
license = { file = "LICENSE" } | ||
version = "0.0.1" |
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.
Why can't version be dynamic anymore?
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.
The thing is, scikit-build-core has 3 built-in plugins for dynamic metadata.
The one used for versioning is setuptools_scm
, and when I tried using it, it gave out responses similar to: 0.0.1.dev143+81
. I tried tweaking it a bit and I found that we might have to use git tags. So I opted for manual version, instead of dynamic.
LMK if you are okay with that default scheme, I can change it.
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.
I'd very much like to use VCS-based versioning (it's better in many scenarios), but better to avoid it in this PR and proceed with the metadata updates later.
where = ["src"] | ||
include = ["pybammsolvers"] | ||
[tool.hatch.metadata.hooks.fancy-pypi-readme] | ||
content-type = "text/markdown" | ||
|
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.
Why are we using hatch here when the rest is scikit-build-core?
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.
scikit-build-core ships with 3 built-in plugins for dynamic metadata. One of them is hatch, and we need to use it if we want a dynamic readme.
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] | ||
path = "README.md" |
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 as above
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.
As explained above, we need to use hatch if we want a dynamic readme.
style: format code Co-authored-by: Eric G. Kratz <kratman@users.noreply.github.com>
This pull request will migrate the build backend from "setuptools" and "wheel" to "scikit-build-core" along will the updated workflows.