Replace yapf with black as formatter

This commit is contained in:
Milan Stute
2020-11-30 19:52:15 +01:00
parent 5e2ff4210f
commit c926eaf710
13 changed files with 480 additions and 319 deletions
+30 -23
View File
@@ -4,41 +4,48 @@ from os.path import abspath, dirname, join
from setuptools import find_packages, setup
this_dir = abspath(dirname(__file__))
with open(join(this_dir, 'README.md'), encoding='utf-8') as file:
with open(join(this_dir, "README.md"), encoding="utf-8") as file:
long_description = file.read()
setup(
name='opendrop',
name="opendrop",
version=__version__,
python_requires='>=3.6',
description='An open Apple AirDrop implementation',
python_requires=">=3.6",
description="An open Apple AirDrop implementation",
long_description=long_description,
long_description_content_type='text/markdown',
url='https://owlink.org',
long_description_content_type="text/markdown",
url="https://owlink.org",
project_urls={
'Source': 'https://github.com/seemoo-lab/opendrop',
'Research Paper': 'https://usenix.org/conference/usenixsecurity19/presentation/stute',
"Source": "https://github.com/seemoo-lab/opendrop",
"Research Paper": "https://usenix.org/conference/usenixsecurity19/presentation/stute",
},
author='The Open Wireless Link Project',
author_email='mstute@seemoo.tu-darmstadt.de',
author="The Open Wireless Link Project",
author_email="mstute@seemoo.tu-darmstadt.de",
classifiers=[
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: MacOS',
'Operating System :: POSIX :: Linux',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
],
keywords='cli',
packages=find_packages(exclude=['docs']),
package_data={'opendrop': ['certs/*.pem']},
keywords="cli",
packages=find_packages(exclude=["docs"]),
package_data={"opendrop": ["certs/*.pem"]},
install_requires=[
'Pillow', 'ctypescrypto', 'fleep', 'ifaddr', 'libarchive-c', 'requests', 'requests_toolbelt', 'zeroconf>=0.24.2'
"Pillow",
"ctypescrypto",
"fleep",
"ifaddr",
"libarchive-c",
"requests",
"requests_toolbelt",
"zeroconf>=0.24.2",
],
entry_points={
'console_scripts': [
'opendrop=opendrop.cli:main',
"console_scripts": [
"opendrop=opendrop.cli:main",
],
},
)