Fix style issues in setup.py
#!/usr/bin/env python
+'''
+Setup.py
+========
+
+For MacOS or iOS install additional dependency PyOBJus::
+
+ pip install https://github.com/kivy/pyobjus/zipball/master
+
+For Android install additional dependency PyJNIus::
+
+ pip install https://github.com/kivy/pyjnius/zipball/master
+'''
from os.path import dirname, join
import plyer
@@ -8,8 +20,8 @@ try:
except ImportError:
from distutils.core import setup
-curdir = dirname(__file__)
-packages = [
+CURDIR = dirname(__file__)
+PACKAGES = [
'plyer',
'plyer.facades',
'plyer.platforms',
@@ -22,24 +34,24 @@ packages = [
'plyer.platforms.macosx.libs',
]
-with open(join(curdir, "README.rst")) as fd:
- readme = fd.read()
-with open(join(curdir, "CHANGELOG.md")) as fd:
- changelog = fd.read()
+with open(join(CURDIR, "README.rst")) as fd:
+ README = fd.read()
+with open(join(CURDIR, "CHANGELOG.md")) as fd:
+ CHANGELOG = fd.read()
setup(
name='plyer',
version=plyer.__version__,
description='Platform-independent wrapper for platform-dependent APIs',
- long_description=readme + "\n\n" + changelog,
+ long_description=README + "\n\n" + CHANGELOG,
author='Kivy team',
author_email='mat@kivy.org',
url='https://plyer.readthedocs.org/en/latest/',
- packages=packages,
+ packages=PACKAGES,
package_data={'': ['LICENSE', 'README.rst']},
package_dir={'plyer': 'plyer'},
include_package_data=True,
- license=open(join(curdir, 'LICENSE')).read(),
+ license=open(join(CURDIR, 'LICENSE')).read(),
zip_safe=False,
classifiers=[
'Development Status :: 4 - Beta',
