Skip to content

Running build.py to render PEPs leaves residual files in a new topic/ folder #2659

Closed
@pradyunsg

Description

@pradyunsg

It seems that the auto-generation of documents that were added in #2579 also leaves the generated files on disk, and they are not git-ignored.

git status  
On branch main
Your branch is up to date with 'origin/main'.

nothing to commit, working tree cleangit show HEAD --stat
commit 0ffc78187c3b33d3ede64156dbf9e79f823ec116 (HEAD -> main, upstream/main, upstream/HEAD, origin/main)
Author: Pradyun Gedam <pradyunsg@gmail.com>
Date:   Sat Jun 18 21:53:23 2022 +0100

    PEP 632: Remove `Topic: Packaging` header (#2656)

 pep-0632.rst | 1 -
 1 file changed, 1 deletion(-)python ./build.py                       
Running Sphinx v4.5.0
[snip]git status          
On branch main
Your branch is up to date with 'origin/main'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        topic/

nothing added to commit but untracked files present (use "git add" to track)ls topic/
index.rst     packaging.rst

PS: While I still think it would be nicer to not generate .rst files in-memory (which would avoid this issue + the regeneration of the files on every run), I'm not gonna advocate for it anymore. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    buginfraCore infrastructure for building and rendering PEPs

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions