-
Notifications
You must be signed in to change notification settings - Fork 602
Split default spec into sections #1986
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
base: master
Are you sure you want to change the base?
Conversation
|
Android integration seems to be failing because Buildozer doesn't automatically accept the licenses. |
|
--- a/setup.py
+++ b/setup.py
@@ -68,7 +68,7 @@ setup(
packages=[
'buildozer', 'buildozer.targets', 'buildozer.libs', 'buildozer.scripts'
],
- package_data={'buildozer': ['default.spec']},
+ package_data={'buildozer': ['default*.*']},
include_package_data=True,
install_requires=[
'pexpect', |
|
Android CI fails because of the leading space in the commented SDK-license line. Removing that space (as in this patch) fixes the sed match. diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml
index 65c8f63..c1d9a9f 100644
--- a/.github/workflows/android.yml
+++ b/.github/workflows/android.yml
@@ -30,7 +30,7 @@ jobs:
- run: buildozer init
- name: SDK, NDK, and p4a download
run: |
- sed -i.bak "s/# android.accept_sdk_license = False/android.accept_sdk_license = True/" buildozer.spec
+ sed -i.bak "s/#android.accept_sdk_license = False/android.accept_sdk_license = True/" buildozer.spec
sed -i.bak "s/#p4a.branch = master/p4a.branch = develop/" buildozer.spec
buildozer android p4a -- --help
# Install OS specific dependencies |
|
Good catch @T-Dynamos ! Now it's just iOS that is failing.. |
|
It might be useful to add a |
|
Added that + possible cure for the deploy part for the ios part. |
|
PR is ready for review. |
T-Dynamos
left a comment
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 - Great work!
First attempt on splitting the default spec so the user will only be greeted with the minimal spec file if just running
buildozer init.Usage:
-
buildozer init-
buildozer init android-
buildozer init android --no-comments-
buildozer init ios-
buildozer init ios --no-docs-
buildozer init osxEach options includes the documentation and default text to the
buildozer.specfile and also aware not to include duplicates just to make it easier for the user.These steps involves making it easier in the future for the developers to change default values without messing up the documentations.
With this PR I have also updated the default values to match our daily usage with Buildozer.