File tree Expand file tree Collapse file tree 4 files changed +25
-12
lines changed
pep_sphinx_extensions/pep_zero_generator Expand file tree Collapse file tree 4 files changed +25
-12
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 3030if sys .version_info >= (3 , 11 ):
3131 from release_engineering .generate_release_cycle import create_release_cycle
3232else :
33+ # this function uses tomllib, which requires Python 3.11+
3334 def create_release_cycle ():
3435 return ''
3536
Original file line number Diff line number Diff line change 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
22CC0-1.0-Universal license, whichever is more permissive.
Original file line number Diff line number Diff line change 4242
4343TODAY = 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
5666def 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 ],
You can’t perform that action at this time.
0 commit comments