Kivy Test Suite
-
Install dependencies for system:
-
Install packages with Apt:
sudo apt-get update sudo apt-get install -y \ zlib1g-dev \ openjdk-17-jdk \ unzip \ build-essential \ autoconf \ automake \ libtool \ git \ python3-pip \ python3-dev \ libssl-dev \ libffi-dev \ libxml2-dev \ libxslt1-dev \ libncurses5-dev \ libsqlite3-dev \ libreadline-dev \ libbz2-dev \ liblzma-dev \ libgdbm-dev \ libdb-dev \ libpcap-dev \ cmake \ pkg-config \ zip -
Install pipenv:
pip install pipenv
-
-
To install dependencies:
pipenv install
To run:
pipenv run python src/main.py
-
To make changes to requirements.txt, change the file and then:
deactivate pipenv --rm rm Pipfile.lock rm Pipfile pipenv install # to use the new requirements.txt -
To enter bash in the virtual environment:
pipenv shell
-
To Activate or Source the environment and not have to prepend each command with pipenv:
On Linux:
source $(pipenv --venv)/bin/activate
On Windows (Powershell):
& "$(pipenv --venv)\Scripts\activate.ps1"
-
To Deactivate:
deactivate
buildozer initEdit the buildozer.spec file to include the following:
[app]
title = My Kivy App
package.name = mykivyapp
package.domain = org.test
source.dir = src
source.include_exts = py,png,jpg,kv,atlas
version = 0.1
requirements = python3,kivy
orientation = portrait
osx.python_version = 3
osx.kivy_version = 1.9.1
fullscreen = 0
android.archs = arm64-v8a
android.allow_backup = True
ios.kivy_ios_url = https://github.com/kivy/kivy-ios
ios.kivy_ios_branch = master
ios.ios_deploy_url = https://github.com/phonegap/ios-deploy
ios.ios_deploy_branch = 1.10.0
ios.codesign.allowed = false
[buildozer]
log_level = 2
warn_on_root = 1buildozer -v android debugIf run into an issue with .buildozer/android/platform/android-sdk/tools/bin/sdkmanager" does not exist, sdkmanager is notinstalled:
-
Remove the .buildozer directory:
rm -r ~/.buildozer/ -
Then run the buildozer command again:
buildozer -v android debug
If run into other errors, clean and rebuild
buildozer android clean
buildozer android debug