What do you mean? You just need to ban companies from doing 5 days work.
And what's more, software engineers are exempt from these rules because of their pay grades. If you're a SWE making a salary the odds are your employer could require you work on Saturdays without running afowl of labor laws.
This is all powered by norms.
If you are a SWE, you don't get paid overtime for working that incident on the weekend or going over 40 hours in a week. The only reason you work five days a week is tradition.
Give the employees enough work such that they have to work on weekends... and... done.
France is a great place to be an employee.