I have a general question about handling versions in requirements.txt of my package foo. I cannot decide if >= or ~= is better.
- assume
pandas~=1.3.3inrequirements.txtof my packagefoo- in this case, I can guarantee that tests and code of
fooworks correctly forpandaspatches - problem: if there is a minor (or even major) change to
1.4.0inpandas, a third package cannot usefooanymore withpandas==1.4.0. So I have to releasefooagain withpandas~=1.4.0. This means that I have to release constantly ...
- in this case, I can guarantee that tests and code of
- assume
pandas>=1.3.3in myrequirements.txtof my packagefoo- I thought the
>=could solve the problem. With>=,foocan still be used. But ... - problem: this means that
foocan even be used with major changes likepandas==2.1.1. I do not know iffoostill works correctly. Probably the tests even fail but I won't notice ...
- I thought the
I am confused and I do not know what to do.
What is best practice?
Thanks!