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:
117
117
name : " Regenerate release schedules from python-releases.toml"
118
118
entry : " python -m release_engineering update-peps"
119
119
language : " python"
120
+ files : " ^release_engineering/"
120
121
pass_filenames : false
121
122
require_serial : true
Original file line number Diff line number Diff line change 30
30
if sys .version_info >= (3 , 11 ):
31
31
from release_engineering .generate_release_cycle import create_release_cycle
32
32
else :
33
+ # this function uses tomllib, which requires Python 3.11+
33
34
def create_release_cycle ():
34
35
return ''
35
36
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
2
2
CC0-1.0-Universal license, whichever is more permissive.
Original file line number Diff line number Diff line change 42
42
43
43
TODAY = dt .date .today ()
44
44
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
+ })
54
64
55
65
56
66
def update_peps () -> None :
57
67
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
60
71
schedules = create_schedules (
61
72
version ,
62
73
python_releases .releases [version ],
You can’t perform that action at this time.
0 commit comments