-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Fix warnings (C and cython) #217
Conversation
@tobiasdiez Is it possible to show the pytest output? Right now all that is shown is:
I can look at the file locally, but not on CI. Since pytest output is already brief, just showing it in the output would be nice, and also gives a better progress report. Also, what is the suggested workflow to build and test "in place"? I would expect something like this:
but this in fact tests the cysignals installed in the system. I shouldn't be required to install before testing. Something like
or even
fails because building doesn't create a complete package in Ideally, a simple way to run |
I don't think there is an easy way to print the test output directly (https://mesonbuild.com/Unit-tests.html#test-outputs). Either we could run pytest manually or afterwards just ̀ cat` the log file in the CI. For editable install, the simplest would be the classical
You do need to install (eg into a local venv) since the build directory contains the compiled cython code but no python files, and it's the opposite for the source folder. |
For CI, cat is good. For local, is not (I want to see pytest output while it's happening)
I don't trust pip, I'm always afraid it will break my system. I provide the dependencies, I only want to build cysignals and test it.
Isn't it possible that a complete package is built in the build directory? I was hoping meson-python had something figured out for the normal build / test cycle. |
67b5ce7
to
5fcb398
Compare
Thanks for the review. I just pushed a couple empty lines to make flake8 happy. |
The last commit may be unnecessary after #220. |
Indeed. I removed the last commit from this PR. |
I rebased on top of #220, and I added a new commit to add "-v" to the build command. This way we can see the output of |
This PR fixes warnings when building and testing