2021-05-06 20:35:39 +00:00
|
|
|
requirement_fnames = (
|
2021-07-26 11:37:35 +00:00
|
|
|
"requirements.txt",
|
|
|
|
"requirements/extra.txt",
|
|
|
|
"requirements/loggers.txt",
|
|
|
|
"requirements/test.txt",
|
|
|
|
"requirements/examples.txt",
|
2021-05-06 20:35:39 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
def replace_min(fname: str):
|
2021-07-26 11:37:35 +00:00
|
|
|
req = open(fname).read().replace(">=", "==")
|
|
|
|
open(fname, "w").write(req)
|
2021-05-06 20:35:39 +00:00
|
|
|
|
|
|
|
|
2021-07-26 11:37:35 +00:00
|
|
|
if __name__ == "__main__":
|
2021-05-06 20:35:39 +00:00
|
|
|
for fname in requirement_fnames:
|
|
|
|
replace_min(fname)
|