TST: simplify redundant tox.ini sections enabling pip_pre#16973
TST: simplify redundant tox.ini sections enabling pip_pre#16973mhvk merged 1 commit intoastropy:mainfrom
tox.ini sections enabling pip_pre#16973Conversation
|
Thank you for your contribution to Astropy! 🌌 This checklist is meant to remind the package maintainers who will review this pull request of some common things to look for.
|
|
👋 Thank you for your draft pull request! Do you know that you can use |
tox.ini sections enabling pip_pre
mhvk
left a comment
There was a problem hiding this comment.
Seems sensible but I don't feel entirely competent to judge this!
tox.ini
Outdated
| devdeps: true | ||
| predeps: true | ||
| !predeps: false | ||
| !devdeps-!predeps: false |
There was a problem hiding this comment.
We never chain these two together and my tox-fu is weak, so maybe @saimn , @astrofrog , or @Cadair can review? 🙏
There was a problem hiding this comment.
This reads as not devdeps and not predeps. There's a similar construct already on line 121.
There was a problem hiding this comment.
(and I just realized that this line is purely redundant so I removed it for clarity)
|
Let me also run the predeps job just to be very sure. Thanks! |
|
@pllim Good to go ? |
|
There is a little difference with the new version. Just 2 characters but the |
6b76019 to
ca34a71
Compare
|
@saimn Noted. Updated to use the env variable |
|
I want to carefully inspect the logs before I approve. It is on my todo. Thanks for your patience! |
ca34a71 to
a13104e
Compare
|
This is now the only blocker for #16963 |
a13104e to
af1ea3e
Compare
|
With two approvals, let's get it in (with auto-merge, so assuming tests pass). |
Description
Found this while working on #16950: the way we set
install_commanddoesn't respect recommendations from tox's docsIt's also redundant to use
install_commandsto set pip's--preflag, and it gets in the way oftox-uv(see #16950).Other than that the change is a noop: it doesn't change anything1 to how test env behave, it's just written in a more tidy fashion, making the configuration more maintainable.
Footnotes
well, except that it removes a
-vverbose flag frompip installindevdeps. Note that it's still possible to increase pip's verbosity with thePIP_VERBOSEenv var if needed. ↩