|
3 | 3 |
|
4 | 4 | from setuptools import setup
|
5 | 5 |
|
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) |
8 | 8 |
|
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: |
11 | 11 | long_description = desc_file.read()
|
12 | 12 |
|
13 | 13 | setup(
|
14 |
| - name='qasync', |
| 14 | + name="qasync", |
15 | 15 | 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"], |
26 | 29 | 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.", |
29 | 32 | long_description=long_description,
|
30 | 33 | long_description_content_type="text/markdown",
|
31 |
| - keywords=['Qt', 'asyncio'], |
| 34 | + keywords=["Qt", "asyncio"], |
32 | 35 | 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", |
44 | 47 | ],
|
45 | 48 | )
|
0 commit comments