-
Notifications
You must be signed in to change notification settings - Fork 25
Add pyproject.toml file and update top-level files #864
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
|
@weaverba137: This looks good to me. One comment and one question: (1) Can you please updated the |
[run]
source = py/desitarget
omit =
py/desitarget/_version.py
py/desitarget/conftest*
py/desitarget/cython_version*
py/desitarget/mock/mockmaker.py <--
py/desitarget/mock/build.py <--
py/desitarget/setup_package*
py/desitarget/*/setup_package*
py/desitarget/*/*/setup_package*
py/desitarget/sandbox/* <--
py/desitarget/sphinx/* <--
py/desitarget/skyutilities/* <--
py/desitarget/test/*
py/desitarget/*/test/*
py/desitarget/*/*/test/*
py/desitarget/train/* <-- |
|
I'm seeing these warnings on Python 3.12 and 3.13: |
|
I think these warnings are not malicious: This is testing we can run a single object (one table row) through the cuts, which we never actually do. But, open a separate ticket and I'll fix the warnings via that ticket. Although, thinking about it some more, I thought you'd already fixed these exact issues/warnings in PR #838? To your question about coverage: Everything marked with a |
|
I'm on vacation for a couple of days, but I will definitely restore the original coverage configuration when O get a chance. For the warnings, I'll have to investigate the bitwise operator warning further. It is legitimate though. I may have fixed a very similar NumPy warning, but this warning is coming directly from Python itself. |
sbailey
left a comment
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 like to make photutils, joblib, and sklearn optional dependencies to keep the default end-user installation lighter-weight. Otherwise let's try to move this forward since it is a blocking factor for GitHub tests on other packages passing without requiring workarounds. Coverage and new warning messages can be spun off into separate tickets.
setup.cfg
Outdated
| fitsio | ||
| photutils==1.6.0 | ||
| joblib | ||
| sklearn |
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 think we should not make photutils, joblib, and sklearn required dependencies for every install since they make it a much heavier-weight installation for end users who just need the mask bits and misc utility functions. joblib and sklearn are only needed for training the QSO random forest (or more to the point, documenting how it was trained). photutils is used for calculating sky positions and randoms, and in the past it has sometimes been a difficult package to install (perhaps as evidenced by pinning the version here). These 3 packages could be moved into an optional section. Following desiutil's setup.cfg, I think this would go under an "all" section in the [options.extras_require] section below. I'd need to experiment to understand if they also need to be added to the "test" and "coverage" sections.
all =
photutils==1.6.0
joblib
sklearn
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 done in the latest commit. I have also restored the coverage configuration, although I restored it for the files and directories that actually exist. For example mock/mockmaker.py does not exist in the latest version.
|
I have no objections if you want to merge now. |
|
I think @sbailey's review is addressed in the latest comments, and with the other issues spun off, I think this can be merged. |
|
Hold on! I just realized that the installed dependencies in the unit test differ from those in |
|
OK, |
|
Also note, |
|
After some further consultation with @geordie666 who happens to be in my office, I've updated this branch so that
That last bullet could likely be cleaned up with further updates to python-package.yml to leverage |
This PR:
setup.cfg.--no-build-isolationoption.