riscv-isac icon indicating copy to clipboard operation
riscv-isac copied to clipboard

Pluggy should be in install_requires; pytest shouldn’t

Open alexshpilkin opened this issue 2 years ago • 3 comments

Since https://github.com/riscv-software-src/riscv-isac/pull/8, there has been a dependency on pluggy which is not listed in install_requires / requirements.txt.

On the other hand, as best as I can tell, pytest is only required to run tests (which is reasonable), yet is present in install_requires instead of only in tests_require, thus requiring every riscv_isac user to have it on their computer (which is not). It would be better to move it to the latter.

alexshpilkin avatar Dec 25 '22 21:12 alexshpilkin

@alexshpilkin Thanks for filing the issue. Would you be willing to raise a PR for the same?

pawks avatar Dec 27 '22 06:12 pawks

@pawks I’m fine doing that, sure. Do you want to make a separate test_requirements.txt or just special-case pytest for now? (I could even imagine comment-separated sections in the current requirements.txt file, but that sounds more fancy that this tiny problem is worth, honestly.)

alexshpilkin avatar Dec 28 '22 22:12 alexshpilkin

Its better to have a separate test_requirements.txt than try to separate the requirements.txt into sections.

pawks avatar Dec 29 '22 06:12 pawks