-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
base: main
Are you sure you want to change the base?
Add python-releases.toml #4331
Changes from all commits
13bf22c
813ac0d
1615b1d
3414c2e
d81a00d
27be901
7836259
9a70c0a
2207db2
674eba1
3dc6277
a72c1f9
e4f42ac
73cf41e
7b18f8d
1f1c73d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,13 +19,20 @@ | |
|
||
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 | ||
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+ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The comment would make more sense before line 31 or before line 30. This function here on lines 34-35 does not use tomllib! But also, you could have a version-dependent dependency like |
||
def create_release_cycle(): | ||
return '' | ||
|
||
if TYPE_CHECKING: | ||
from sphinx.application import Sphinx | ||
|
@@ -73,3 +80,6 @@ | |
subindices.generate_subindices(SUBINDICES_BY_TOPIC, peps, docnames, env) | ||
|
||
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") | ||
Uh oh!
There was an error while loading. Please reload this page.