Skip to content

Add initial README.md for tests/ requirement files #2577

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 12 commits into
base: devel
Choose a base branch
from

Conversation

x1101
Copy link
Contributor

@x1101 x1101 commented Apr 29, 2025

First pass at adding documentation requested in #312 I did this as a table because that's the format that made sense to me, but if other have a different approach, or what other information included, I'm happy to improve from here.

Fixes #312

tests/README.md Outdated
# Requirements Files, and their uses
| File | Purpose |
| ---- | ------- |
|constraints.in | Pins for the stable, tested versions of sphinx and antsibull-docs that production builds rely upon |
Copy link
Member

Choose a reason for hiding this comment

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

Technically, not just pins. Actually, pins should be avoided in there mostly. Only specific version exclusions and rare top boundaries should go here. What's known to be broken (temporarily).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I pulled the language right out of the file. Is there a better way to phrase it?

Something like "Pins, upper or lower version boundaries for known issues"

tests/README.md Outdated
|tag.in | Requirements for `tag` nox session |
|typing.in | Requirements for `typing` nox session |
|formatters.txt | Output of `uv pip compile --universal --output-file tests/formatters.txt -r tests/formatters.in` |
|pip-compile.txt | Output of `uv pip compile --universal --output-file tests/pip-compile.txt tests/pip-compile.in` |
Copy link
Member

Choose a reason for hiding this comment

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

txt files are pins (pip constraints really)

Copy link
Member

Choose a reason for hiding this comment

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

Maybe add a separate column for txt files mapped to in? It's mostly 1:1.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe add a separate column for txt files mapped to in? It's mostly 1:1.

As in, move the *.txt files to another column on the lines with *.in files, as opposed to their own lines?

That sounds totally reasonable. Then maybe (if its useful to know?) just a singular blurb that *.in is compiled into the corresponding *.txt with the general form of the uv pip compile command.

Update Heading, per @oraNod's suggestion

Co-authored-by: Don Naro <[email protected]>
@x1101
Copy link
Contributor Author

x1101 commented Apr 30, 2025

@webknjaz can you take a look and see if that's in line with what you're suggesting both for the updates to the description on constraints.in and the formatting for the *.txt files?

Co-authored-by: Sandra McCann <[email protected]>
Co-authored-by: Sandra McCann <[email protected]>
@samccann
Copy link
Contributor

samccann commented May 6, 2025

The CI failures here I think are unrelated to this PR so.. .bear with while we chase down the problems.

@samccann
Copy link
Contributor

gonna close/reopen to see if the CI problems go away

@samccann samccann closed this May 14, 2025
@samccann samccann reopened this May 14, 2025
@webknjaz
Copy link
Member

webknjaz commented Jun 6, 2025

Could you replace "requirements" with "dependencies" in the table?

tests/README.md Outdated
|formatters.in | List of Formatters required | formatters.txt |
|pip-compile.in | Dependencies for `pip-compile` nox session | pip-compile.txt |
|pr_labeler.in | Dependencies for pr_labeler | pr_labeler.txt |
|requirements.in | Dependencies file for Docs Build | requirements.txt |
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
|requirements.in | Dependencies file for Docs Build | requirements.txt |
|requirements.in | Dependencies file for Sphinx doc builds | requirements.txt |

@x1101
Copy link
Contributor Author

x1101 commented Jun 10, 2025

@oraNod I think I have all your suggestions applied correctly. I'd appreciate another once-over to confirm

Copy link
Contributor

@oraNod oraNod left a comment

Choose a reason for hiding this comment

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

thanks @x1101 it's nice to have these details captured somewhere

@oraNod
Copy link
Contributor

oraNod commented Jun 10, 2025

thinking about branching devel to cut new stable releases. certain of the workflow files are deleted and kept on devel only. the corresponding requirements files are also deleted, which means this doc would not reflect what is on the stable branches.

we could note this in the MAINTAINERS.md file and say to either modify or delete this table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document requirements files in tests/
4 participants