From fd6ae27c77bfc45d4a19268c55711374db512e10 Mon Sep 17 00:00:00 2001 From: Sam McCormack <20987172+TheGreatCabbage@users.noreply.github.com> Date: Wed, 11 Nov 2020 19:55:50 +0000 Subject: [PATCH] Fix regex, format with Black --- setup.py | 61 +++++++++++++++++++++++++++++--------------------------- 1 file changed, 32 insertions(+), 29 deletions(-) diff --git a/setup.py b/setup.py index ee10186..093c68b 100644 --- a/setup.py +++ b/setup.py @@ -3,43 +3,46 @@ from setuptools import setup -with open('qasync/__init__.py') as f: - version = re.search(r'__version__\s+=\s+\'(.*)\'', f.read()).group(1) +with open("qasync/__init__.py") as f: + version = re.search(r'__version__\s+=\s+"(.*)"', f.read()).group(1) -desc_path = os.path.join(os.path.dirname(__file__), 'README.md') -with open(desc_path, encoding='utf8') as desc_file: +desc_path = os.path.join(os.path.dirname(__file__), "README.md") +with open(desc_path, encoding="utf8") as desc_file: long_description = desc_file.read() setup( - name='qasync', + name="qasync", version=version, - url='https://github.com/CabbageDevelopment/qasync', - author=', '.join(('Sam McCormack', - 'Gerard Marull-Paretas', - 'Mark Harviston', - 'Arve Knudsen')), - author_email=', '.join(('contact@cabbagedevelopment.com', - 'gerard@teslabs.com', - 'mark.harviston@gmail.com', - 'arve.knudsen@gmail.com')), - packages=['qasync'], + url="https://github.com/CabbageDevelopment/qasync", + author=", ".join( + ("Sam McCormack", "Gerard Marull-Paretas", "Mark Harviston", "Arve Knudsen") + ), + author_email=", ".join( + ( + "contact@cabbagedevelopment.com", + "gerard@teslabs.com", + "mark.harviston@gmail.com", + "arve.knudsen@gmail.com", + ) + ), + packages=["qasync"], python_requires="~=3.6", - license='BSD', - description='Implementation of the PEP 3156 Event-Loop with Qt.', + license="BSD", + description="Implementation of the PEP 3156 Event-Loop with Qt.", long_description=long_description, long_description_content_type="text/markdown", - keywords=['Qt', 'asyncio'], + keywords=["Qt", "asyncio"], classifiers=[ - 'Development Status :: 4 - Beta', - 'License :: OSI Approved :: BSD License', - 'Intended Audience :: Developers', - 'Operating System :: Microsoft :: Windows', - 'Operating System :: MacOS :: MacOS X', - 'Operating System :: POSIX', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3 :: Only', - 'Environment :: X11 Applications :: Qt', + "Development Status :: 4 - Beta", + "License :: OSI Approved :: BSD License", + "Intended Audience :: Developers", + "Operating System :: Microsoft :: Windows", + "Operating System :: MacOS :: MacOS X", + "Operating System :: POSIX", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3 :: Only", + "Environment :: X11 Applications :: Qt", ], )