feat: check for and list valid versions and targets programmatically in phylum-init
#74
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR takes on two issues and is relevant now that phylum-dev/cli#528 has been merged into the CLI, adding a new supported platform. The next release of the CLI, with this new supported platform, will cause the
phylum-init
script to be out of date. Instead of updating the static collection of supported platforms, this PR will help to ensure the synchronization is maintained for any changes going forward. Changes include:SUPPORTED_TARGET_TRIPLES
static collection--list-releases
and--list-targets
options.get
method onimportlib_metadata.metadata()
results.json
method is not available for Python 3.8 and 3.9MIN_SUPPORTED_CLI_VERSION
Closes #24
Closes #26
Checklist
closes #<issueNum>
in description above)?Have you created sufficient tests?Testing Screenshots