-
-
Notifications
You must be signed in to change notification settings - Fork 640
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update PBS generate_urls.py housekeeping script with resolve and opti…
…ons (#21674) Some small updates to the PBS `generate_urls.py` housekeeping script: - Put the script into a `pbs-script` resolve to isolate its dependencies. - Add a `pex_binary` target for running the script. - Use `argparse` to add new options `--scrape-all-releases` and `--scrape-release=RELEASE` for forcing the script to re-process already-scraped releases. I am using these for another PR where I modified the data format for `versions_info.json` and need to rescrape the PBS release data. - The build root check is now just a check that the script is being run from the root of a Pants repository (via presence of the expected subdirectories). (This avoids needing to import `get_buildroot` from the other Pants sources.)
- Loading branch information
Showing
6 changed files
with
729 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
PyGithub>=2.5.0 | ||
requests[security]>=2.28.1 | ||
types-requests==2.28.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 8 additions & 1 deletion
9
src/python/pants/backend/python/providers/python_build_standalone/scripts/BUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
# Copyright 2023 Pants project contributors (see CONTRIBUTORS.md). | ||
# Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
||
python_sources() | ||
python_sources(resolve="pbs-script") | ||
|
||
pex_binary( | ||
name="bin", | ||
entry_point="generate_urls.py", | ||
dependencies=[":scripts"], | ||
resolve="pbs-script", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters