-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathsetup.py
47 lines (42 loc) · 1.35 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import os, codecs, re
from setuptools import setup, find_packages
HERE = os.path.abspath(os.path.dirname(__file__))
def read(*file_paths):
"""Read file data."""
with codecs.open(os.path.join(HERE, *file_paths), "r") as file_in:
return file_in.read()
def get_version():
content = read('signalwire/__init__.py')
match = re.search(r"^__version__ = '(.*)'$", content, re.MULTILINE)
if match:
return match.group(1)
raise RuntimeError('Unable to find package version!')
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: Telecommunications Industry',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Topic :: Communications',
'Topic :: Software Development'
]
setup(
name='signalwire',
version=get_version(),
description='Client library for connecting to SignalWire.',
long_description=read('README.md'),
long_description_content_type="text/markdown",
classifiers=CLASSIFIERS,
url='https://github.com/signalwire/signalwire-python',
author='SignalWire Team',
author_email='[email protected]',
license='MIT',
packages=find_packages(exclude=['tests', 'tests.*']),
install_requires=[
'twilio==6.54.0',
'aiohttp==3.9.5',
],
python_requires='>=3.6',
zip_safe=False
)