-
Notifications
You must be signed in to change notification settings - Fork 306
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
Requirements files need to be rethought #2647
Comments
Very important points! Addressing this in #2650. 🔧
📝
🏕️ Since IDE support for
This is currently what we do. The one thing I'd change would be to have the PR to update pinned requirements be merged automatically if all required tests pass, but I couldn't figure that out.
👍🏻 Sounds good to me! We'd probably want a comment in |
|
There are numerous issues with the current structure of requirements files...
pyproject.toml
is modified.uv
generates a requirements files it by default adds OS specific packages to that file. So, if you generate the file on a Windows machine without the--no-deps
flag, then all associated CIs and RTD runners will fail. Again, not documented anywhere.requirements.txt
for inspection, so a frozen set of dependencies is a nuisance for the developer. Since the mainrequirements.txt
is frozen set of dependencies for a given py version, it is not a good reference file for IDEs when the developer is using a different py version. It would be better to have a flexible dependency file for developers.plasmapy
side every time we updateplasmpay_sphinx
.Possible Solutions:
requirements/
directory to CI focused requirements only.pyproject.toml
to tell the developer to update the CI specific requirement.requirements.txt
for the developer and add it to.gitignore
so the developer can create arequirements.txt
for their own development environment. (This would be done in combination with the above item.)requirements.txt
that mirrorspyproject.toml
, like we used to have. This is not ideal from a maintainer perspective, but offloads a lot of burden from the contributor side..readthedocs.yml
so it install dependencies likeplasmapy[docs]
instead of a requirements file. I'm doing this right now in PR Removeplasmapy_sphinx
#1643 . (Currently this does not appear to affect RTD build time.)The text was updated successfully, but these errors were encountered: