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
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
Temporary workaround for tests on 3.9 & 3.10
  • Loading branch information
AA-Turner committed Mar 29, 2025
commit 9a70c0a0118320b8883ba19aba55f3a03ef3c962
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,19 @@

import json
import os
import sys
from pathlib import Path
from typing import TYPE_CHECKING

from pep_sphinx_extensions.pep_zero_generator import parser
from pep_sphinx_extensions.pep_zero_generator import subindices
from pep_sphinx_extensions.pep_zero_generator import writer
from pep_sphinx_extensions.pep_zero_generator.constants import SUBINDICES_BY_TOPIC
from release_engineering.generate_release_cycle import create_release_cycle
if sys.version_info >= (3, 11):
from release_engineering.generate_release_cycle import create_release_cycle
else:
def create_release_cycle():
return ''

Check warning on line 34 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#L34

Added line #L34 was not covered by tests

if TYPE_CHECKING:
from sphinx.application import Sphinx
Expand Down Expand Up @@ -75,5 +80,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 84 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#L83-L84

Added lines #L83 - L84 were not covered by tests
0