Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
aws
GitHub Repository: aws/aws-cli
Path: blob/develop/setup.py
1564 views
1
#!/usr/bin/env python
2
import codecs
3
import os.path
4
import re
5
import sys
6
7
from setuptools import setup, find_packages
8
9
10
here = os.path.abspath(os.path.dirname(__file__))
11
12
13
def read(*parts):
14
return codecs.open(os.path.join(here, *parts), 'r').read()
15
16
17
def find_version(*file_paths):
18
version_file = read(*file_paths)
19
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
20
version_file, re.M)
21
if version_match:
22
return version_match.group(1)
23
raise RuntimeError("Unable to find version string.")
24
25
26
install_requires = [
27
'botocore==1.40.24',
28
'docutils>=0.18.1,<=0.19',
29
's3transfer>=0.13.0,<0.14.0',
30
'PyYAML>=3.10,<6.1',
31
'colorama>=0.2.5,<0.4.7',
32
'rsa>=3.1.2,<4.8',
33
]
34
35
36
setup_options = dict(
37
name='awscli',
38
version=find_version("awscli", "__init__.py"),
39
description='Universal Command Line Environment for AWS.',
40
long_description=read('README.rst'),
41
author='Amazon Web Services',
42
url='http://aws.amazon.com/cli/',
43
scripts=['bin/aws', 'bin/aws.cmd',
44
'bin/aws_completer', 'bin/aws_zsh_completer.sh',
45
'bin/aws_bash_completer'],
46
packages=find_packages(exclude=['tests*']),
47
include_package_data=True,
48
install_requires=install_requires,
49
extras_require={},
50
license="Apache License 2.0",
51
python_requires=">= 3.9",
52
classifiers=[
53
'Development Status :: 5 - Production/Stable',
54
'Intended Audience :: Developers',
55
'Intended Audience :: System Administrators',
56
'Natural Language :: English',
57
'License :: OSI Approved :: Apache Software License',
58
'Programming Language :: Python',
59
'Programming Language :: Python :: 3',
60
'Programming Language :: Python :: 3 :: Only',
61
'Programming Language :: Python :: 3.9',
62
'Programming Language :: Python :: 3.10',
63
'Programming Language :: Python :: 3.11',
64
'Programming Language :: Python :: 3.12',
65
'Programming Language :: Python :: 3.13',
66
],
67
project_urls={
68
'Source': 'https://github.com/aws/aws-cli',
69
'Reference': 'https://docs.aws.amazon.com/cli/latest/reference/',
70
'Changelog': 'https://github.com/aws/aws-cli/blob/develop/CHANGELOG.rst',
71
},
72
)
73
74
75
if 'py2exe' in sys.argv:
76
# This will actually give us a py2exe command.
77
import py2exe
78
# And we have some py2exe specific options.
79
setup_options['options'] = {
80
'py2exe': {
81
'optimize': 0,
82
'skip_archive': True,
83
'dll_excludes': ['crypt32.dll'],
84
'packages': ['docutils', 'urllib', 'httplib', 'HTMLParser',
85
'awscli', 'ConfigParser', 'xml.etree', 'pipes'],
86
}
87
}
88
setup_options['console'] = ['bin/aws']
89
90
91
setup(**setup_options)
92
93