Skip to content

Infra: build peps.rss from input txt and rst files #2407

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

Closed
wants to merge 2 commits into from

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Mar 10, 2022

Fixes #2406.

The RSS builder must run on the input TXT and RST files, not the target HTML files, similar to how it was done in the old pep2rss.py:

peps/pep2rss.py

Lines 63 to 66 in 08e37f7

# get list of peps with creation time
# (from "Created:" string in pep .rst or .txt)
peps = glob.glob('pep-*.txt')
peps.extend(glob.glob('pep-*.rst'))

To test, run python3 generate_rss.py and check build/peps.rss has the most recently created PEPs.

For comparison, here's pep.rss from two days ago:

@hugovk hugovk requested a review from AA-Turner as a code owner March 10, 2022 09:31
@CAM-Gerlach CAM-Gerlach added bug infra Core infrastructure for building and rendering PEPs labels Mar 11, 2022
Copy link
Member

@CAM-Gerlach CAM-Gerlach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, aside from one minor suggestion you might want to consider

Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug CLA signed infra Core infrastructure for building and rendering PEPs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RSS doesn't seem to work anymore?
3 participants