|
25 | 25 | generation_time = datetime.now(timezone.utc) |
26 | 26 |
|
27 | 27 | with TemporaryDirectory() as clones_dir: |
28 | | - Repo.clone_from(f'https://github.com/python/devguide.git', devguide_dir := Path(clones_dir, 'devguide'), depth=1) |
| 28 | + Repo.clone_from( |
| 29 | + "https://github.com/python/devguide.git", |
| 30 | + devguide_dir := Path(clones_dir, "devguide"), |
| 31 | + depth=1, |
| 32 | + ) |
29 | 33 | latest_branch = branches_from_devguide(devguide_dir)[0] |
30 | 34 | Repo.clone_from( |
31 | | - f'https://github.com/python/cpython.git', Path(clones_dir, 'cpython'), depth=1, branch=latest_branch |
| 35 | + "https://github.com/python/cpython.git", |
| 36 | + Path(clones_dir, "cpython"), |
| 37 | + depth=1, |
| 38 | + branch=latest_branch, |
| 39 | + ) |
| 40 | + subprocess.run(["make", "-C", Path(clones_dir, "cpython/Doc"), "venv"], check=True) |
| 41 | + subprocess.run( |
| 42 | + ["make", "-C", Path(clones_dir, "cpython/Doc"), "gettext"], check=True |
32 | 43 | ) |
33 | | - subprocess.run(['make', '-C', Path(clones_dir, 'cpython/Doc'), 'venv'], check=True) |
34 | | - subprocess.run(['make', '-C', Path(clones_dir, 'cpython/Doc'), 'gettext'], check=True) |
35 | 44 | switcher_languages = list(switcher.get_languages()) |
36 | 45 | for language, repo in repositories.get_languages_and_repos(devguide_dir): |
37 | 46 | if repo: |
|
78 | 87 | <a href="https://github.com/{{ repo }}" target="_blank"> |
79 | 88 | {{ language }} |
80 | 89 | </a> |
81 | | - </td> |
| 90 | + </td> |
82 | 91 | <td data-label="build"> |
83 | 92 | {% if in_switcher %} |
84 | 93 | <a href="https://docs.python.org/{{ language }}/">in switcher</a> |
|
111 | 120 | """ |
112 | 121 | ) |
113 | 122 |
|
114 | | -output = template.render(completion_progress=completion_progress, generation_time=generation_time) |
| 123 | +output = template.render( |
| 124 | + completion_progress=completion_progress, generation_time=generation_time |
| 125 | +) |
115 | 126 |
|
116 | 127 | with open("index.html", "w") as file: |
117 | 128 | file.write(output) |
0 commit comments