| 1 |
# -*- coding: utf-8 -*- |
| 2 |
|
| 3 |
"""Update requirements.rst file from pyproject.toml or setup.cfg file |
| 4 |
|
| 5 |
Warning: this has to be done manually at release time. |
| 6 |
It is not done automatically by the sphinx 'conf.py' file because it |
| 7 |
requires an internet connection to fetch the dependencies metadata - this |
| 8 |
is not always possible (e.g., when building the documentation on a machine |
| 9 |
without internet connection like the Debian package management infrastructure). |
| 10 |
""" |
| 11 |
|
| 12 |
from guidata.utils.genreqs import gen_module_req_rst # noqa: E402 |
| 13 |
|
| 14 |
import cdlclient |
| 15 |
|
| 16 |
if __name__ == "__main__": |
| 17 |
print("Updating requirements.rst file...", end=" ") |
| 18 |
gen_module_req_rst(cdlclient, ["Python>=3.8"]) |
| 19 |
print("done.") |