Run black on entire project

This commit is contained in:
Sumner Evans
2020-04-23 20:17:45 -06:00
parent e5b3e659ff
commit 0ed2c266d8
52 changed files with 2603 additions and 2917 deletions

View File

@@ -5,83 +5,72 @@ from setuptools import find_packages, setup
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
with codecs.open(os.path.join(here, "README.rst"), encoding="utf-8") as f:
long_description = f.read()
# Find the version
with codecs.open(os.path.join(here, 'sublime/__init__.py'),
encoding='utf-8') as f:
with codecs.open(os.path.join(here, "sublime/__init__.py"), encoding="utf-8") as f:
for line in f:
if line.startswith('__version__'):
if line.startswith("__version__"):
version = eval(line.split()[-1])
break
setup(
name='sublime-music',
name="sublime-music",
version=version,
url='https://gitlab.com/sumner/sublime-music',
description='A native GTK *sonic client.',
url="https://gitlab.com/sumner/sublime-music",
description="A native GTK *sonic client.",
long_description=long_description,
author='Sumner Evans',
author_email='inquiries@sumnerevans.com',
license='GPL3',
author="Sumner Evans",
author_email="inquiries@sumnerevans.com",
license="GPL3",
classifiers=[
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 3 - Alpha',
"Development Status :: 3 - Alpha",
# Indicate who your project is intended for
'Intended Audience :: End Users/Desktop',
'Operating System :: POSIX',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
"Intended Audience :: End Users/Desktop",
"Operating System :: POSIX",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
],
keywords='airsonic subsonic libresonic gonic music',
packages=find_packages(exclude=['tests']),
keywords="airsonic subsonic libresonic gonic music",
packages=find_packages(exclude=["tests"]),
package_data={
'sublime': [
'ui/app_styles.css',
'ui/images/play-queue-play.png',
'ui/images/default-album-art.png',
'dbus/mpris_specs/org.mpris.MediaPlayer2.xml',
'dbus/mpris_specs/org.mpris.MediaPlayer2.Player.xml',
'dbus/mpris_specs/org.mpris.MediaPlayer2.Playlists.xml',
'dbus/mpris_specs/org.mpris.MediaPlayer2.TrackList.xml',
"sublime": [
"ui/app_styles.css",
"ui/images/play-queue-play.png",
"ui/images/default-album-art.png",
"dbus/mpris_specs/org.mpris.MediaPlayer2.xml",
"dbus/mpris_specs/org.mpris.MediaPlayer2.Player.xml",
"dbus/mpris_specs/org.mpris.MediaPlayer2.Playlists.xml",
"dbus/mpris_specs/org.mpris.MediaPlayer2.TrackList.xml",
]
},
install_requires=[
'bottle',
'dataclasses-json @ git+https://github.com/sumnerevans/dataclasses-json@cc2eaeb#egg=dataclasses-json', # noqa: E501
'deepdiff',
'Deprecated',
'fuzzywuzzy',
"bottle",
"dataclasses-json @ git+https://github.com/sumnerevans/dataclasses-json@cc2eaeb#egg=dataclasses-json", # noqa: E501
"deepdiff",
"Deprecated",
"fuzzywuzzy",
'osxmmkeys ; sys_platform=="darwin"',
'peewee',
'pychromecast',
'PyGObject',
'python-dateutil',
'python-Levenshtein',
'python-mpv',
'pyyaml',
'requests',
"peewee",
"pychromecast",
"PyGObject",
"python-dateutil",
"python-Levenshtein",
"python-mpv",
"pyyaml",
"requests",
],
extras_require={
"keyring": ["keyring"],
},
extras_require={"keyring": ["keyring"]},
# To provide executable scripts, use entry points in preference to the
# "scripts" keyword. Entry points provide cross-platform support and
# allow pip to create the appropriate form of executable for the target
# platform.
entry_points={
'console_scripts': [
'sublime-music=sublime.__main__:main',
],
},
entry_points={"console_scripts": ["sublime-music=sublime.__main__:main"]},
)