|
8 | 8 |
|
9 | 9 | description = "An implementation of the WebSocket Protocol (RFC 6455 & 7692)"
|
10 | 10 |
|
11 |
| -long_description = (root_dir / 'README.rst').read_text(encoding='utf-8') |
| 11 | +long_description = (root_dir / "README.rst").read_text(encoding="utf-8") |
12 | 12 |
|
13 | 13 | # PyPI disables the "raw" directive.
|
14 | 14 | long_description = re.sub(
|
|
18 | 18 | flags=re.DOTALL | re.MULTILINE,
|
19 | 19 | )
|
20 | 20 |
|
21 |
| -exec((root_dir / 'src' / 'websockets' / 'version.py').read_text(encoding='utf-8')) |
| 21 | +exec((root_dir / "src" / "websockets" / "version.py").read_text(encoding="utf-8")) |
22 | 22 |
|
23 |
| -packages = ['websockets', 'websockets/legacy', 'websockets/extensions'] |
| 23 | +packages = ["websockets", "websockets/legacy", "websockets/extensions"] |
24 | 24 |
|
25 | 25 | ext_modules = [
|
26 | 26 | setuptools.Extension(
|
27 |
| - 'websockets.speedups', |
28 |
| - sources=['src/websockets/speedups.c'], |
29 |
| - optional=not (root_dir / '.cibuildwheel').exists(), |
| 27 | + "websockets.speedups", |
| 28 | + sources=["src/websockets/speedups.c"], |
| 29 | + optional=not (root_dir / ".cibuildwheel").exists(), |
30 | 30 | )
|
31 | 31 | ]
|
32 | 32 |
|
33 | 33 | setuptools.setup(
|
34 |
| - name='websockets', |
| 34 | + name="websockets", |
35 | 35 | version=version,
|
36 | 36 | description=description,
|
37 | 37 | long_description=long_description,
|
38 |
| - url='https://github.com/aaugustin/websockets', |
39 |
| - author='Aymeric Augustin', |
40 |
| - |
41 |
| - license='BSD', |
| 38 | + url="https://github.com/aaugustin/websockets", |
| 39 | + author="Aymeric Augustin", |
| 40 | + |
| 41 | + license="BSD", |
42 | 42 | classifiers=[
|
43 |
| - 'Development Status :: 5 - Production/Stable', |
44 |
| - 'Environment :: Web Environment', |
45 |
| - 'Intended Audience :: Developers', |
46 |
| - 'License :: OSI Approved :: BSD License', |
47 |
| - 'Operating System :: OS Independent', |
48 |
| - 'Programming Language :: Python', |
49 |
| - 'Programming Language :: Python :: 3', |
50 |
| - 'Programming Language :: Python :: 3.7', |
51 |
| - 'Programming Language :: Python :: 3.8', |
52 |
| - 'Programming Language :: Python :: 3.9', |
53 |
| - 'Programming Language :: Python :: 3.10', |
54 |
| - 'Programming Language :: Python :: 3.11', |
| 43 | + "Development Status :: 5 - Production/Stable", |
| 44 | + "Environment :: Web Environment", |
| 45 | + "Intended Audience :: Developers", |
| 46 | + "License :: OSI Approved :: BSD License", |
| 47 | + "Operating System :: OS Independent", |
| 48 | + "Programming Language :: Python", |
| 49 | + "Programming Language :: Python :: 3", |
| 50 | + "Programming Language :: Python :: 3.7", |
| 51 | + "Programming Language :: Python :: 3.8", |
| 52 | + "Programming Language :: Python :: 3.9", |
| 53 | + "Programming Language :: Python :: 3.10", |
| 54 | + "Programming Language :: Python :: 3.11", |
55 | 55 | ],
|
56 |
| - package_dir = {'': 'src'}, |
57 |
| - package_data = {'websockets': ['py.typed']}, |
| 56 | + package_dir={"": "src"}, |
| 57 | + package_data={"websockets": ["py.typed"]}, |
58 | 58 | packages=packages,
|
59 | 59 | ext_modules=ext_modules,
|
60 | 60 | include_package_data=True,
|
61 | 61 | zip_safe=False,
|
62 |
| - python_requires='>=3.7', |
63 |
| - test_loader='unittest:TestLoader', |
| 62 | + python_requires=">=3.7", |
| 63 | + test_loader="unittest:TestLoader", |
64 | 64 | )
|
0 commit comments