-
Notifications
You must be signed in to change notification settings - Fork 26
/
setup.py
46 lines (41 loc) · 1.63 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
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
# the License. A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
# and limitations under the License.
import os
import re
import setuptools
ROOT = os.path.join(os.path.dirname(__file__), 'pyqldb')
VERSION_RE = re.compile(r'''__version__ = ['"]([0-9.a-z\-]+)['"]''')
requires = ['amazon.ion>=0.7.0,<=0.9.3',
'boto3>=1.17.5,<2',
'botocore>=1.20.5,<2',
'ionhash>=1.2.1,<2']
def get_version():
init = open(os.path.join(ROOT, '__init__.py')).read()
return VERSION_RE.search(init).group(1)
setuptools.setup(
name='pyqldb',
version=get_version(),
description='Python driver for Amazon QLDB',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
author='Amazon Web Services',
packages=setuptools.find_packages(),
install_requires=requires,
license="Apache License 2.0",
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8"
]
)