|
12 | 12 | def find_version(*file_paths):
|
13 | 13 | # Open in Latin-1 so that we avoid encoding errors.
|
14 | 14 | # Use codecs.open for Python 2 compatibility
|
15 |
| - with codecs.open(os.path.join(here, *file_paths), 'r', 'latin1') as f: |
| 15 | + with codecs.open(os.path.join(here, *file_paths), "r", "latin1") as f: |
16 | 16 | version_file = f.read()
|
17 | 17 |
|
18 | 18 | # The version line must have the form
|
19 | 19 | # __version__ = 'ver'
|
20 |
| - version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", |
21 |
| - version_file, re.M) |
| 20 | + version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M) |
22 | 21 | if version_match:
|
23 | 22 | return version_match.group(1)
|
24 | 23 | raise RuntimeError("Unable to find version string.")
|
25 | 24 |
|
| 25 | + |
26 | 26 | # Get the long description from the relevant file
|
27 |
| -with codecs.open('README.rst', encoding='utf-8') as f: |
| 27 | +with codecs.open("README.rst", encoding="utf-8") as f: |
28 | 28 | long_description = f.read()
|
29 | 29 |
|
30 |
| -install_requires = [ |
31 |
| - 'requests', |
32 |
| - 'six', |
33 |
| - 'pytz', |
34 |
| - 'python-jose', |
35 |
| - 'rsa>=4.7' |
36 |
| -] |
| 30 | +install_requires = ["requests", "six", "pytz", "python-jose", "rsa>=4.7"] |
37 | 31 |
|
38 | 32 | setup(
|
39 |
| - name = 'opentok', |
40 |
| - version = find_version('opentok', 'version.py'), |
41 |
| - description = 'OpenTok server-side SDK', |
42 |
| - long_description_content_type='text/x-rst', |
43 |
| - url='https://github.com/opentok/Opentok-Python-SDK/', |
| 33 | + name="opentok", |
| 34 | + version=find_version("opentok", "version.py"), |
| 35 | + description="OpenTok server-side SDK", |
| 36 | + long_description_content_type="text/x-rst", |
| 37 | + url="https://github.com/opentok/Opentok-Python-SDK/", |
44 | 38 | long_description=long_description,
|
45 |
| - |
46 |
| - author='TokBox, Inc.', |
47 |
| - |
48 |
| - license='LICENSE.txt', |
49 |
| - |
50 |
| - classifiers = [ |
51 |
| - 'Development Status :: 5 - Production/Stable', |
52 |
| - |
53 |
| - 'Intended Audience :: Developers', |
54 |
| - 'Intended Audience :: Telecommunications Industry', |
55 |
| - |
56 |
| - 'License :: OSI Approved :: MIT License', |
57 |
| - |
58 |
| - 'Programming Language :: Python :: 3', |
59 |
| - 'Programming Language :: Python :: 3.5', |
60 |
| - 'Programming Language :: Python :: 3.6', |
61 |
| - 'Programming Language :: Python :: 3.7', |
62 |
| - 'Programming Language :: Python :: 3.8', |
63 |
| - 'Programming Language :: Python :: 3.9', |
64 |
| - |
65 |
| - 'Topic :: Communications', |
66 |
| - 'Topic :: Communications :: Chat', |
67 |
| - 'Topic :: Communications :: Conferencing', |
68 |
| - 'Topic :: Multimedia :: Video :: Capture', |
69 |
| - 'Topic :: Multimedia :: Video :: Display', |
70 |
| - 'Topic :: Multimedia :: Sound/Audio :: Players', |
71 |
| - 'Topic :: Multimedia :: Sound/Audio :: Capture/Recording', |
72 |
| - 'Topic :: Software Development :: Libraries :: Python Modules' |
| 39 | + author="TokBox, Inc.", |
| 40 | + |
| 41 | + license="LICENSE.txt", |
| 42 | + classifiers=[ |
| 43 | + "Development Status :: 5 - Production/Stable", |
| 44 | + "Intended Audience :: Developers", |
| 45 | + "Intended Audience :: Telecommunications Industry", |
| 46 | + "License :: OSI Approved :: MIT License", |
| 47 | + "Programming Language :: Python :: 3", |
| 48 | + "Programming Language :: Python :: 3.5", |
| 49 | + "Programming Language :: Python :: 3.6", |
| 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 | + "Programming Language :: Python :: 3.12", |
| 56 | + "Topic :: Communications", |
| 57 | + "Topic :: Communications :: Chat", |
| 58 | + "Topic :: Communications :: Conferencing", |
| 59 | + "Topic :: Multimedia :: Video :: Capture", |
| 60 | + "Topic :: Multimedia :: Video :: Display", |
| 61 | + "Topic :: Multimedia :: Sound/Audio :: Players", |
| 62 | + "Topic :: Multimedia :: Sound/Audio :: Capture/Recording", |
| 63 | + "Topic :: Software Development :: Libraries :: Python Modules", |
73 | 64 | ],
|
74 |
| - |
75 |
| - keywords = 'video chat tokbox tok opentok python media webrtc archiving realtime', |
76 |
| - |
| 65 | + keywords="video chat tokbox tok opentok python media webrtc archiving realtime", |
77 | 66 | packages=find_packages(exclude=["contrib", "docs", "tests*"]),
|
78 |
| - |
79 | 67 | install_requires=install_requires,
|
80 |
| - |
81 |
| - include_package_data = True, |
| 68 | + include_package_data=True, |
82 | 69 | )
|
0 commit comments