diff --git a/setup.py b/setup.py index f22aeec80c..d59d630797 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,6 @@ from io import open # for open(..,encoding=...) parameter in python 2 from os import walk from os.path import join, dirname, sep -import os import re from setuptools import setup, find_packages @@ -17,7 +16,6 @@ data_files = [] - # must be a single statement since buildozer is currently parsing it, refs: # https://github.com/kivy/buildozer/issues/722 install_reqs = [ @@ -27,6 +25,7 @@ ] # (pep517 and toml are used by pythonpackage.py) + # By specifying every file manually, package_data will be able to # include them in binary distributions. Note that we have to add # everything as a 'pythonforandroid' rule, using '' apparently doesn't @@ -42,6 +41,7 @@ def recursively_include(results, directory, patterns): results[directory] = [] results[directory].append(join(*filename.split(sep)[1:])) + recursively_include(package_data, 'pythonforandroid/recipes', ['*.patch', 'Setup*', '*.pyx', '*.py', '*.c', '*.h', '*.mk', '*.jam', ]) @@ -104,7 +104,7 @@ def recursively_include(results, directory, patterns): 'aar = pythonforandroid.bdistapk:BdistAAR', ], }, - classifiers = [ + classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', diff --git a/tox.ini b/tox.ini index 4e69dd89b6..76da905c69 100644 --- a/tox.ini +++ b/tox.ini @@ -22,7 +22,7 @@ commands = [testenv:pep8] deps = flake8 -commands = flake8 pythonforandroid/ tests/ ci/ +commands = flake8 pythonforandroid/ tests/ ci/ setup.py [flake8] ignore =