-
Notifications
You must be signed in to change notification settings - Fork 506
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
Allow setting custom p4a URL instead of fork #1305
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, nice work and thanks!! 😄
Note: I leave a couple of suggestions, in case that you want to apply them, but is already fine if we merge as it is, since we almost didn't use Python3's f-strings in buildozer 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done! I wish you wrote some tests.
Dare to give it a try?
Thank you! I'll give it a try. |
Great to hear, you could look into |
Co-authored-by: Pol Canelles <canellestudi@gmail.com>
@@ -53,7 +53,7 @@ def init_buildozer(temp_dir, target, options=None): | |||
spec = [] | |||
for line in default_spec: | |||
if line.strip(): | |||
match = re.search(r"[#\s]?([a-z_\.]+)", line) | |||
match = re.search(r"[#\s]?([0-9a-z_.]+)", line) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is needed to match "p4a", as it contains digit.
@AndreMiras, tests were added. Could you please check them? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent work with the tests, that's exactly what I was expecting 👏
Thank you for taking time on this as well 🙏
@AndreMiras , @opacam , thank you very much! |
Currently it's not possible to set own p4a mirror (not a fork on GitHub) in buildozer.spec.
This possibility already exists for kivy_ios, but not for p4a.
This PR allows to setting custom URL for p4a in the spec, instead of simply specifying fork.
The URL is used at first place. If no URL is specified, then fallback to github fork happens:
Backward compatibility with old specs is preserved with no behavioral changes.