-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
Add PEP 723 support for SuiteSparse and SUNDIALS installation script #3716
Add PEP 723 support for SuiteSparse and SUNDIALS installation script #3716
Conversation
Introduce a TOML-style comment block at the top of the `install_KLU_Sundials.py` script. This block contains essential metadata, including the required Python version and a list of dependencies. This addition aligns the script with the PEP 723 guidelines, enhancing readability and portability for script runners and developers. The metadata includes: - The Python version requirement (<=3.9) - Dependencies required for the script (wget, cmake) - Additional information like the repository and documentation links This enhancement facilitates easier script sharing and collaboration, providing a standardized way to specify and access script dependencies and supported Python versions. It also lays the groundwork for potential future tooling that could automate environment setup and dependency installation. Refer to PEP 723 for more details on this format. Resolves: #3647
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.
Hi @AlessioBugetti, thanks for adding the configuration as requested in the issue. The only reason I'm holding off on merging this is highlighted by its priority – there's this discussion that the PEP is being updated through and I am not following up enough on where it is heading, which just means that we'll need to make further changes as and when this gets finalised and Python tooling adapts accordingly.
My suggestion is that we should wait until Q2 2024 and see what the scenario is, because currently without a mechanism for an isolated, automated installation of the dependencies table – the PEP doesn't handle much of the use case I am referring to (there have been script runners that work with curl -L <URL> | python3
before such as those for installing PDM and Poetry, but IIRC both of those options have been deprecated and removed from the codebases of both of those projects).
We can either keep this PR as a draft for now, re-create this PR at a different time, or merge it and make changes later at a different time. I don't have an opinion on any of the three scenarios.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #3716 +/- ##
========================================
Coverage 99.59% 99.59%
========================================
Files 258 258
Lines 20796 20796
========================================
Hits 20711 20711
Misses 85 85 ☔ View full report in Codecov by Sentry. |
Hi @agriyakhetarpal , Thank you for your feedback and for considering the changes I've proposed. I understand the concerns regarding the evolving nature of PEP 723. Given the situation, I'm open to any of the suggested approaches regarding the PR. If keeping the PR as a draft is the preferred method for now, I'm happy to monitor the progress and update it as needed when Q2 2024 approaches. Alternatively, if you think it's better to merge now and revise later, or to close and re-open the PR at a later date, I'm flexible and willing to assist in whichever way is most beneficial for the project. From my viewpoint, I believe that merging the PR now would be beneficial. The addition of metadata to |
Agreed, I am happy to merge even with the limited functionality that the dependencies table currently provides. Although I will keep the corresponding issue open so that we can get back to it later – I shall tag you there sometime, feel free to work on it further if you will still be available. |
…l_KLU_Sundials.py
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.
Thanks, @AlessioBugetti! @all-contributors please add @AlessioBugetti for infra
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.
Thanks @AlessioBugetti, looks good.
I'm in favour of merging this PR as is and further continue with the changes later in Q2 2024.
Edit: commenting again to add you for infra 🙂
@all-contributors please add @AlessioBugetti for infra |
I've put up a pull request to add @AlessioBugetti! 🎉 |
TIL that the all-contributors requires a separate comment for this functionality, thanks @arjxn-py. |
Hi, @AlessioBugetti – I have posted about potential revisions to PEP 723 in #3647 (comment). If you're interested, feel free to take that up! |
Description
Introduce a TOML-style comment block at the top of the
install_KLU_Sundials.py
script. This block contains essential metadata, including the required Python version and a list of dependencies. This addition aligns the script with the PEP 723 guidelines, enhancing readability and portability for script runners and developers.The metadata includes:
This enhancement facilitates easier script sharing and collaboration, providing a standardized way to specify and access script dependencies and supported Python versions. It also lays the groundwork for potential future tooling that could automate environment setup and dependency installation.
Refer to PEP 723 for more details on this format.
Fixes #3647
Type of change
Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #) - note reverse order of PR #s. If necessary, also add to the list of breaking changes.
Key checklist:
$ pre-commit run
(or$ nox -s pre-commit
) (see CONTRIBUTING.md for how to set this up to run automatically when committing locally, in just two lines of code)$ python run-tests.py --all
(or$ nox -s tests
)$ python run-tests.py --doctest
(or$ nox -s doctests
)You can run integration tests, unit tests, and doctests together at once, using
$ python run-tests.py --quick
(or$ nox -s quick
).Further checks: