Skip to content

Commit c04727c

Browse files
committed
PEP8 fixes
1 parent fb62997 commit c04727c

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

setup.py

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
def recursively_include(results, directory, patterns):
3535
for root, subfolders, files in walk(directory):
3636
for fn in files:
37-
if not any(glob.fnmatch.fnmatch(fn, pattern) for pattern in patterns):
37+
if not any(
38+
glob.fnmatch.fnmatch(fn, pattern) for pattern in patterns):
3839
continue
3940
filename = join(root, fn)
4041
directory = 'pythonforandroid'
@@ -47,9 +48,12 @@ def recursively_include(results, directory, patterns):
4748
['*.patch', 'Setup*', '*.pyx', '*.py', '*.c', '*.h',
4849
'*.mk', '*.jam', '*.diff', ])
4950
recursively_include(package_data, 'pythonforandroid/bootstraps',
50-
['*.properties', '*.xml', '*.java', '*.tmpl', '*.txt', '*.png',
51-
'*.mk', '*.c', '*.h', '*.py', '*.sh', '*.jpg', '*.aidl',
52-
'*.gradle', '.gitkeep', 'gradlew*', '*.jar', "*.patch", ])
51+
[
52+
'*.properties', '*.xml', '*.java', '*.tmpl', '*.txt',
53+
'*.png', '*.mk', '*.c', '*.h', '*.py', '*.sh', '*.jpg',
54+
'*.aidl', '*.gradle', '.gitkeep', 'gradlew*', '*.jar',
55+
'*.patch',
56+
])
5357
recursively_include(package_data, 'pythonforandroid/bootstraps',
5458
['sdl-config', ])
5559
recursively_include(package_data, 'pythonforandroid/bootstraps/webview',
@@ -59,17 +63,15 @@ def recursively_include(results, directory, patterns):
5963

6064
with open(join(dirname(__file__), 'README.md'),
6165
encoding="utf-8",
62-
errors="replace",
63-
) as fileh:
66+
errors="replace", ) as fileh:
6467
long_description = fileh.read()
6568

6669
init_filen = join(dirname(__file__), 'pythonforandroid', '__init__.py')
6770
version = None
6871
try:
6972
with open(init_filen,
7073
encoding="utf-8",
71-
errors="replace"
72-
) as fileh:
74+
errors="replace") as fileh:
7375
lines = fileh.readlines()
7476
except IOError:
7577
pass
@@ -82,12 +84,15 @@ def recursively_include(results, directory, patterns):
8284
version = matches[0].strip("'").strip('"')
8385
break
8486
if version is None:
85-
raise Exception('Error: version could not be loaded from {}'.format(init_filen))
87+
raise Exception(
88+
'Error: version could not be loaded from {}'.format(init_filen))
8689

8790
setup(name='python-for-android',
8891
version=version,
89-
description='A development tool that packages Python apps into '
90-
'binaries that can run on Android devices.',
92+
description=(
93+
'A development tool that packages Python apps into '
94+
'binaries that can run on Android devices.'
95+
),
9196
long_description=long_description,
9297
long_description_content_type='text/markdown',
9398
python_requires=">=3.7.0",

0 commit comments

Comments
 (0)