Skip to content

Commit fd6ae27

Browse files
Fix regex, format with Black
1 parent 3ea21bc commit fd6ae27

File tree

1 file changed

+32
-29
lines changed

1 file changed

+32
-29
lines changed

setup.py

Lines changed: 32 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,43 +3,46 @@
33

44
from setuptools import setup
55

6-
with open('qasync/__init__.py') as f:
7-
version = re.search(r'__version__\s+=\s+\'(.*)\'', f.read()).group(1)
6+
with open("qasync/__init__.py") as f:
7+
version = re.search(r'__version__\s+=\s+"(.*)"', f.read()).group(1)
88

9-
desc_path = os.path.join(os.path.dirname(__file__), 'README.md')
10-
with open(desc_path, encoding='utf8') as desc_file:
9+
desc_path = os.path.join(os.path.dirname(__file__), "README.md")
10+
with open(desc_path, encoding="utf8") as desc_file:
1111
long_description = desc_file.read()
1212

1313
setup(
14-
name='qasync',
14+
name="qasync",
1515
version=version,
16-
url='https://github.com/CabbageDevelopment/qasync',
17-
author=', '.join(('Sam McCormack',
18-
'Gerard Marull-Paretas',
19-
'Mark Harviston',
20-
'Arve Knudsen')),
21-
author_email=', '.join(('contact@cabbagedevelopment.com',
22-
'gerard@teslabs.com',
23-
'mark.harviston@gmail.com',
24-
'arve.knudsen@gmail.com')),
25-
packages=['qasync'],
16+
url="https://github.com/CabbageDevelopment/qasync",
17+
author=", ".join(
18+
("Sam McCormack", "Gerard Marull-Paretas", "Mark Harviston", "Arve Knudsen")
19+
),
20+
author_email=", ".join(
21+
(
22+
"contact@cabbagedevelopment.com",
23+
"gerard@teslabs.com",
24+
"mark.harviston@gmail.com",
25+
"arve.knudsen@gmail.com",
26+
)
27+
),
28+
packages=["qasync"],
2629
python_requires="~=3.6",
27-
license='BSD',
28-
description='Implementation of the PEP 3156 Event-Loop with Qt.',
30+
license="BSD",
31+
description="Implementation of the PEP 3156 Event-Loop with Qt.",
2932
long_description=long_description,
3033
long_description_content_type="text/markdown",
31-
keywords=['Qt', 'asyncio'],
34+
keywords=["Qt", "asyncio"],
3235
classifiers=[
33-
'Development Status :: 4 - Beta',
34-
'License :: OSI Approved :: BSD License',
35-
'Intended Audience :: Developers',
36-
'Operating System :: Microsoft :: Windows',
37-
'Operating System :: MacOS :: MacOS X',
38-
'Operating System :: POSIX',
39-
'Programming Language :: Python :: 3.6',
40-
'Programming Language :: Python :: 3.7',
41-
'Programming Language :: Python :: 3.8',
42-
'Programming Language :: Python :: 3 :: Only',
43-
'Environment :: X11 Applications :: Qt',
36+
"Development Status :: 4 - Beta",
37+
"License :: OSI Approved :: BSD License",
38+
"Intended Audience :: Developers",
39+
"Operating System :: Microsoft :: Windows",
40+
"Operating System :: MacOS :: MacOS X",
41+
"Operating System :: POSIX",
42+
"Programming Language :: Python :: 3.6",
43+
"Programming Language :: Python :: 3.7",
44+
"Programming Language :: Python :: 3.8",
45+
"Programming Language :: Python :: 3 :: Only",
46+
"Environment :: X11 Applications :: Qt",
4447
],
4548
)

0 commit comments

Comments
 (0)