Skip to content

Commit 7f2a926

Browse files
committed
Style fixes
1 parent 8decc12 commit 7f2a926

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed

pythonforandroid/entrypoints.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from pythonforandroid.recommendations import check_python_version
22
from pythonforandroid.util import BuildInterruptingException, handle_build_exception
33

4+
45
def main():
56
"""
67
Main entrypoint for running python-for-android as a script.

pythonforandroid/recommendations.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ def check_target_api(api, arch):
171171
'higher than the target Android API {android_api}.'
172172
)
173173

174+
174175
def check_ndk_api(ndk_api, android_api):
175176
"""Warn if the user's NDK is too high or low."""
176177
if ndk_api > android_api:
@@ -184,6 +185,7 @@ def check_ndk_api(ndk_api, android_api):
184185
if ndk_api < MIN_NDK_API:
185186
warning(OLD_NDK_API_MESSAGE)
186187

188+
187189
MIN_PYTHON_MAJOR_VERSION = 3
188190
MIN_PYTHON_MINOR_VERSION = 6
189191
MIN_PYTHON_VERSION = LooseVersion('{major}.{minor}'.format(major=MIN_PYTHON_MAJOR_VERSION,
@@ -202,6 +204,7 @@ def check_ndk_api(ndk_api, android_api):
202204
user_minor=sys.version_info.minor,
203205
min_version=MIN_PYTHON_VERSION)
204206

207+
205208
def check_python_version():
206209
if sys.version_info.major < MIN_PYTHON_MAJOR_VERSION:
207210
raise BuildInterruptingException(PY2_ERROR_TEXT)

pythonforandroid/toolchain.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
from pythonforandroid import __version__
1212
from pythonforandroid.pythonpackage import get_dep_names_of_package
1313
from pythonforandroid.recommendations import (
14-
RECOMMENDED_NDK_API, RECOMMENDED_TARGET_API, check_python_version)
15-
from pythonforandroid.util import BuildInterruptingException, handle_build_exception
14+
RECOMMENDED_NDK_API, RECOMMENDED_TARGET_API)
15+
from pythonforandroid.util import BuildInterruptingException
1616
from pythonforandroid.entrypoints import main
1717

1818

@@ -101,6 +101,7 @@ def check_python_dependencies():
101101
toolchain_dir = dirname(__file__)
102102
sys.path.insert(0, join(toolchain_dir, "tools", "external"))
103103

104+
104105
def add_boolean_option(parser, names, no_names=None,
105106
default=True, dest=None, description=None):
106107
group = parser.add_argument_group(description=description)

pythonforandroid/util.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from os import getcwd, chdir, makedirs, walk, uname
44
import sh
55
import shutil
6-
import sys
76
from fnmatch import fnmatch
87
from tempfile import mkdtemp
98

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
data_files = []
1818

1919

20+
2021
# must be a single statement since buildozer is currently parsing it, refs:
2122
# https://github.com/kivy/buildozer/issues/722
2223
install_reqs = [

0 commit comments

Comments
 (0)