News for hackers. Stuff that matters.
Re:Automate your Python project with Makefile (2021) by belthesar on Monday March 27, 2023 @02:03PM (#35330064)
I've been seeing a growing use of `just` for cases like this. It works similar in function to make, but it's a great deal cleaner and easier to use.
Re:Automate your Python project with Makefile (2021) by pletnes on Monday March 27, 2023 @02:40PM (#35330547)
It also backtracks up the directory tree so you don’t have to cd to run «just test».
Re:Automate your Python project with Makefile (2021) by eirki on Monday March 27, 2023 @02:36PM (#35330493)
Re:Automate your Python project with Makefile (2021) by kapilvt on Monday March 27, 2023 @03:00PM (#35330831)
as someone who maintains projects both using just and make, I have to say just is awesome, and allows things like writing a given task directly in a scripting language. sadly its not universally available across operating systems and linux distros (ubuntu/debian was the last significant dev ecosystem where it wasn't native, re apt install). so for projects with wider contributor goals, I still default to make, despite its warts (which are many imo), cause it tends to work ootb.
Re:Automate your Python project with Makefile (2021) by raffraffraff on Tuesday March 28, 2023 @04:13AM (#35337354)
I'm considering using it because the justfile can be anywhere in the directory tree above the point where you're running it. (This happens to be useful in certain situations like terraform env/region/stack trees. "Just" is also a command runner. While (as another person has pointed out) "make" is everywhere, "just" is easy to install.