-
Notifications
You must be signed in to change notification settings - Fork 45
/
setup.py
60 lines (51 loc) · 1.53 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
48
49
50
51
52
53
54
55
56
57
58
59
60
"""Setup script for aws2wrap."""
import os
import re
from setuptools import setup
HERE = os.path.abspath(os.path.dirname(__file__))
VERSION_RE = re.compile(r'''__version__ = ['"]([0-9.]+)['"]''')
def get_version():
""" Read version from the version file """
with open(
os.path.join(
HERE,
"aws2wrap",
"version.py"
),
mode="r",
encoding="utf-8"
) as ver_file:
init = ver_file.read()
return VERSION_RE.search(init).group(1)
with open("README.md", mode="r", encoding="utf-8") as fh:
long_description = fh.read()
setup(
name="aws2-wrap",
version=get_version(),
description="A wrapper for executing a command with AWS CLI v2 and SSO",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/linaro-its/aws2-wrap",
author="Philip Colmer",
author_email="[email protected]",
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
'Environment :: Console',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: OS Independent'
],
license="GPL-3.0-or-later",
keywords="aws profile sso assume role",
packages=[
"aws2wrap"
],
install_requires=["psutil"],
entry_points={
'console_scripts': [
'aws2-wrap = aws2wrap:main',
]
},
python_requires=">=3.8",
)