Skip to content

Add tool to detect supported platforms #77

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

Merged
merged 5 commits into from
May 24, 2020
Merged

Add tool to detect supported platforms #77

merged 5 commits into from
May 24, 2020

Conversation

TheTripleV
Copy link
Member

The tool finds maven_lib_downloads in a given pyproject.toml and finds supported platforms by scraping html. A brute force option is given when html is not available (rev).

Ex.

robotpy-build parse-maven pyproject.toml

Output:

Wrapper / static_lib :: hal
Artifact ID :: hal-cpp

This repo appears to provide sources.
The name of the source file is: sources

supported_platforms = [
    { os = "linux", arch = "raspbian" },
    { os = "linux", arch = "aarch64bionic" },
    { os = "linux", arch = "x86-64" },
    { os = "linux", arch = "athena" },
    { os = "osx", arch = "x86-64" },
    { os = "windows", arch = "x86" },
    { os = "windows", arch = "x86-64" },
]

Copy link
Member

@virtuald virtuald 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 really cool, thanks!

class MavenParser:

os_names = ["linux", "windows", "osx"]
known_arch_names = [
Copy link
Member

Choose a reason for hiding this comment

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

Can we pull this from platforms.py instead?

Copy link
Member Author

Choose a reason for hiding this comment

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

I've changed it to use known os and archs from platforms.py. This only applies when the brute force flag is used. Regularly, with html scraping, it just finds all available platforms in the html. As far as I know, the only difference between the two modes is detection of aarch64bionic, raspbian, and jetsontx.

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