-
Notifications
You must be signed in to change notification settings - Fork 116
Move to pyproject.toml
build
#218
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
Conversation
Codecov ReportBase: 64.00% // Head: 93.61% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## develop #218 +/- ##
============================================
+ Coverage 64.00% 93.61% +29.60%
============================================
Files 18 15 -3
Lines 1328 908 -420
============================================
Hits 850 850
+ Misses 478 58 -420 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
Worth pointing out. I have tested moving back to the old approach with Edit: Oh wow, "the fix" is so stupid... |
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
8cf0302
to
18a122c
Compare
Sorry about the amount of CI actions. Cmake linking on windows is soo weird |
c4064b7
to
ddef3e4
Compare
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
@atztogo Finally got it working. Weirdly, the ubuntu tests take half an hour to perform. Any idea on that? Edit: That was because it was running emulated |
Good luck! Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
Like what we did in #212. The CIs pass so I suspect it works, but confirm that please |
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.
@LecrisUT Great works, thanks! I have learned a lot about CMake and Python packaging from your PR. I wrote tiny comments.
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
Note that last commit is a |
Yes, on macOS arm64, I confirmed that it works. A warning was printed out in the build process by
which is
|
Great, this should be ready now. I've cleaned the warning a bit for more general systems. Also I've removed the Python2 compatibility macros since it has been sunset-ed for 3 years and we do not test them. Build system would not work for it also. |
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
Merged to rc. Thanks a lot @LecrisUT! |
This PR has a few changes:
ctest
CI to be purely cmake. Didn't make much sense to be python dependent therepyproject.toml
environment. Some equivalent commands to thesetup.py
ones are:setup.py build
->python -m build
(need to installpip install build
). This is mostly unnecessary unless you want to fail quicklysetup.py install
->pip install .
nanoversion
script until we think of how to implement it with dynamic variable Extract metadata from cmake scikit-build/scikit-build-core#172We need to do a few tests on this:
develop
initially to trigger these (CI job finished)scikit-build-core
pypi-weel-builds
. We'll change the target branch torc
ifdevelop
works to test it there (and if necessary back todevelop
to keep the branches synced)@atztogo please let me know how the mac build goes. You can manually set it
-DCMAKE_OSX_DEPLOYMENT_TARGET=...
inpyprojec.toml
if it doesn't work automatically and I'll write a PR upstream for that fix.About making editable installs, this should be doable via
pip install --editable .
. But for this we need scikit-build/scikit-build-core#171Closes #217
Currently,
cibuildwheel
still doesn't work locally. Added upstream issue: scikit-build/scikit-build-core#173. Here's the setup to debug locally assuming you have a docker/podman environment:$ CIBW_CONTAINER_ENGINE=podman cibuildwheel . --platform linux