2025-02-26 17:42:21 +01:00

15 lines
363 B
Python
Executable File

#!/usr/bin/env python
import json
import os
import sys
from pathlib import Path
NAMES = (
"{VERSION_FROM}-{VERSION_CURRENT}-{VERSION_TO}-{STAGE}.json",
"PEP440-{VERSION_PEP440_FROM}-{VERSION_PEP440_CURRENT}-{VERSION_PEP440_TO}-{STAGE}.json",
)
for name in NAMES:
with Path(name.format(**os.environ)).open("w") as fd:
json.dump(sys.argv, fd)