Skip to content

Conversation

@nightlark
Copy link
Contributor

@nightlark nightlark commented Nov 25, 2025

Adds requirements.txt and lock files for installing dependencies for github-upload-release.py script.

@nightlark
Copy link
Contributor Author

cc: @boomanaiden154

Copy link
Contributor

@boomanaiden154 boomanaiden154 left a comment

Choose a reason for hiding this comment

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

This is not how we manage dependencies. This needs to go in a requirements.txt along with a generated lockfile, or piggy back off something else.

@nightlark nightlark force-pushed the add-pep723-requirements-to-permissions-check branch from 3b7e039 to edb4263 Compare November 25, 2025 07:29
@nightlark nightlark changed the title github-upload-release.py: add inline script dependencies github-upload-release.py: github-upload-release.py: add requirements.txt and lock files for installing dependencies Nov 25, 2025
@nightlark
Copy link
Contributor Author

This is not how we manage dependencies. This needs to go in a requirements.txt along with a generated lockfile, or piggy back off something else.

I changed it to requirements.txt and a generated lockfile for this PR, however I think it would be good to consider adding the inline script metadata to make it obvious to someone looking at the script what dependencies it needs installed are (and that follows the script if it ever gets moved around in the repository.

@nightlark nightlark changed the title github-upload-release.py: github-upload-release.py: add requirements.txt and lock files for installing dependencies github-upload-release.py: add requirements.txt and lock files for installing dependencies Nov 25, 2025
@nightlark nightlark changed the title github-upload-release.py: add requirements.txt and lock files for installing dependencies github-upload-release.py: add requirements and lock files for installing dependencies Nov 25, 2025
@nightlark nightlark force-pushed the add-pep723-requirements-to-permissions-check branch from edb4263 to 51793ed Compare November 25, 2025 07:37
@boomanaiden154
Copy link
Contributor

I changed it to requirements.txt and a generated lockfile for this PR, however I think it would be good to consider adding the inline script metadata to make it obvious to someone looking at the script what dependencies it needs installed are (and that follows the script if it ever gets moved around in the repository.

You can add a docstring that references the requirements.txt file.

@nightlark nightlark force-pushed the add-pep723-requirements-to-permissions-check branch from 51793ed to fba3dac Compare November 25, 2025 09:26
Copy link
Contributor

@boomanaiden154 boomanaiden154 left a comment

Choose a reason for hiding this comment

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

LGTM. Might be good at some point to look at consolidating all of the requirements files, but we can leave that for the future.

@boomanaiden154 boomanaiden154 merged commit 2f71e60 into llvm:main Nov 26, 2025
10 checks passed
tanji-dg pushed a commit to tanji-dg/llvm-project that referenced this pull request Nov 27, 2025
…ing dependencies (llvm#169461)

Adds requirements.txt and lock files for installing dependencies for
github-upload-release.py script.

Signed-off-by: Ryan Mast <[email protected]>
GeneraluseAI pushed a commit to GeneraluseAI/llvm-project that referenced this pull request Nov 27, 2025
…ing dependencies (llvm#169461)

Adds requirements.txt and lock files for installing dependencies for
github-upload-release.py script.

Signed-off-by: Ryan Mast <[email protected]>
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.

2 participants