-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
47 lines (35 loc) · 1.25 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
import os
import re
from setuptools import setup, find_packages
VERSION_RE = re.compile(r"""__version__ = ['"]([0-9.]+)['"]""")
HERE = os.path.abspath(os.path.dirname(__file__))
def read(*args):
"""Reads complete file contents."""
return open(os.path.join(HERE, *args)).read()
def get_version():
"""Reads the version from this module."""
init = read('amazon_connect_decryption_lib', '__init__.py')
return VERSION_RE.search(init).group(1)
def get_requirements():
"""Reads the requirements file."""
requirements = read("requirements.txt")
return list(requirements.strip().splitlines())
setup(
name='amazon-connect-decryption-lib',
packages=find_packages(),
version=get_version(),
url='https://github.com/shinsaka/amazon-connect-decryption-lib',
author='shinsaka',
author_email='shinx1265@gmail.com',
maintainer='shinsaka',
maintainer_email='shinx1265@gmail.com',
description='Amazon Connect Decryption Library for Python',
long_description=read('README.rst'),
long_description_content_type='text/x-rst',
install_requires=get_requirements(),
license='MIT',
classifiers=[
'Programming Language :: Python :: 3.8',
'License :: OSI Approved :: MIT License',
],
)