-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
executable file
·77 lines (66 loc) · 2.14 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
SPDX-FileCopyrightText: Siemens AG, 2020-2022 Gaurav Mishra <mishra.gaurav@siemens.com>
SPDX-License-Identifier: MIT
"""
import os
from setuptools import setup, find_packages
__author__ = 'Siemens AG'
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
"""
Utility function to read the README file.
Parameters:
fname (string): Path to file to read
Returns:
content (string): Content of the file
"""
return open(os.path.join(os.path.dirname(__file__), fname), encoding='UTF-8').read()
metadata = dict(
name="snap_to_bucket",
version="1.0.4",
author="Gaurav Mishra",
author_email="mishra.gaurav@siemens.com",
description=("Move AWS EBS Snapshots to S3 Buckets"),
url = "https://github.com/siemens/snap-to-bucket/",
license="MIT",
long_description=read('README.md'),
long_description_content_type='text/markdown',
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Utilities",
"Topic :: System :: Recovery Tools"
],
keywords=[
"aws", "snapshot", "bucket", "ebs", "s3"
],
python_requires=">=3.5",
package_dir={
"snap_to_bucket": "src/snap_to_bucket",
"snap_to_bucket.handlers": "src/snap_to_bucket/handlers",
"snap_to_bucket.runner": "src/snap_to_bucket/runner"
},
packages=find_packages("./src"),
install_requires=[
'boto3',
'psutil',
'Click'
],
entry_points = {
'console_scripts': [
'snap2bucket = snap_to_bucket.run:main'
]
},
)
setup(**metadata)