-
Notifications
You must be signed in to change notification settings - Fork 54
/
setup.py
41 lines (33 loc) · 1.32 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
import re
import setuptools, os
def open_local(paths, mode="r", encoding="utf8"):
path = os.path.join(os.path.abspath(os.path.dirname(__file__)), *paths)
return open(path, mode=mode, encoding=encoding)
with open_local(["s3recon", "__init__.py"]) as f:
version = re.search(r"__version__ = [\"'](\d+\.\d+\.\d+)[\"']", f.read()).group(1)
with open_local(["README.md"]) as f:
long_description = f.read()
install_requires = ["mergedeep>=1.1", "requests>=2.23", "pymongo>=3.10", "pyyaml>=5.3"]
setuptools.setup(
name="s3recon",
version=version,
author="Travis Clarke",
author_email="travis.m.clarke@gmail.com",
description="Amazon S3 bucket finder.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/clarketm/s3recon",
packages=setuptools.find_packages(),
python_requires=">=3.6",
include_package_data=True,
install_requires=install_requires,
entry_points={"console_scripts": ["s3recon=s3recon.s3recon:cli"]},
classifiers=(
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
),
)