Skip to content

Commit a72c1f9

Browse files
committed
Initial review notes
1 parent 3dc6277 commit a72c1f9

File tree

4 files changed

+25
-12
lines changed

4 files changed

+25
-12
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,5 +117,6 @@ repos:
117117
name: "Regenerate release schedules from python-releases.toml"
118118
entry: "python -m release_engineering update-peps"
119119
language: "python"
120+
files: "^release_engineering/"
120121
pass_filenames: false
121122
require_serial: true

pep_sphinx_extensions/pep_zero_generator/pep_index_generator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
if sys.version_info >= (3, 11):
3131
from release_engineering.generate_release_cycle import create_release_cycle
3232
else:
33+
# this function uses tomllib, which requires Python 3.11+
3334
def create_release_cycle():
3435
return ''
3536

release_engineering/LICENCE.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
This files in this directory are placed in the public domain or under the
1+
The files in this directory are placed in the public domain or under the
22
CC0-1.0-Universal license, whichever is more permissive.

release_engineering/update_release_schedules.py

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,32 @@
4242

4343
TODAY = dt.date.today()
4444

45-
VERSIONS_TO_REGENERATE = (
46-
'3.8',
47-
'3.9',
48-
'3.10',
49-
'3.11',
50-
'3.12',
51-
'3.13',
52-
'3.14',
53-
)
45+
SKIPPED_VERSIONS = frozenset({
46+
'1.6',
47+
'2.0',
48+
'2.1',
49+
'2.2',
50+
'2.3',
51+
'2.4',
52+
'2.5',
53+
'2.6',
54+
'2.7',
55+
'3.0',
56+
'3.1',
57+
'3.2',
58+
'3.3',
59+
'3.4',
60+
'3.5',
61+
'3.6',
62+
'3.7',
63+
})
5464

5565

5666
def update_peps() -> None:
5767
python_releases = load_python_releases()
58-
for version in VERSIONS_TO_REGENERATE:
59-
metadata = python_releases.metadata[version]
68+
for version, metadata in python_releases.metadata.items():
69+
if version in SKIPPED_VERSIONS:
70+
continue
6071
schedules = create_schedules(
6172
version,
6273
python_releases.releases[version],

0 commit comments

Comments
 (0)