8000 Add python-releases.toml by AA-Turner · Pull Request #4331 · python/peps · GitHub
[go: up one dir, main page]

Skip to content

Add python-releases.toml #4331

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Initial review notes
  • Loading branch information
AA-Turner committed Apr 5, 2025
commit a72c1f9cc8ff0df54093c516140bedf4c004ef01
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,6 @@ repos:
name: "Regenerate release schedules from python-releases.toml"
entry: "python -m release_engineering update-peps"
language: "python"
files: "^release_engineering/"
pass_filenames: false
require_serial: true
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@
if sys.version_info >= (3, 11):
from release_engineering.generate_release_cycle import create_release_cycle
else:
# this function uses tomllib, which requires Python 3.11+
def create_release_cycle():
return ''

Check warning on line 35 in pep_sphinx_extensions/pep_zero_generator/pep_index_generator.py

View check run for this annotation

Codecov / codecov/patch

pep_sphinx_extensions/pep_zero_generator/pep_index_generator.py#L35

Added line #L35 was not covered by tests

if TYPE_CHECKING:
from sphinx.application import Sphinx
Expand Down Expand Up @@ -80,5 +81,5 @@

write_peps_json(peps, Path(app.outdir))

release_cycle = create_release_cycle()
app.outdir.joinpath('release-cycle.json').write_text(release_cycle, encoding="utf-8")

Check warning on line 85 in pep_sphinx_extensions/pep_zero_generator/pep_index_generator.py

View check run for this annotation

Codecov / codecov/patch

pep_sphinx_extensions/pep_zero_generator/pep_index_generator.py#L84-L85

Added lines #L84 - L85 were not covered by tests
2 changes: 1 addition & 1 deletion release_engineering/LICENCE.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
This files in this directory are placed in the public domain or under the
The files in this directory are placed in the public domain or under the
CC0-1.0-Universal license, whichever is more permissive.
33 changes: 22 additions & 11 deletions release_engineering/update_release_schedules.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,32 @@

TODAY = dt.date.today()

VERSIONS_TO_REGENERATE = (
'3.8',
'3.9',
'3.10',
'3.11',
'3.12',
'3.13',
'3.14',
)
SKIPPED_VERSIONS = frozenset({
'1.6',
'2.0',
'2.1',
'2.2',
'2.3',
'2.4',
'2.5',
'2.6',
'2.7',
'3.0',
'3.1',
'3.2',
'3.3',
'3.4',
'3.5',
'3.6',
'3.7',
})


def update_peps() -> None:
python_releases = load_python_releases()
for version in VERSIONS_TO_REGENERATE:
metadata = python_releases.metadata[version]
for version, metadata in python_releases.metadata.items():
if version in SKIPPED_VERSIONS:
continue
schedules = create_schedules(
version,
python_releases.releases[version],
Expand Down
0