Skip to content
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

Refactor checkbin to use shutil.which #1628

Merged
merged 1 commit into from
Jul 8, 2023
Merged

Conversation

Julian-O
Copy link
Contributor

@Julian-O Julian-O commented Jul 6, 2023

checkbin used custom code to find where a binary is on the path.
shutil.which is a built-in to do the same thing since Python 3.3.
Simpler and works across platforms.

checkbin used custom code to find where a binary is on the path.
shutil.which is a built-in to do the same thing since Python 3.3.
Simpler and works across platforms.
@Julian-O
Copy link
Contributor Author

Julian-O commented Jul 6, 2023

Failed tests are for Python 2, that is no longer supported.

@misl6
Copy link
Member

misl6 commented Jul 8, 2023

Failed tests are for Python 2, that is no longer supported.

Yeah, these checks are only here to make sure we do not remove the "Unsupported Python version" statement.
But, Python 2 is not even supported anymore by Github Actions action/setup-python.

I guess we can remove this check, as there's no need to over-complicate things here.

Copy link
Member

@misl6 misl6 left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you!

@misl6 misl6 merged commit 0851a10 into kivy:master Jul 8, 2023
16 of 17 checks passed
@Julian-O Julian-O deleted the checkbinrefactor branch July 22, 2023 12:40
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